From bee9ea5a6c9291ba0505c62315f8f07be6843664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Fri, 17 Oct 2025 17:03:29 +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 --- yuthon_property_approval/wizard/property_rental_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_property_approval/wizard/property_rental_wizard.py b/yuthon_property_approval/wizard/property_rental_wizard.py index 5d3a588d0..d4dbbf10a 100644 --- a/yuthon_property_approval/wizard/property_rental_wizard.py +++ b/yuthon_property_approval/wizard/property_rental_wizard.py @@ -172,7 +172,7 @@ class PropertyRentalWizard(models.Model): # 修正日:如果原始日超过当月最大天数,取当月最后一天 adjusted_day = min(start_day, max_day) date_str = f"{date_field_year_month}-{adjusted_day}" - start_date = datetime.strptime(date_str, "%Y-%m-%d") + start_date = datetime.strptime(date_str, "%Y-%m-%d").date() # 当期应收日期 if not record.is_contract: if start_year_month <= date_field_year_month <= end_year_month: