From f75630d383a50a82b74b46e16abb9727fd9c4ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Sat, 5 Jul 2025 10:28:56 +0800 Subject: [PATCH] 1 --- yuthon_salary/models/inherit_hr_payslip.py | 11 +++++++++++ yuthon_salary/views/inherit_hr_payslip_views.xml | 4 ++++ 2 files changed, 15 insertions(+) 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 @@ + + + +