From 0dab2b0ef54bbc4d295b152ee5ce5e51262e63bb Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Mon, 21 Jul 2025 16:40:35 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yuthon_salary/wizard/salary_compute_wizard.py b/yuthon_salary/wizard/salary_compute_wizard.py index 23c4f1331..6c3dd6fca 100644 --- a/yuthon_salary/wizard/salary_compute_wizard.py +++ b/yuthon_salary/wizard/salary_compute_wizard.py @@ -218,8 +218,9 @@ class SalaryComputeWizard(models.Model): result = 0 elif field_name in ['commuting_allowance', 'seniority_salary']: if work_days != days: + result = line.total * internship_days / days + line.total * work_days / days + else: result = line.total * internship_days / days - elif field_name in ['rank_salary', 'base_salary']: if work_days != days: result = round(math.ceil(line.total * 0.8) * internship_days / days + line.total * work_days / days)