From 0be5cbda63c897de9fbecd7ecdb0bbc5127077c9 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Thu, 12 Jun 2025 12:16:11 +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/models/yuthon_payroll_project.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yuthon_salary/models/yuthon_payroll_project.py b/yuthon_salary/models/yuthon_payroll_project.py index 429f62618..2aec63331 100644 --- a/yuthon_salary/models/yuthon_payroll_project.py +++ b/yuthon_salary/models/yuthon_payroll_project.py @@ -232,8 +232,9 @@ class YuthonPayrollInsurances (models.Model): if ins.company_id == '天河物管': code = 'WGQYNJ' formula_salary = "result = round((employee.converted/total_coefficients * conversion_factor * 0.08 * 0.5)/12, 2)" - code = 'QYNJ' - formula_salary = "result = round((employee.last_year_salary * 0.02), 0)" + else: + code = 'QYNJ' + formula_salary = "result = round((employee.last_year_salary * 0.02), 0)" if ins.name not in sal.rule_ids.mapped('name'): rule_list.append([0, 0, { 'name': ins.name,