Friday, July 24, 2026
1 change · master
Enhancements to existing features
Payroll users can now correct an entire validated or paid pay run in one action instead of manually reverting and recreating each payslip. The system creates a linked correction pay run with the necessary reversal and draft corrected payslips, improving efficiency and traceability at batch level.
Original PR description
There was previously no way to correct a complete pay run once it was validated or paid. Users had to manually revert and recreate payslips one by one, with no traceability at the batch level. Add a "Correct" action on validated (or paid) pay runs. Triggering it: - Creates a new pay run covering the same period, structure, and company as the original. - Reuses the existing per-payslip refund/correction logic (_action_refund_payslips/_action_correct_payslips) to generate, for each original payslip, a reverted payslip (validated) and a draft corrected payslip, both linked to their origin. - Moves all reverted and corrected payslips into the new pay run and routes the user directly to its Payslips step. Task: 6352855