I’ve tried to create a template for provision holiday pay.
See my code below.
I’ve tried this in an file but I don’t get an green sphere when it’s reconciled.
I noticed in your code that you are not resetting the registers $18 and $19 to 0 for every loop in your code. This means that for every new line created in your loop the previous values that were saved in the registers $18 and $19 will be taken into account as well for the calculation for the new line.