From c2acd30413ef9b280ea2fc3e81589da5940cd2d0 Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Thu, 9 Nov 2017 14:13:59 +0100 Subject: [PATCH] [FIX] l10n_be_hr_payroll: Set the average working days to 231/year Purpose ======= That's the number of work days taken into account by the social secretariat --- addons/l10n_be_hr_payroll/models/l10n_be_hr_payroll.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/l10n_be_hr_payroll/models/l10n_be_hr_payroll.py b/addons/l10n_be_hr_payroll/models/l10n_be_hr_payroll.py index 72fbc801345..9487811d61f 100644 --- a/addons/l10n_be_hr_payroll/models/l10n_be_hr_payroll.py +++ b/addons/l10n_be_hr_payroll/models/l10n_be_hr_payroll.py @@ -80,7 +80,7 @@ class HrContract(models.Model): def _compute_wage_with_holidays(self): for contract in self: if contract.holidays > 20.0: - yearly_cost = contract.final_yearly_costs * (1.0 - (contract.holidays - 20.0) / 220.0) + yearly_cost = contract.final_yearly_costs * (1.0 - (contract.holidays - 20.0) / 231.0) contract.wage_with_holidays = contract._get_gross_from_employer_costs(yearly_cost) else: contract.wage_with_holidays = contract.wage @@ -133,7 +133,7 @@ class HrContract(models.Model): def _compute_holidays_compensation(self): for contract in self: if contract.holidays < 20: - decrease_amount = contract.final_yearly_costs * (20.0 - contract.holidays) / 220.0 + decrease_amount = contract.final_yearly_costs * (20.0 - contract.holidays) / 231.0 contract.holidays_compensation = decrease_amount else: contract.holidays_compensation = 0.0