Thursday, November 7, 2024
1 change · master
Resolved issues and error corrections
Belgian payroll now shows the eco voucher action only for the relevant holiday termination payslip batches. When used, the wizard creates or updates the correct monthly payslip structure so eco vouchers are included accurately without disrupting payslip presentation.
Original PR description
Problem ---------- - The eco voucher button should be only displayed when a holiday termination payslip is in the batch. (N or/and N-1) - When payslips are generated with the eco-voucher wizard, all…
Problem ---------- - The eco voucher button should be only displayed when a holiday termination payslip is in the batch. (N or/and N-1) - When payslips are generated with the eco-voucher wizard, all payslips have the wrong structure : CP200HOLN. The eco voucher button should generate or regenerate a monthly payslip with the eco voucher inside. Objective ---------- - Display the button for the good structures. - Change the filtered employee in the eco-voucher wizard to match the structs - Use the good struct for payslips generated from eco-voucher wizard : CP200MONTHLY - Add new rule in the structure to display a line in the payslip if an eco-voucher is add as "other fields". (But hide it in the payslip) Solution ---------- - Condition on structure code changed from CP200HOLN and CP200HOLN1 for the visibility of the eco voucher button. - Employees filter changed for the eco-voucher action - Payslip structure changed for payslips generated from the eco-voucher wizard. - New record added in the CP200MONTHLY structure. Test ---------- Python test added to test if an eco-vouchers line is added to payslips in the batch when the user validate the payslip generation from the eco-vouchers wizard. 3 cases are covered : - generated payslips - existing payslips - edited existing payslips (edited with the edit payslip wizard in cogmenu) task-3598939