From 2a193ffbafcdeca846bc2682b942dba1ef2358e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Sat, 21 Feb 2026 16:40:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B4=AF=E8=AE=A1=E6=AC=A0=E6=94=B6=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_report/models/cumulative_arrears_report.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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))