Skip to content

Commit

Permalink
[FIX] account_accountant_ux: journal dashboard
Browse files Browse the repository at this point in the history
Now the Balance in GL calculate correctly

closes #307

Signed-off-by: Filoquin adhoc <maq@adhoc.com.ar>
  • Loading branch information
ica-adhoc committed Jan 22, 2024
1 parent ee97ea2 commit 5b3f514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_accountant_ux/models/account_journal_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def _fill_journal_dashboard_general_balance(self, dashboard_data):
journals = self.filtered(lambda journal: journal.type in ['bank', 'cash'])
for journal in journals:
if journal.default_account_id:
amount_field = 'aml.balance' if (not self.currency_id or self.currency_id == self.company_id.currency_id) else 'aml.amount_currency'
amount_field = 'aml.balance' if (not journal.currency_id or journal.currency_id == journal.company_id.currency_id) else 'aml.amount_currency'
query = """SELECT sum(%s) FROM account_move_line aml
LEFT JOIN account_move move ON aml.move_id = move.id
WHERE aml.account_id = %%s
Expand Down

0 comments on commit 5b3f514

Please sign in to comment.