From 9f1af78e072b37731e44321fe58d2211ad8614de Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Fri, 6 Jun 2025 15:34:28 +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/wizard/salary_compute_wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_salary/wizard/salary_compute_wizard.py b/yuthon_salary/wizard/salary_compute_wizard.py index c9c69e168..662d756b6 100644 --- a/yuthon_salary/wizard/salary_compute_wizard.py +++ b/yuthon_salary/wizard/salary_compute_wizard.py @@ -163,14 +163,14 @@ class SalaryComputeWizard(models.Model): elif field_name == 'union_dues': # 单独处理工会会费 base_salary = getattr(internship_id, 'base_salary', 0) result = base_salary * 0.005 - elif field_name == 'housing_fund': # 单独处理住房公积金 + elif field_name == 'housing_provident_fund': # 单独处理住房公积金 # 获取合同入职日期的年份和月份 contract_year = str(contract_start_date.year) contract_month = str(contract_start_date.month) # 判断是否为入职当月 if contract_year == self.select_year and contract_month == self.select_time: result = 0 # 入职当月住房公积金为0 - elif field_name == 'enterprise_annuity': # 新增企业年金计算 + elif field_name == 'b_year': # 新增企业年金计算 # 获取合同转正日期的年份和月份 if contract_end_date: # 确保转正日期存在 contract_end_year = str(contract_end_date.year)