!9254 添加功能

Merge pull request !9254 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2026-03-04 09:28:27 +00:00
committed by Gitee
@@ -189,7 +189,6 @@ class YuthonVacationReports(models.Model):
@api.model
def meal_line(self):
today = date.today()
next_month = today.month if today.month < 12 else 1
next_year = today.year if today.month < 12 else today.year + 1
end_date = date(next_year, next_month, 1) - timedelta(days=1)
@@ -1309,6 +1308,7 @@ class YuthonVacationReports(models.Model):
'last_holiday': last_month_record.last_holiday,
'last_workday': last_month_record.last_workday,
'valid_date1': last_month_record.valid_date1,
'meal_fee': last_month_record.meal_fee,
'year_holiday': last_month_record.year_holiday,
'year_workday': last_month_record.year_workday,
'previous_year1': last_month_record.previous_year1,