diff --git a/yuthon_salary/models/inherit_hr_payslip.py b/yuthon_salary/models/inherit_hr_payslip.py index 071fe4cd2..c3aa8e65f 100644 --- a/yuthon_salary/models/inherit_hr_payslip.py +++ b/yuthon_salary/models/inherit_hr_payslip.py @@ -127,6 +127,11 @@ class InheritHrPayslip(models.Model): # 粮储临时项 medical_fee = fields.Float(string='超出体检费标准') + # 三家公司 + add_year_float = fields.Float(string='补年金差额') + minus_year_float = fields.Float(string='扣年金差额') + + performance_deduction = fields.Float(string='扣发绩效奖金', compute='_compute_deduction', store=True) commuting_deduction = fields.Float(string='扣发通信补贴', compute='_compute_deduction', store=True) base_salary_deduction = fields.Float(string='扣发基本工资', compute='_compute_deduction', store=True) @@ -320,10 +325,16 @@ class InheritHrPayslip(models.Model): record.duty + record.monthly_overtime + record.annuity + + + record.add_year_float + + # 新增的物管临时项 record.excellent_employees + record.leave_absence - # 扣除项 + + record.minus_year_float - + record.performance_deduction - record.commuting_deduction - record.base_salary_deduction - diff --git a/yuthon_salary/views/inherit_hr_payslip_views.xml b/yuthon_salary/views/inherit_hr_payslip_views.xml index ff0f2bf75..65a1adae7 100644 --- a/yuthon_salary/views/inherit_hr_payslip_views.xml +++ b/yuthon_salary/views/inherit_hr_payslip_views.xml @@ -286,6 +286,10 @@ + + + +