diff --git a/yuthon_salary/models/inherit_hr_payslip.py b/yuthon_salary/models/inherit_hr_payslip.py index fe9904fcc..88a11805c 100644 --- a/yuthon_salary/models/inherit_hr_payslip.py +++ b/yuthon_salary/models/inherit_hr_payslip.py @@ -129,6 +129,11 @@ class InheritHrPayslip(models.Model): retroactive_insurance = fields.Float(string='补扣保险') distribution_part = 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) @@ -353,10 +358,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 5f911bc6a..20f8b827b 100644 --- a/yuthon_salary/views/inherit_hr_payslip_views.xml +++ b/yuthon_salary/views/inherit_hr_payslip_views.xml @@ -287,6 +287,10 @@ + + + +