Merge pull request !1295 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2025-01-12 02:42:37 +00:00
committed by Gitee
@@ -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: