mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 01:25:07 +00:00
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:
@@ -380,9 +380,7 @@ class PeriodClosingVoucher(AccountsController):
|
|||||||
|
|
||||||
for dimensions, account_balances in balance_sheet_account_balances.items():
|
for dimensions, account_balances in balance_sheet_account_balances.items():
|
||||||
for acc, balances in account_balances.items():
|
for acc, balances in account_balances.items():
|
||||||
balance_in_company_currency = flt(balances.debit_in_account_currency) - flt(
|
balance_in_company_currency = flt(balances.debit) - flt(balances.credit)
|
||||||
balances.credit_in_account_currency
|
|
||||||
)
|
|
||||||
if acc != "balances" and balance_in_company_currency:
|
if acc != "balances" and balance_in_company_currency:
|
||||||
closing_entries.append(self.get_closing_entry(acc, balances, dimensions))
|
closing_entries.append(self.get_closing_entry(acc, balances, dimensions))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user