From a6a0519171c70d6dac901293e0bb2c2990513386 Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Thu, 6 Dec 2018 11:04:15 +0100 Subject: [PATCH] [IMP] l10n_be_hr_payroll: Remove duplicated salary rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This rule is a reduction for the ONSS contribution, not a reduction for the précompte professionnel. The reduction for the ONSS contribution is already implemented. --- .../data/l10n_be_hr_payroll_data.xml | 77 +++++-------------- 1 file changed, 18 insertions(+), 59 deletions(-) diff --git a/addons/l10n_be_hr_payroll/data/l10n_be_hr_payroll_data.xml b/addons/l10n_be_hr_payroll/data/l10n_be_hr_payroll_data.xml index c73f0d2a1ab..9b79df8df9e 100644 --- a/addons/l10n_be_hr_payroll/data/l10n_be_hr_payroll_data.xml +++ b/addons/l10n_be_hr_payroll/data/l10n_be_hr_payroll_data.xml @@ -80,11 +80,6 @@ result = contract.wage_with_holidays FamRed - - Withholding Tax Reduction - PPRed - - Special social contribution SSC @@ -301,40 +296,6 @@ else: result = - withholding_tax_amount - - - Withholding Tax Reduction for Low Salaries (ONSS) - PPRed.1 - 132 - python - result = categories.BRUT <= 2431.27 - code - -salary = categories.BRUT -percentage = 0.2803 -if salary <= 1577.89: - result = 193.79 * percentage -elif salary <= 2461.27: - result = (193.79 - (0.2194 * (salary - 1577.89))) * percentage - - - - - Withholding Tax Reduction for Low Salaries (ONSS) - PPRed.2 - 133 - python - result = categories.BRUT <= 2431.27 - code - -salary = categories.BRUT -percentage = 0.2803 -if salary <= 1577.89: - result = 209.29 * percentage -elif salary <= 2461.27: - result = (209.29 - (0.2369 * (salary - 1577.89))) * percentage - - Child Allowance Belgium @@ -342,7 +303,7 @@ elif salary <= 2461.27: 140 fix python - result = bool(employee.dependent_children) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA < 0.0) + result = bool(employee.dependent_children) and (categories.PP + categories.FamRed + categories.ChA < 0.0) @@ -359,7 +320,7 @@ elif salary <= 2461.27: a) Reduction for dependent children python - result = bool(employee.dependent_children) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA < 0.0) + result = bool(employee.dependent_children) and (categories.PP + categories.FamRed + categories.ChA < 0.0) @@ -377,9 +338,9 @@ elif salary <= 2461.27: Red.Iso 144 python - result = (employee.marital in ['divorced', 'single', 'widower']) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA < 0.0) + result = (employee.marital in ['divorced', 'single', 'widower']) and (categories.PP + categories.FamRed + categories.ChA < 0.0) code - result = min(25.00, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) + result = min(25.00, - (categories.PP + categories.FamRed + categories.ChA)) @@ -388,9 +349,9 @@ elif salary <= 2461.27: Red.Iso.Par 144 python - result = (employee.marital == 'widower' or (employee.marital in ['divorced', 'single', 'widower'] and employee.dependent_children)) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA < 0.0) + result = (employee.marital == 'widower' or (employee.marital in ['divorced', 'single', 'widower'] and employee.dependent_children)) and (categories.PP + categories.FamRed + categories.ChA < 0.0) code - result = min(36.00, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) + result = min(36.00, - (categories.PP + categories.FamRed + categories.ChA)) @@ -399,9 +360,9 @@ elif salary <= 2461.27: Red.Dis 145 python - result = (employee.disabled) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA < 0.0) + result = (employee.disabled) and (categories.PP + categories.FamRed + categories.ChA < 0.0) code - result = min(36.00, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) + result = min(36.00, - (categories.PP + categories.FamRed + categories.ChA)) @@ -410,9 +371,9 @@ elif salary <= 2461.27: Red.Seniors 146 python - result = (employee.other_dependent_people and employee.dependent_seniors) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA < 0.0) + result = (employee.other_dependent_people and employee.dependent_seniors) and (categories.PP + categories.FamRed + categories.ChA < 0.0) code - result = min(73.0 * employee.dependent_seniors, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) + result = min(73.0 * employee.dependent_seniors, - (categories.PP + categories.FamRed + categories.ChA)) @@ -421,9 +382,9 @@ elif salary <= 2461.27: Red.Juniors 147 python - result = (employee.other_dependent_people and employee.dependent_juniors) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA < 0.0) + result = (employee.other_dependent_people and employee.dependent_juniors) and (categories.PP + categories.FamRed + categories.ChA < 0.0) code - result = min(36.0 * employee.dependent_juniors, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) + result = min(36.0 * employee.dependent_juniors, - (categories.PP + categories.FamRed + categories.ChA)) @@ -432,9 +393,9 @@ elif salary <= 2461.27: Red.Spouse.Net 148 python - result = (employee.marital in ['married', 'cohabitant'] and employee.spouse_fiscal_status=='with income' and employee.spouse_net_revenue <= 225.0) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA < 0.0) + result = (employee.marital in ['married', 'cohabitant'] and employee.spouse_fiscal_status=='with income' and employee.spouse_net_revenue <= 225.0) and (categories.PP + categories.FamRed + categories.ChA < 0.0) code - result = min(110.50, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) + result = min(110.50, - (categories.PP + categories.FamRed + categories.ChA)) @@ -443,9 +404,9 @@ elif salary <= 2461.27: Red.Spouse.Oth.Net 149 python - result = (employee.marital in ['married', 'cohabitant'] and employee.spouse_fiscal_status=='with income' and not employee.spouse_net_revenue and employee.spouse_other_net_revenue <= 450.0) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA < 0.0) + result = (employee.marital in ['married', 'cohabitant'] and employee.spouse_fiscal_status=='with income' and not employee.spouse_net_revenue and employee.spouse_other_net_revenue <= 450.0) and (categories.PP + categories.FamRed + categories.ChA < 0.0) code - result = min(220.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) + result = min(220.0, - (categories.PP + categories.FamRed + categories.ChA)) @@ -454,9 +415,9 @@ elif salary <= 2461.27: Sp.handicap 150 python - result = (employee.disabled_spouse_bool==True) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA < 0.0) + result = (employee.disabled_spouse_bool==True) and (categories.PP + categories.FamRed + categories.ChA < 0.0) code - min(36.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) + min(36.0, - (categories.PP + categories.FamRed + categories.ChA)) @@ -642,7 +603,6 @@ result = -min(ip_amount * tax_rate, 11745) ref('hr_salary_rule_representation_fees'), ref('hr_payroll_rules_suppl_net'), ref('hr_payroll_rules_retained_net'), - ref('hr_salary_rule_pp_reduction_employees'), ref('hr_salary_rule_ip'), ref('hr_salary_rule_ip_deduction'), ref('hr_salary_rule_ip_part'), @@ -668,7 +628,6 @@ result = -min(ip_amount * tax_rate, 11745) ref('hr_salary_rule_representation_fees'), ref('hr_payroll_rules_suppl_net'), ref('hr_payroll_rules_retained_net'), - ref('hr_salary_rule_pp_reduction_workers') ])]" name="rule_ids"/>