fix: Multicurrency invoice with exchange gain and loss showing up in AR/AP report

This commit is contained in:
Deepesh Garg
2022-11-26 20:21:22 +05:30
parent 776c8c6d6a
commit d38a2895b0

View File

@@ -685,10 +685,10 @@ class ReceivablePayableReport(object):
if self.filters.get(scrub(self.party_type)):
select_fields = "debit_in_account_currency as debit, credit_in_account_currency as credit"
doc_currency_fields = "debit as debit_in_account_currency, credit as credit_in_account_currency"
else:
select_fields = "debit, credit"
doc_currency_fields = "debit_in_account_currency, credit_in_account_currency"
doc_currency_fields = "debit_in_account_currency, credit_in_account_currency"
remarks = ", remarks" if self.filters.get("show_remarks") else ""