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 2fb441763a)

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
This commit is contained in:
mergify[bot]
2024-10-23 17:41:41 +05:30
committed by GitHub
parent d392660d45
commit 1c4eef2ef6

View File

@@ -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))