From 3feff6502550ffe2fc3008b2d5cc6948e1885337 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: Mon, 22 Dec 2025 15:34: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_holiday/models/inherit_hr_leave.py | 2 +- .../models/inherit_hr_payroll_structure.py | 17 +++--- .../inherit_hr_payroll_structure_views.xml | 6 ++- yuthon_salary/wizard/yuthon_salary_wizard.py | 53 ++++++++++--------- 4 files changed, 42 insertions(+), 36 deletions(-) diff --git a/yuthon_holiday/models/inherit_hr_leave.py b/yuthon_holiday/models/inherit_hr_leave.py index cb2c3c3e0..3686339dc 100644 --- a/yuthon_holiday/models/inherit_hr_leave.py +++ b/yuthon_holiday/models/inherit_hr_leave.py @@ -726,7 +726,7 @@ class HolidaysRequestBatch(models.Model): @api.depends('users_id') def _compute_holiday_allowance(self): current_date = fields.Date.today() - vacation_date = current_date - relativedelta(months=1) + vacation_date = current_date for record in self: reports_id = self.env['yuthon.vacation.reports'].search([('employee_id', '=', record.users_id.employee_ids.id), ('vacation_date', '=', vacation_date.replace(day=1)) diff --git a/yuthon_salary/models/inherit_hr_payroll_structure.py b/yuthon_salary/models/inherit_hr_payroll_structure.py index db07355ca..d066551cc 100644 --- a/yuthon_salary/models/inherit_hr_payroll_structure.py +++ b/yuthon_salary/models/inherit_hr_payroll_structure.py @@ -173,16 +173,15 @@ class HrPayrollStructure(models.Model): def salary_rule_data(self): # 定义不同公司的字段映射 company_mappings = { - '天河物管': { # 天河物管 + # '天河物管': { + # '基本工资': 'base_salary', + # '岗位工资': 'position_salary', + # '综合补贴': 'integrated_subsidy', + # '通讯补贴': 'communication_subsidy' + # }, + '天河粮储': { '基本工资': 'base_salary', - '岗位工资': 'position_salary', - '综合补贴': 'integrated_subsidy', - '通讯补贴': 'communication_subsidy' - }, - '天河粮储': { # 天河梁储 - '基本工资': 'base_salary', - '岗位工资': 'position_salary', - '岗位补贴': 'position_subsidy', + '职级工资': 'rank_salary', '预发绩效奖金': 'advance_performance_bonuses' } } diff --git a/yuthon_salary/views/inherit_hr_payroll_structure_views.xml b/yuthon_salary/views/inherit_hr_payroll_structure_views.xml index f0cb8613f..71eaa0912 100644 --- a/yuthon_salary/views/inherit_hr_payroll_structure_views.xml +++ b/yuthon_salary/views/inherit_hr_payroll_structure_views.xml @@ -21,7 +21,7 @@