From c31a9933fbd67bc501b9eef3e2ace841e8f977cc Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Thu, 17 Jul 2025 21:53:41 +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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/yuthon_salary/models/inherit_hr_payslip.py b/yuthon_salary/models/inherit_hr_payslip.py index 61613c440..30f04ebf8 100644 --- a/yuthon_salary/models/inherit_hr_payslip.py +++ b/yuthon_salary/models/inherit_hr_payslip.py @@ -255,12 +255,20 @@ class InheritHrPayslip(models.Model): for rec in self: if rec.line_ids: for line in rec.line_ids: + if line.name == '学习进步奖': + rec.study_on = line.total + if line.name == '临时绩效奖': + rec.temporary_performance_bonus = line.total + if line.name == '上年安全生产工作奖': + rec.last_year_safety = line.total if line.name == '生育津贴': rec.allowance = line.total if line.name == '儿童节慰问金': rec.condolence_fund = line.total if line.name == '春节福利': rec.spring_festival = line.total + if line.name == '上年绩效评优': + rec.last_year_performance = line.total if line.name == '上年社保补缴': rec.social_security = line.total if line.name == '上年年度清算':