!2986 添加功能

Merge pull request !2986 from dev_zhou
This commit is contained in:
李鹏宇
2025-05-31 07:46:01 +00:00
committed by Gitee
2 changed files with 8 additions and 10 deletions
+1 -2
View File
@@ -53,8 +53,7 @@ class InheritHrPayslip(models.Model):
work_injury_insurance = fields.Float(string='工伤保险费', compute='_compute_salary', store=True)
housing_provident_fund = fields.Float(string='住房公积金', compute='_compute_salary', store=True)
b_year = fields.Float(string='企业(职业)年金', compute='_compute_salary', store=True)
total_before_tax = fields.Float(string='本期收入', compute='_compute_total_before_tax', store=True)
total_tax = fields.Float(string='本期应收', compute='_compute_total_before_tax', store=True)
total_before_tax = fields.Float(string='本期应收', compute='_compute_total_before_tax', store=True)
year_compute = fields.Float(string='前年年度清算', store=True)
year_jie = fields.Float(string='上年年度结余', store=True)
year_gong = fields.Float(string='年功奖', store=True)
@@ -36,13 +36,16 @@
<field name="date_of_entry"/>
<field name="struct_id" string="职级"/>
<field name="bank_account_id"/>
<field name="actual_salary" decoration-danger="1"/>
<field name="actual_salary" decoration-danger="1" decoration-bf="1"/>
<field name="total_before_tax" decoration-danger="1" decoration-bf="1"/>
<field name="b_year" decoration-danger="1" decoration-bf="1"/>
<field name="tax_payable" decoration-danger="1" decoration-bf="1"/>
<field name="union_dues" decoration-danger="1" decoration-bf="1"/>
<field name="base_salary" required="1"/>
<field name="rank_salary" required="1"/>
<field name="performance_bonuses" required="1"/>
<field name="post_salary" required="1" decoration-success="1"/>
<field name="seniority_salary" required="1" decoration-success="1"/>
<field name="union_dues" decoration-success="1"/>
<field name="high_temperature_allowance" decoration-success="1"/>
<field name="commuting_allowance" required="1" decoration-success="1"/>
<field name="full_attendance_award" decoration-success="1"/>
@@ -55,8 +58,6 @@
<field name="basic_medical_insurance" decoration-info="1"/>
<field name="unemployment_insurance" decoration-info="1"/>
<field name="housing_provident_fund" decoration-info="1"/>
<field name="union_dues" decoration-info="1"/>
<field name="b_year" decoration-info="1"/>
<field name="work_injury_insurance" decoration-info="1"/>
<field name="specialized_deduction" decoration-warning="1"/>
<field name="infant_care" decoration-warning="1"/>
@@ -75,10 +76,8 @@
<field name="jing_te" decoration-danger="1"/>
<field name="year_gong" decoration-danger="1"/>
<field name="study_on" decoration-danger="1"/>
<field name="commuting_deduction" decoration-danger="1" decoration-bf="1"/>
<field name="performance_deduction" decoration-danger="1" decoration-bf="1"/>
<field name="total_before_tax" decoration-danger="1" decoration-bf="1"/>
<field name="tax_payable" decoration-danger="1" decoration-bf="1"/>
<field name="commuting_deduction" decoration-danger="1"/>
<field name="performance_deduction" decoration-danger="1"/>
<field name="deduction_standard" decoration-danger="1"/>
<field name="safety_incentives" decoration-danger="1"/>
<field name="last_year_safety" decoration-danger="1"/>