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,