fix: display amount in account currency if party is supplied
This commit is contained in:
parent
ee889afd4c
commit
e5b04d54ff
@ -192,6 +192,10 @@ class ReceivablePayableReport(object):
|
|||||||
if not row:
|
if not row:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# amount in "Party Currency", if its supplied. If not, amount in company currency
|
||||||
|
if self.filters.get(scrub(self.party_type)):
|
||||||
|
amount = ple.amount_in_account_currency
|
||||||
|
else:
|
||||||
amount = ple.amount
|
amount = ple.amount
|
||||||
amount_in_account_currency = ple.amount_in_account_currency
|
amount_in_account_currency = ple.amount_in_account_currency
|
||||||
|
|
||||||
@ -690,7 +694,7 @@ class ReceivablePayableReport(object):
|
|||||||
ple.party,
|
ple.party,
|
||||||
ple.posting_date,
|
ple.posting_date,
|
||||||
ple.due_date,
|
ple.due_date,
|
||||||
ple.account_currency.as_("currency"),
|
ple.account_currency,
|
||||||
ple.amount,
|
ple.amount,
|
||||||
ple.amount_in_account_currency,
|
ple.amount_in_account_currency,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user