diff --git a/yuthon_salary/models/inherit_hr_payslip.py b/yuthon_salary/models/inherit_hr_payslip.py index 61613c440..30f04ebf8 100644 --- a/yuthon_salary/models/inherit_hr_payslip.py +++ b/yuthon_salary/models/inherit_hr_payslip.py @@ -255,12 +255,20 @@ class InheritHrPayslip(models.Model): for rec in self: if rec.line_ids: for line in rec.line_ids: + if line.name == '学习进步奖': + rec.study_on = line.total + if line.name == '临时绩效奖': + rec.temporary_performance_bonus = line.total + if line.name == '上年安全生产工作奖': + rec.last_year_safety = line.total if line.name == '生育津贴': rec.allowance = line.total if line.name == '儿童节慰问金': rec.condolence_fund = line.total if line.name == '春节福利': rec.spring_festival = line.total + if line.name == '上年绩效评优': + rec.last_year_performance = line.total if line.name == '上年社保补缴': rec.social_security = line.total if line.name == '上年年度清算':