From 995442922105ab59e46750c7977e3885f70ef94d Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Sat, 11 Jan 2025 21:39:20 +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 4694688ac..29cd83c17 100644 --- a/yuthon_property_approval/wizard/property_rental_wizard.py +++ b/yuthon_property_approval/wizard/property_rental_wizard.py @@ -38,7 +38,7 @@ class PropertyRentalWizard(models.Model): start_year_month = start_date_adj.strftime('%Y-%m') end_year_month = rent_id.end_data.strftime('%Y-%m') - # 如果有免租期,则使用 period_rent,否则使用 monthly_amount + # 通过period_month 来判断是否有免租期,则使用 period_rent,否则使用 monthly_amount rent_amount = rent_id.period_rent if period_month else rent_id.monthly_amount if is_year: if rent_id.month_number >12: @@ -88,7 +88,7 @@ class PropertyRentalWizard(models.Model): is_year = 0 if record.cycle_dict == 'year': is_year = 1 - # 获取租金乘数(1 表示按月,3 表示季租金,6 表示半年租金) + # 获取租金乘数(1 表示按月,3 表示季租金,6 表示半年租金,年后面赋值) multiplier = self.get_multiplier(record.cycle_dict) for rent_id in record.breakdown_ids: