From 1c4eef2ef6fc34c3e2cf95306e15f2073d228bb6 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:41:41 +0530 Subject: [PATCH] fix: consider gle based on balances in company currency (copy #43805) (#43809) fix: consider gle based on balances in company currency (#43805) (cherry picked from commit 2fb441763a74bd4c5233e77f39611ee0c95b7efa) Co-authored-by: Nabin Hait --- .../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 d6bd217650b..99b42089501 100644 --- a/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py +++ b/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py @@ -380,9 +380,7 @@ class PeriodClosingVoucher(AccountsController): for dimensions, account_balances in balance_sheet_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 acc != "balances" and balance_in_company_currency: closing_entries.append(self.get_closing_entry(acc, balances, dimensions))