@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user