@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user