From 16d9a1f6609af8315bad12793c0a57fde0a5f69f Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Mon, 24 Mar 2025 14:44:32 +0800 Subject: [PATCH 1/2] =?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 | 11 +++++- .../security/yuthon_salary_group.xml | 5 +-- .../views/inherit_hr_payslip_views.xml | 16 +++++++++ yuthon_salary/wizard/salary_payslip_wizard.py | 34 +++++++++++++++++-- 4 files changed, 59 insertions(+), 7 deletions(-) diff --git a/yuthon_salary/models/inherit_hr_payslip.py b/yuthon_salary/models/inherit_hr_payslip.py index 39e126cc1..aac9843ac 100644 --- a/yuthon_salary/models/inherit_hr_payslip.py +++ b/yuthon_salary/models/inherit_hr_payslip.py @@ -45,7 +45,7 @@ class InheritHrPayslip(models.Model): work_injury_insurance = fields.Float(string='工伤保险费', compute='_compute_salary', store=True) housing_provident_fund = fields.Float(string='住房公积金', compute='_compute_salary', store=True) b_year = fields.Float(string='企业(职业)年金', compute='_compute_salary', store=True) - total_before_tax = fields.Float(string='本期应收', compute='_compute_total_before_tax', store=True) + total_tax = fields.Float(string='本期应收', compute='_compute_total_before_tax', store=True) total_before_tax = fields.Float(string='税前合计', compute='_compute_total_before_tax', store=True) year_compute = fields.Float(string='年度清算') year_jie = fields.Float(string='年度结余') @@ -59,6 +59,15 @@ class InheritHrPayslip(models.Model): is_push = fields.Boolean(string='推送') is_salary_push = fields.Boolean(string='工资推送') + commercial_health_insurance = fields.Float(string='商业健康保险') + tax_deferred_pension_insurance = fields.Float(string='税延养老保险') + others = fields.Float(string='其他') + deductible_donations = fields.Float(string='准予扣除的捐赠额') + total_pre_tax_deductions = fields.Float(string='税前扣除项目合计') + tax_reduction = fields.Float(string='减免税额') + deduction_standard = fields.Float(string='减除费用标准') + paid_tax = fields.Float(string='已缴税额') + @api.depends('line_ids') def _compute_salary(self): for rec in self: diff --git a/yuthon_salary/security/yuthon_salary_group.xml b/yuthon_salary/security/yuthon_salary_group.xml index 2f9fc0190..d282b1578 100644 --- a/yuthon_salary/security/yuthon_salary_group.xml +++ b/yuthon_salary/security/yuthon_salary_group.xml @@ -64,9 +64,6 @@ 工资单公司过滤 [('yuthon_company', '=', user.employee_id.yuthon_company)] - - - - + \ No newline at end of file diff --git a/yuthon_salary/views/inherit_hr_payslip_views.xml b/yuthon_salary/views/inherit_hr_payslip_views.xml index abed75de5..d13171fbf 100644 --- a/yuthon_salary/views/inherit_hr_payslip_views.xml +++ b/yuthon_salary/views/inherit_hr_payslip_views.xml @@ -135,6 +135,14 @@ + + + + + + + + @@ -197,6 +205,14 @@ + + + + + + + +