!--a11y-->
Christmas Bonus during Maternity Leave 
Purpose
When an employee takes a leave from the job due to maternity, she is entitled to the payment of her Christmas bonus relative to the months during which she is absent. The employer, however, is not responsible for paying this benefit, rather, the National Institute of Social Security (INSS, Instituto Nacional do Seguro Social).
Even though it is the INSSs responsibility to pay the Christmas bonus regarding the maternity leave, the system calculates and stores this amount, since the employer needs to pay a percentage of the value to the INSS for the SAT contribution and for the employers contribution (See GPS report).
The maternity leave is calculated based on special runs (off-cycle) FERI, 131P, 1313 and 13DI.
Implementation
The DECPR, DEC1P and DECSE constants must be customized in the IMG stage: Payroll
® Christmas bonus ® Update constants for the Christmas bonus.Constants:
0 Considers the 12 months, with or without absences. The value 0 for this constant means: base salary * 2/12 * 50%
1 Considers all of the months until the run date, with or without absences. The value 1 for this constant means: base salary * 2/12 * 50%
2 Only considers the months until the run date plus the forecast for the months until the end of the year (user-exit EXIT_SAPLHRPAYBR09_005). The result depends on customizing the user-exit.
3 Only considers the months until the run date. This value represents the base salary as * 2/12 * 50%.
When calculating the second parcel, the system once again calculates the values for the whole year and subtracts the values that were already paid in the first parcel.

The function-exit EXIT_SAPLHRPAYBR09_005 is configured to foresee the eligible months, from the run date to the end of the year, in order to calculate the Christmas bonus when the first parcel is paid before the end of the year. The function-exit is only loaded if the DECPR constant contains the value 2.
The standard system provides an include that serves as an example for the user to define his/her own include (indicator) according to the company needs. This include is not executable. The client has the following possibilities:
This user-exit is customized in the IMG stage: Payroll
0 Considers the months fraction to calculate the December Christmas bonus, regardless of the number of days that were worked.
1 Counts the days that were worked in the month in order to evaluate whether the employee was active for 15 days, or more, in the month. If so, this months fraction will be considered in the calculation; otherwise, it will not.
Wage types:
The following wage types are used to calculate the maternity leave:
/D11 Employer Fractions indicates the months that are considered for payment of Christmas bonus by the employer.
/D13 Maternity Leave Fractions indicates the absence months due to the maternity leave that will be considered for the Christmas bonus to be paid by the INSS.
/348 Christmas bonus for Maternity Leave stores the value of the Christmas bonus the INSS has to pay the employee in relation to the maternity leave.
/349 Dif. Christmas Bonus for Maternity Leave Stores the value to be paid by the INSS to the employee in the current off-cycle (FERI, 131P, 1313, 13DI), due to the maternity leave (difference between /348 and /350).
/350 Paid Christmas Bonus for Maternity Leave Stores the value of the Christmas bonus that the INSS paid the employee, in previous off-cycles due to the maternity leave.
/352 Negative Difference of the Christmas Bonus for Maternity Leave Has the same meaning as type /349; however, it is used when the values are negative.

Example
Consider the following scenario:
In this example, only ten months are considered for the payment of the Christmas bonus, since in April and May the employee was on maternity leave (March is considered because the employee worked for more than fifteen days). Therefore,
In total, the employee receives R$2,400.
Considering that the DECPR constant has a value of 2 (using the exit function) and the exit function is configured as the model indicator provided by SAP, the Christmas bonus parcel payments are made as follows:
The parcel payment is ran in July and refers to the payment of 50%. This percentage is defined through the configuration of the DEC1P constant. The eligible months for the first parcel are determined through the configuration of the DECPR constant. Therefore,
Base salary = 1200
Christmas bonus paid by the company = Base salary * 6/12 *50% = 500
Maternity leave salary (paid by the INSS) = Base salary * 2/12 * 50% RS 100 (type /348)
A second run is necessary due to the pay raise effective retroactive to May. The payment of the first parcel is recalculated in August.
Base salary = 1800
Christmas bonus paid by the company = Base salary * 6/12 *50% = 750
Maternity leave salary (paid by the INSS) = Base salary * 2/12 * 50% RS 150 (type /348)
but, since the first parcel was already paid in July, it must be deduced from the recalculated value:
Christmas bonus paid by the company = R$ 750 R$ 500 = 250
Maternity leave salary (paid by the INSS) = R$ 150 R$ 100 (type /350) = R$ 50 (type /349)
Due to one more pay raise in September, the salary base is once again higher and the value must be calculated retroactively.
Base salary = 2400
Christmas bonus paid by the company = Base salary * 6/12 *50% = R$2000
Maternity leave salary (paid by the INSS) = Base salary * 2/12 * 50% RS 400
To obtain the value of the second parcel, it is necessary to deduce the value that has already been paid.
Christmas bonus: second parcel first parcel = R$ 2000 R$750 = R$ 1250
Maternity leave salary (paid by the INSS): second parcel first parcel = R$ 400 (type /348) R$ 150 (type /350) = R$ 250 (type /349)
The third parcel is calculated exactly like the other ones, only subtracting the payments that have already been made.
