fix: check difference with company currency
(cherry picked from commit e2bae4cf07)
This commit is contained in:
@@ -171,9 +171,7 @@ class PeriodClosingVoucher(AccountsController):
|
|||||||
pl_account_balances = self.get_account_balances_based_on_dimensions(report_type="Profit and Loss")
|
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 dimensions, account_balances in pl_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 balance_in_company_currency and acc != "balances":
|
if balance_in_company_currency and acc != "balances":
|
||||||
self.pl_accounts_reverse_gle.append(
|
self.pl_accounts_reverse_gle.append(
|
||||||
self.get_gle_for_pl_account(acc, balances, dimensions)
|
self.get_gle_for_pl_account(acc, balances, dimensions)
|
||||||
|
|||||||
Reference in New Issue
Block a user