This commit is contained in:
李鹏宇
2025-03-15 15:23:53 +08:00
parent 6ae4f6bcfc
commit fc725e1dbb
@@ -37,9 +37,9 @@ class YuthonPayrollCommon(models.Model):
salary_lv_ids = self.env["hr.payroll.structure"].search([])
for sal in salary_lv_ids:
rule_list = []
formula_salary = ''
if ins.name not in sal.rule_ids.mapped('name'):
# 工资项公式
formula_salary = ''
if ins.name == '工龄':
formula_salary = "result = int((employee.cumulative_work_month / 12) * 10)"
if ins.name == '工会会费':