From f44eff024f6f28aa1b8a5b3ceab1ddf5e7f6362e 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: Wed, 10 Sep 2025 18:41:57 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_property_approval/wizard/property_rental_wizard.py b/yuthon_property_approval/wizard/property_rental_wizard.py index 18bcc4a84..07a7f928d 100644 --- a/yuthon_property_approval/wizard/property_rental_wizard.py +++ b/yuthon_property_approval/wizard/property_rental_wizard.py @@ -178,8 +178,8 @@ class PropertyRentalWizard(models.Model): start_year_month = start_date_adj.strftime('%Y-%m') end_year_month = rent_id.end_data.strftime('%Y-%m') start_day = start_date_adj.day - # 通过period_month 来判断是否有免租期,则使用 period_rent,否则使用 monthly_amount - rent_amount = rent_id.period_rent if period_month else rent_id.monthly_amount + # 通过period_month 来判断是否有免租期,则使用 ,否则月租金使用 期间租金 + rent_amount = rent_id.monthly_amount if period_month else rent_id.period_rent if is_year: if rent_id.month_number >12: multiplier = rent_id.month_number - 12