From 7dabee3eb1111069ca768e5adf1331de608ba9ac Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Mon, 21 Apr 2025 14:46:21 +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 27a073a9e..cd27a4e49 100644 --- a/yuthon_salary/wizard/salary_compute_wizard.py +++ b/yuthon_salary/wizard/salary_compute_wizard.py @@ -109,7 +109,7 @@ class SalaryComputeWizard(models.Model): for line in internship_id.line_ids: if line.name in target_names: result = line.total * 0.8 - line.total = result + line.write({'total': result}) elif contract_end_date.year == end_date.year and contract_end_date.month == end_date.month: leave_days = self._create_leave_record(start_date, end_date) days = leave_days.number_of_days @@ -128,7 +128,7 @@ class SalaryComputeWizard(models.Model): for line in internship_id.line_ids: if line.name in target_names: result = line.total * 0.8 * internship_days / days + line.total * 0.8 * work_days / days - line.total = result + line.write({'total': result}) def _get_chinese_month(self, month): chinese_months = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']