添加功能

This commit is contained in:
李鹏宇
2025-09-10 18:41:57 +08:00
parent 7cc85b90b4
commit f44eff024f
@@ -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