From 1cf3f1a0ca954ac970e73c50c3fc59317a759851 Mon Sep 17 00:00:00 2001 From: Saran440 Date: Thu, 2 May 2024 11:23:41 +0700 Subject: [PATCH] [FIX] account_financial_report: fix error false 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 8bc0f6ea..da1fc93f 100644 --- a/account_financial_report/report/aged_partner_balance.py +++ b/account_financial_report/report/aged_partner_balance.py @@ -56,6 +56,7 @@ class AgedPartnerBalanceReport(models.AbstractModel): if not due_date or today <= due_date: ag_pb_data[acc_id]["current"] += residual ag_pb_data[acc_id][prt_id]["current"] += residual + due_date = today elif today <= due_date + timedelta(days=30): ag_pb_data[acc_id]["30_days"] += residual ag_pb_data[acc_id][prt_id]["30_days"] += residual