From e4ff2f8d132c027b670feb292182e0f057d93821 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Thu, 31 Jul 2025 21:29:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wizard/property_reconciliation_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py index e6a17a36c..35bc67796 100644 --- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py +++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py @@ -122,7 +122,7 @@ class PropertyReconciliationWizard(models.Model): # 跳过金额为0的行 if line.amount == 0 and line.collection_type != 'penalty': continue - due_date = datetime.strptime(line.due_date, '%Y-%m-%d') + due_date = line.due_date first_day = due_date.replace(day=1) last_day = (first_day + relativedelta(months=1)) - relativedelta(days=1) domain = [