From e86e62ad2498f0b9dd601b1fee0540c1720c7078 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 --- .../report/aged_partner_balance.py | 12 ++++++------ account_financial_report/report/open_items.py | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/account_financial_report/report/aged_partner_balance.py b/account_financial_report/report/aged_partner_balance.py index 0713259d..9158bfbe 100644 --- a/account_financial_report/report/aged_partner_balance.py +++ b/account_financial_report/report/aged_partner_balance.py @@ -251,12 +251,12 @@ class AgedPartnerBalanceReport(models.AbstractModel): 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 9b7e87a9..6383dbd4 100644 --- a/account_financial_report/report/open_items.py +++ b/account_financial_report/report/open_items.py @@ -225,12 +225,12 @@ class OpenItemsReport(models.AbstractModel): 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: