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 @@ - +