添加功能
This commit is contained in:
@@ -70,6 +70,11 @@ class InheritHrPayslip(models.Model):
|
||||
deduction_standard = fields.Float(string='减除费用标准')
|
||||
paid_tax = fields.Float(string='已缴税额')
|
||||
|
||||
performance_deduction = fields.Float(string='扣发绩效奖金', store=True)
|
||||
attendance_deduction = fields.Float(string='扣发全勤奖', store=True)
|
||||
commuting_deduction = fields.Float(string='扣发通勤补贴', store=True)
|
||||
base_salary_deduction = fields.Float(string='扣发基本工资', store=True)
|
||||
|
||||
@api.depends('line_ids')
|
||||
def _compute_salary(self):
|
||||
for rec in self:
|
||||
|
||||
@@ -35,7 +35,10 @@
|
||||
<field name="seniority_salary"/>
|
||||
<field name="overtime_pay"/>
|
||||
<field name="full_attendance_award"/>
|
||||
<field name="attendance_deduction_total"/>
|
||||
<field name="performance_deduction"/>
|
||||
<field name="attendance_deduction"/>
|
||||
<field name="commuting_deduction"/>
|
||||
<field name="base_salary_deduction"/>
|
||||
<field name="assessment_reserved_amount"/>
|
||||
<field name="total_before_tax"/>
|
||||
<field name="basic_medical_insurance"/>
|
||||
@@ -130,13 +133,16 @@
|
||||
<field name="unemployment_insurance" invisible="1"/>
|
||||
<field name="work_injury_insurance" invisible="1"/>
|
||||
<field name="housing_provident_fund" invisible="1"/>
|
||||
<field name="attendance_deduction_total" invisible="1"/>
|
||||
<field name="assessment_reserved_amount" invisible="1"/>
|
||||
<field name="year_compute" invisible="1"/>
|
||||
<field name="year_jie" invisible="1"/>
|
||||
<field name="year_gong" invisible="1"/>
|
||||
<field name="study_on" invisible="1"/>
|
||||
<field name="jing_te" invisible="1"/>
|
||||
<field name="performance_deduction" invisible="1"/>
|
||||
<field name="attendance_deduction" invisible="1"/>
|
||||
<field name="commuting_deduction" invisible="1"/>
|
||||
<field name="base_salary_deduction" invisible="1"/>
|
||||
<field name="commercial_health_insurance" invisible="1"/>
|
||||
<field name="tax_deferred_pension_insurance" invisible="1"/>
|
||||
<field name="others" invisible="1"/>
|
||||
@@ -168,7 +174,10 @@
|
||||
<field name="seniority_salary"/>
|
||||
<field name="overtime_pay"/>
|
||||
<field name="full_attendance_award"/>
|
||||
<field name="attendance_deduction_total"/>
|
||||
<field name="performance_deduction"/>
|
||||
<field name="attendance_deduction"/>
|
||||
<field name="commuting_deduction"/>
|
||||
<field name="base_salary_deduction"/>
|
||||
<field name="assessment_reserved_amount"/>
|
||||
<field name="union_dues"/>
|
||||
<field name="year_compute"/>
|
||||
|
||||
Reference in New Issue
Block a user