From d0c267eaa4fbd52c3464f8d8c9e881ed87af427e Mon Sep 17 00:00:00 2001 From: Justinas Orechovas Date: Tue, 23 May 2023 14:45:26 -0400 Subject: [PATCH] [FIX] account_financial_report: fixing bug when calculation of credit is dublicated --- account_financial_report/report/abstract_report.py | 1 - 1 file changed, 1 deletion(-) diff --git a/account_financial_report/report/abstract_report.py b/account_financial_report/report/abstract_report.py index a4ae732d..c133ca86 100644 --- a/account_financial_report/report/abstract_report.py +++ b/account_financial_report/report/abstract_report.py @@ -100,7 +100,6 @@ class AgedPartnerBalanceReport(models.AbstractModel): else: move_line["amount_residual_currency"] = debit_amount_currency[ml_id] if ml_id in credit_ids: - move_line["amount_residual"] -= credit_amount[ml_id] if move_line.get("amount_residual", False): move_line["amount_residual"] -= credit_amount[ml_id] else: