diff --git a/yuthon_salary/models/inherit_hr_payslip.py b/yuthon_salary/models/inherit_hr_payslip.py index 4dc1765f8..8f766e3a9 100644 --- a/yuthon_salary/models/inherit_hr_payslip.py +++ b/yuthon_salary/models/inherit_hr_payslip.py @@ -193,7 +193,7 @@ class InheritHrPayslip(models.Model): "target": "new", } - @api.depends('line_ids','year_compute', 'year_jie', 'year_gong', 'jing_te') + @api.depends('line_ids','year_compute', 'year_jie', 'year_gong', 'jing_te', 'based_pay', 'study_on') 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] @@ -202,7 +202,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.jing_te + record.high_temperature_allowance + 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 + record.high_temperature_allowance + record.based_pay +record.study_on def put_button(self): for record in self: