Tuesday, March 26, 2019
1 change · master
Enhancements to existing features
Payroll now includes better Belgian benefit and leave data, shows worked-day amounts on payslips, and calculates 13th month pay more accurately. This helps employees and payroll teams see clearer payslip details and ensures special salary payments account for seniority and unpaid or reduced-work absences.
Original PR description
1/ Add Belgian benefit and leave types ============================= 2/ [IMP] hr_payroll: display worked days amount on payslip ============================================= Purpose -----------…
1/ Add Belgian benefit and leave types
=============================
2/ [IMP] hr_payroll: display worked days amount on payslip
=============================================
Purpose
-----------
Currently, the number of days and hours for each `worked_days_line_ids` are
displayed on the payslip report. However the corresponding amount is not.
Specification
-----------------
For each `worked_days_line_ids` of a payslip, display the corresponding
amount on the report.
Amounts should be computed as follows:
Worked days lines of unpaid benefit type: 0
For other worked days lines:
1. Compute what the employee should **not** earn for the unpaid days
`unpaid amount = (average salary per day)*(number of unpaid days)`
The average salary per day is computed on a 3 month basis (there are always the
same number of days in 3 months=13 weeks).
=> `unpaid amount = wage*3/13/5 (5 days/week)`
2. Compute what the basic salary becomes:
`basic = wage - unpaid amount`
3. Distribute the basic salary among paid worked days types.
`amount of the line = basic * (number of days of the line)/(total number of paid days)`
3/ [IMP] l10n_be_hr_payroll: 13th month salary structure
=============================================
Purpose
---------
Currently, 13th month computation doesn't take into account several things:
- An employee should not receive a 13th month if he arrive after the 1st July
- The amount should be proportional to the employee seniority if he arrived between the 1st January and 1st July.
- Several benefit type should be deducted from the 13th month:
- Unpaid
- Time Credit
- Parental Time Off
- Unpredictable Reason
- Long Term Sick
- Long Term Sick > 12 months
- Part Time Sick
- Notice
Specification
--------
Take into account points above
Task 1923143
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr