添加功能

This commit is contained in:
zhou
2025-06-12 12:22:53 +08:00
parent 0be5cbda63
commit 37e8dfc36f
2 changed files with 2 additions and 2 deletions
@@ -164,8 +164,8 @@
</group>
<group>
<field name="converted"/>
<field name="conversion_factor"/>
<field name="total_coefficients"/>
<field name="conversion_factor"/>
<field name="calculation_totals"/>
</group>
</group>
@@ -229,7 +229,7 @@ class YuthonPayrollInsurances (models.Model):
code = 'GHHF'
formula_salary = "result = round((payslip.base_salary * 0.005), 2)"
if ins.name == '企业(职业)年金':
if ins.company_id == '天河物管':
if ins.company_id.name == '天河物管':
code = 'WGQYNJ'
formula_salary = "result = round((employee.converted/total_coefficients * conversion_factor * 0.08 * 0.5)/12, 2)"
else: