From d38a2895b0cd285da44e071956a7446fd8d49adf Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Sat, 26 Nov 2022 20:21:22 +0530 Subject: [PATCH] fix: Multicurrency invoice with exchange gain and loss showing up in AR/AP report --- .../report/accounts_receivable/accounts_receivable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py index c9567f23a34..1ca95099fe8 100755 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py @@ -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 ""