Did some final testing of Emailed Payslips with Hanz and accidentally noticed the following.
When employee has 2 payslips for the same pay period.
1 payslip with payslip_type = 1 (normal payslip)
1 payslip with payslip_type = 4 (pay adjustment payslip)
After payroll ran, I received 2 identical emails which looks like duplicate.
It took us some time to figure out that one payslip is for the pay adjustment.
Would be good if we incorporate the payslip_type in the email body as it is quite confusing.