Merge pull request !4472 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2025-08-12 06:35:50 +00:00
committed by Gitee
@@ -437,8 +437,9 @@ class YuthonVacationReports(models.Model):
total_add += line_total
elif line.update_type == 'reduce':
total_reduce += line_total
total_add -= line_total
done_working_overtime += line_total
record.working_overtime = total_add / 8
record.working_overtime = max(total_add / 8, 0)
record.done_working_overtime = done_working_overtime / 8
record.cop_leave = total_reduce / 8