From 19be95eeae2c0fc0f5dd3811876e237f6d337606 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Mon, 21 Jul 2025 16:40:07 +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, 3 insertions(+), 1 deletion(-) diff --git a/yuthon_salary/wizard/salary_compute_wizard.py b/yuthon_salary/wizard/salary_compute_wizard.py index dc2a0e83d..23c4f1331 100644 --- a/yuthon_salary/wizard/salary_compute_wizard.py +++ b/yuthon_salary/wizard/salary_compute_wizard.py @@ -217,7 +217,9 @@ class SalaryComputeWizard(models.Model): else: result = 0 elif field_name in ['commuting_allowance', 'seniority_salary']: - result = line.total * internship_days / days + if work_days != days: + 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)