From e2bae4cf07918adf815384b3db81717df95d9413 Mon Sep 17 00:00:00 2001 From: venkat102 Date: Tue, 26 Nov 2024 22:13:57 +0530 Subject: [PATCH] fix: check difference with company currency --- .../doctype/period_closing_voucher/period_closing_voucher.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py b/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py index 1d4ee25241e..7e0145e91a4 100644 --- a/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py +++ b/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py @@ -171,9 +171,7 @@ class PeriodClosingVoucher(AccountsController): pl_account_balances = self.get_account_balances_based_on_dimensions(report_type="Profit and Loss") for dimensions, account_balances in pl_account_balances.items(): for acc, balances in account_balances.items(): - balance_in_company_currency = flt(balances.debit_in_account_currency) - flt( - balances.credit_in_account_currency - ) + balance_in_company_currency = flt(balances.debit) - flt(balances.credit) if balance_in_company_currency and acc != "balances": self.pl_accounts_reverse_gle.append( self.get_gle_for_pl_account(acc, balances, dimensions)