This commit is contained in:
李鹏宇
2025-03-27 22:16:03 +08:00
parent ad5b0334d2
commit 04ca9cccc6
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -69,6 +69,7 @@ class InheritHrPayslip(models.Model):
tax_reduction = fields.Float(string='减免税额')
deduction_standard = fields.Float(string='减除费用标准')
paid_tax = fields.Float(string='已缴税额')
based_pay = fields.Float(string='临时绩效工资')
performance_deduction = fields.Float(string='扣发绩效奖金', store=True)
attendance_deduction = fields.Float(string='扣发全勤奖', store=True)
@@ -185,7 +186,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.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:
@@ -189,7 +189,7 @@ class YuthonPayrollInsurances (models.Model):
formula_salary = "result = employee.work_injury_insurance_base * " + str(number)
if ins.name == '住房公积金':
code = 'ZFGJJ'
formula_salary = "result = employee.housing_fund_base * " + str(number)
formula_salary = "result = round((employee.housing_fund_base * " + str(number) + "), 2)"
if ins.name == '工会会费':
code = 'GHHF'
formula_salary = "result = round((payslip.base_salary * 0.005), 2)"
@@ -44,6 +44,7 @@
<field name="jing_te"/>
<field name="total_before_tax"/>
<field name="basic_medical_insurance"/>
<field name="high_temperature_allowance"/>
<field name="basic_endowment_insurance"/>
<field name="unemployment_insurance"/>
<field name="tax"/>
@@ -54,6 +55,7 @@
<field name="reimburse_performance_bonus"/>
<field name="b_year"/>
<field name="union_dues"/>
<field name="based_pay"/>
<field name="meal_misunderstanding_fee"/>
<field name="is_salary_push" column_invisible="1"/>
</xpath>