From 3b51efbf87db03fb21d88d6ce928b68dab541490 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Tue, 1 Apr 2025 09:22:23 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: