I updated my dumb payslip reconciler
by mark | 2 Apr 2022, 2:52 p.m.
I updated by payslip checking thing to work with 2022/23 numbers. I thought this would be a straightforward thing, but turns out there is not. His Holiness Sunak decided to have two Primary Thresholds apply in one tax year, so I had to change the backend as well as just squirting some more parameters into the database. (If you don't know what the PT is - this is the number above which you start paying National Insurance via PAYE).
Now I am not doing proper payroll calcs so this is all on the 30/360 day count convention instead of the Actual/Actual with rounding that is done in practice. But the PT thing has two effects. Means there is an awkward branch in a view. And also is a sign of the fact that the guys in charge hadn't planned this. For if they have, they'd have put it in with the start of the tax year.
The PT change was signposted far in advance. Supposedly to give the payroll guys time to put it in properly. I managed to jam it into this terrible website in about an hour, and most of that was dealing with the fixture holding the 2022/23 rates and thresholds rather than coding (ten line change in Python to determine if we are in a special year, and if so do a special calc for the special months). I reckon the professional payroll software people could have put this in within minutes.
Back to all articles