From 8c224dc4986d8561dc4ab93489e01da4a0430ae1 Mon Sep 17 00:00:00 2001 From: Joan Sisquella Date: Thu, 18 Jun 2020 16:13:48 +0200 Subject: [PATCH] [FIX] account_financial_report: Not showing journal items with amount residual equal to 0 --- account_financial_report/report/aged_partner_balance.py | 8 ++++---- account_financial_report/report/open_items.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/account_financial_report/report/aged_partner_balance.py b/account_financial_report/report/aged_partner_balance.py index bb137bd9..b82c95b8 100644 --- a/account_financial_report/report/aged_partner_balance.py +++ b/account_financial_report/report/aged_partner_balance.py @@ -198,10 +198,10 @@ class AgedPartnerBalanceReport(models.AbstractModel): debit_amount, credit_amount, ml_ids, account_ids, company_id, partner_ids, only_posted_moves ) - move_lines = [move_line for move_line in move_lines if - move_line['date'] <= date_at_object and not - float_is_zero(move_line['amount_residual'], - precision_digits=2)] + move_lines = [move_line for move_line in move_lines if + move_line['date'] <= date_at_object and not + float_is_zero(move_line['amount_residual'], + precision_digits=2)] for move_line in move_lines: journals_ids.add(move_line['journal_id'][0]) acc_id = move_line['account_id'][0] diff --git a/account_financial_report/report/open_items.py b/account_financial_report/report/open_items.py index ddd41da6..b7fc1e53 100644 --- a/account_financial_report/report/open_items.py +++ b/account_financial_report/report/open_items.py @@ -168,10 +168,10 @@ class OpenItemsReport(models.AbstractModel): debit_amount, credit_amount, ml_ids, account_ids, company_id, partner_ids, target_move ) - move_lines = [move_line for move_line in move_lines if - move_line['date'] <= date_at_object and not - float_is_zero(move_line['amount_residual'], - precision_digits=2)] + move_lines = [move_line for move_line in move_lines if + move_line['date'] <= date_at_object and not + float_is_zero(move_line['amount_residual'], + precision_digits=2)] open_items_move_lines_data = {} for move_line in move_lines: