Skip to content

Commit

Permalink
fix: use party account currency when party account is specified
Browse files Browse the repository at this point in the history
(cherry picked from commit c7b961f)
  • Loading branch information
dj12djdjs authored and mergify[bot] committed Dec 20, 2023
1 parent 1e9b4e2 commit d9e0d55
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def update_voucher_balance(self, ple):
if not row:
return

if self.filters.get("in_party_currency"):
if self.filters.get("in_party_currency") or self.filters.get("party_account"):
amount = ple.amount_in_account_currency
else:
amount = ple.amount
Expand Down Expand Up @@ -457,7 +457,7 @@ def set_party_details(self, row):
party_details = self.get_party_details(row.party) or {}
row.update(party_details)

if self.filters.get("in_party_currency"):
if self.filters.get("in_party_currency") or self.filters.get("party_account"):
row.currency = row.account_currency
else:
row.currency = self.company_currency
Expand Down

0 comments on commit d9e0d55

Please sign in to comment.