添加功能

This commit is contained in:
zhou
2025-03-27 20:41:29 +08:00
parent 31284caca0
commit 8a7fefc112
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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:
@@ -41,8 +41,8 @@
<field name="base_salary_deduction"/>
<field name="assessment_reserved_amount"/>
<field name="study_on"/>
<field name="total_before_tax"/>
<field name="jing_te"/>
<field name="total_before_tax"/>
<field name="basic_medical_insurance"/>
<field name="basic_endowment_insurance"/>
<field name="unemployment_insurance"/>
@@ -183,8 +183,8 @@
<field name="year_jie"/>
<field name="year_gong"/>
<field name="study_on"/>
<field name="total_before_tax" string="税前合计"/>
<field name="jing_te"/>
<field name="total_before_tax" string="税前合计"/>
<field name="basic_endowment_insurance"/>
<field name="basic_medical_insurance"/>
<field name="unemployment_insurance"/>