diff --git a/yuthon_salary/models/inherit_hr_payslip.py b/yuthon_salary/models/inherit_hr_payslip.py
index 02b1ee96c..b7b5f3612 100644
--- a/yuthon_salary/models/inherit_hr_payslip.py
+++ b/yuthon_salary/models/inherit_hr_payslip.py
@@ -176,7 +176,7 @@ class InheritHrPayslip(models.Model):
"target": "new",
}
- @api.depends('line_ids','year_compute', 'year_jie', 'year_gong')
+ @api.depends('line_ids','year_compute', 'year_jie', 'year_gong', 'jing_te')
def _compute_total_before_tax(self):
common_records = self.env['yuthon.payroll.common'].search([('before_tax', '=', True)])
name_list = [record.name for record in common_records]
@@ -185,7 +185,7 @@ class InheritHrPayslip(models.Model):
for line in record.line_ids:
if line.name in name_list:
total += line.total
- record.total_before_tax = total + record.base_salary + record.performance_bonuses + record.rank_salary + record.year_compute + record.year_jie + record.year_gong
+ record.total_before_tax = total + record.base_salary + record.performance_bonuses + record.rank_salary + record.year_compute + record.year_jie + record.year_gong, record.jing_te
def put_button(self):
for record in self:
diff --git a/yuthon_salary/views/inherit_hr_payslip_views.xml b/yuthon_salary/views/inherit_hr_payslip_views.xml
index 84507e51d..9cf07f342 100644
--- a/yuthon_salary/views/inherit_hr_payslip_views.xml
+++ b/yuthon_salary/views/inherit_hr_payslip_views.xml
@@ -41,8 +41,8 @@
-
+
@@ -183,8 +183,8 @@
-
+