From 7c5d5a80d141d21062d80acf0ed4198e950ac1d9 Mon Sep 17 00:00:00 2001 From: Saran440 Date: Tue, 7 May 2024 10:21:57 +0700 Subject: [PATCH] [FIX] account_financial_report: aged partner compute due date --- account_financial_report/report/aged_partner_balance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account_financial_report/report/aged_partner_balance.py b/account_financial_report/report/aged_partner_balance.py index 7662a806..3773f7ca 100644 --- a/account_financial_report/report/aged_partner_balance.py +++ b/account_financial_report/report/aged_partner_balance.py @@ -275,6 +275,7 @@ class AgedPartnerBalanceReport(models.AbstractModel): today = date_at_object if not due_date or today <= due_date: ml["current"] += amount + due_date = today elif today <= due_date + timedelta(days=30): ml["30_days"] += amount elif today <= due_date + timedelta(days=60):