!3530 添加功能

Merge pull request !3530 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-06-26 08:43:39 +00:00
committed by Gitee
@@ -61,7 +61,9 @@ class YuthonPayrollCommon(models.Model):
formula_salary = "result = employee.last_month_commuting_deduction"
if ins.name == '扣发基本工资':
formula_salary = "result = employee.last_month_base_salary_deduction"
if ins.name == '工龄工资':
if ins.name == '工龄工资' and ins.company_id.name == '天河物管':
formula_salary = "result = employee.company_old_year * 10 if employee.company_old_year >= 1 else 0"
if ins.name == '工龄工资' and ins.company_id.name == '集团本部':
formula_salary = "result = (employee.company_old_year) * 10"
if ins.name == '误餐费':
formula_salary = "result = employee.meal_number * 40 + employee.meal_supplement"