!3233 添加功能

Merge pull request !3233 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-06-11 10:17:01 +00:00
committed by Gitee
@@ -73,7 +73,7 @@ class YuthonPayrollCommon(models.Model):
if ins.name == '安全生产管理补贴':
formula_salary = "result = 320 if employee.department_id.name != '领导班子' else 0"
if ins.name == '工龄补贴':
formula_salary = "result = min(400, employee.cumulative_year * 10 + employee.company_old * 20) if employee.department_id.name != '领导班子' else 0"
formula_salary = "result = min(400, employee.cumulative_year * 10 + employee.company_old_year * 20) if employee.department_id.name != '领导班子' else 0"
if ins.name == '岗位绩效':
formula_salary = "result = 0"
if ins.name == '高温补贴':