Skip to content

Commit

Permalink
fix: consider gle based on balances in company currency (copy #43805) (
Browse files Browse the repository at this point in the history
…#43809)

fix: consider gle based on balances in company currency (#43805)

(cherry picked from commit 2fb4417)

Co-authored-by: Nabin Hait <[email protected]>
  • Loading branch information
mergify[bot] and nabinhait authored Oct 23, 2024
1 parent d392660 commit 1c4eef2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,7 @@ def get_closing_entries_for_balance_sheet_accounts(self):

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

Expand Down

0 comments on commit 1c4eef2

Please sign in to comment.