diff --git a/yuthon_report/models/cumulative_arrears_report.py b/yuthon_report/models/cumulative_arrears_report.py index e9da491e6..58d0b4245 100644 --- a/yuthon_report/models/cumulative_arrears_report.py +++ b/yuthon_report/models/cumulative_arrears_report.py @@ -26,9 +26,7 @@ class CumulativeArrearsReport(models.Model): date_start = params.get("date_start") date_end = params.get("date_end") - if date_start: - start_dt = datetime.datetime.fromisoformat(date_start).date() - domain.append(("due_date", ">=", start_dt)) + # 累计欠收:只限定截止日期,包含截止日之前所有欠收 if date_end: end_dt = datetime.datetime.fromisoformat(date_end).date() domain.append(("due_date", "<=", end_dt))