From 943833ad356ec4081e1da97c861945a69d1ab420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Sat, 10 Jan 2026 21:00:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_salary/models/inherit_hr_payslip.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yuthon_salary/models/inherit_hr_payslip.py b/yuthon_salary/models/inherit_hr_payslip.py index 325ebe9d2..8c1dd1f08 100644 --- a/yuthon_salary/models/inherit_hr_payslip.py +++ b/yuthon_salary/models/inherit_hr_payslip.py @@ -465,11 +465,11 @@ class InheritHrPayslip(models.Model): rec.individual_tax_refund = line.total if line.name in '经营特别奖': rec.jing_te = line.total - if line.name in '清算工资(领导)': + if line.name and '清算工资(领导)' in line.name: rec.liquidating_payroll_head = line.total - if line.name in '清算工资(职工)': + if line.name and '清算工资(职工)' in line.name: rec.liquidating_payroll = line.total - if line.name in '结余工资': + if line.name and '结余工资' in line.name: rec.balance_salary = line.total if line.name == '补发津贴': rec.retroactive_allowance = line.total