From 496686c79f7dc7109a5d27a1a24f3c69def8c0cd Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Mon, 21 Apr 2025 14:25:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_salary/wizard/salary_compute_wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_salary/wizard/salary_compute_wizard.py b/yuthon_salary/wizard/salary_compute_wizard.py index 12be6dca8..df54dc91a 100644 --- a/yuthon_salary/wizard/salary_compute_wizard.py +++ b/yuthon_salary/wizard/salary_compute_wizard.py @@ -116,12 +116,12 @@ class SalaryComputeWizard(models.Model): leave_days.unlink() days = self._process_shift_days(days, start_date, end_date) # 总工作日 leave_internship = self._create_leave_record(start_date, contract_end_date) - leave_internship.unlink() internship_days = leave_internship.number_of_days + leave_internship.unlink() internship_days = self._process_shift_days(internship_days, start_date, contract_end_date) # 实习期工作日 leave_work = self._create_leave_record(contract_end_date, end_date) - leave_work.unlink() work_days = leave_work.number_of_days + leave_work.unlink() work_days = self._process_shift_days(work_days, contract_end_date, end_date) # 转正工作日 if internship_id.line_ids: target_names = ['基本工资', '职级工资', '岗位工资', '预发绩效奖金', '通讯补贴', '工龄工资']