From 327de327f2d3c00e2c2716cb46e2a0470a50341c 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 12274615..1913c41b 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: