!5167 添加功能

Merge pull request !5167 from 李鹏宇/zhou
This commit is contained in:
李鹏宇
2025-09-16 07:41:41 +00:00
committed by Gitee
@@ -74,7 +74,7 @@ class YuthonPayrollCommon(models.Model):
if ins.name == '全勤奖' and ins.company_id.name == '天河物管':
formula_salary = "result = 100 if employee.last_attendance else 0"
if ins.name == '加班费':
formula_salary = "result = c if (employee.is_annual_salary or employee.contract_id.structure_type_id.name == '工勤返聘') else (round(((employee.last_month_overtime - 40) * (payslip.base_salary / 21.75 / 8) * 1.5), 0) if employee.last_month_overtime > 40 else 0)"
formula_salary = "result = 0 if (employee.is_annual_salary or employee.contract_id.structure_type_id.name == '工勤返聘') else (round(((employee.last_month_overtime - 40) * (payslip.base_salary / 21.75 / 8) * 1.5), 0) if employee.last_month_overtime > 40 else 0)"
if ins.name == '岗位工资':
formula_salary = "result = 0"
if ins.name == '安全生产管理补贴':