This is the behaviour when generating payrolls by batch. Whenever an error is encountered while generating a payroll it’s always reverted back to its original state before payroll generation.
The individual payroll generation, accessed through the payroll details page, didn’t share this behaviour and led users into thinking that an erroneous payroll was successfully generated.
This became a big issue when an error was encountered computing for taxes. The error message was missed and a payroll was partially generated. The payroll looked correct but without the taxes being deducted.
To prevent users from being confused the payrolls are now processed in a transaction and if the transaction is not totally successful then the payroll is reverted back.
If you have any questions please let us know by clicking here .
— Ronald Maravilla