From 3b6fe372460004229a5c5a3e41132b1b37129e6f Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Sat, 31 May 2025 17:51:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_salary/models/inherit_hr_payslip.py | 3 ++- yuthon_salary/views/inherit_hr_payslip_views.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/yuthon_salary/models/inherit_hr_payslip.py b/yuthon_salary/models/inherit_hr_payslip.py index 4cdad1555..fd566773f 100644 --- a/yuthon_salary/models/inherit_hr_payslip.py +++ b/yuthon_salary/models/inherit_hr_payslip.py @@ -274,7 +274,7 @@ class InheritHrPayslip(models.Model): ) @api.depends('total_before_tax', 'basic_endowment_insurance', 'basic_medical_insurance', - 'unemployment_insurance', 'housing_provident_fund', 'b_year', 'tax_payable', + 'unemployment_insurance', 'housing_provident_fund', 'b_year', 'tax_payable', 'social_security', 'union_dues') def _compute_actual_salary(self): for record in self: @@ -285,6 +285,7 @@ class InheritHrPayslip(models.Model): record.housing_provident_fund - record.b_year - record.tax_payable - + record.social_security - record.union_dues) def put_button(self): diff --git a/yuthon_salary/views/inherit_hr_payslip_views.xml b/yuthon_salary/views/inherit_hr_payslip_views.xml index 9349990fc..4aa2dac58 100644 --- a/yuthon_salary/views/inherit_hr_payslip_views.xml +++ b/yuthon_salary/views/inherit_hr_payslip_views.xml @@ -39,7 +39,7 @@ - +