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 d75ac13 commit 32d3d4e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,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 @@ -455,7 +455,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 32d3d4e

Please sign in to comment.