fix: use party account currency when party account is specified
This commit is contained in:
parent
32a608f948
commit
c7b961ffa2
@ -225,7 +225,7 @@ class ReceivablePayableReport(object):
|
|||||||
if not row:
|
if not row:
|
||||||
return
|
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
|
amount = ple.amount_in_account_currency
|
||||||
else:
|
else:
|
||||||
amount = ple.amount
|
amount = ple.amount
|
||||||
@ -451,7 +451,7 @@ class ReceivablePayableReport(object):
|
|||||||
party_details = self.get_party_details(row.party) or {}
|
party_details = self.get_party_details(row.party) or {}
|
||||||
row.update(party_details)
|
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
|
row.currency = row.account_currency
|
||||||
else:
|
else:
|
||||||
row.currency = self.company_currency
|
row.currency = self.company_currency
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user