NaN errors in Payroll 'process' page
Problem reported by Simon Jackson 8 years ago
I've just tried processing my usual monthly payroll, but this time adding another Payment line of 'Annual bonus 2016/2017'. However this causes the Tax and NI deduction calculations to error (NaN, or Not a Number). See the attached screenshot (with the amounts changed!):
Attempting to 'Complete' the page with this error causes one of ClearBook's 'Whoops' error pages.
Interestingly, changing the additional payment description to just 'Annual bonus' fixes the issue, so there's a problem somewhere with the Description field interfering with the calculation. If length or characters the description can contain is an issue, perhaps some field validation is needed, or just fix the calculation to work regardless of the description.