[FIX] account_financial_report: fix error false due_date

pull/1150/head
Saran440 2024-05-02 11:23:41 +07:00
parent 07490bf78d
commit 1cf3f1a0ca
1 changed files with 1 additions and 0 deletions

View File

@ -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