I’d like to report a minor issue found in a staff’s payslip. We suspect the discrepancy may be caused by the daily rate of RM119.35 multiplied by 4.5 days, which gives RM537.075.
It seems one calculation rounded this to RM537.08 (though the payslip still shows RM537.07), while another calculation didn’t round up at all. This caused a mismatch in the final amount shown.
Appreciate your help to review and clarify if there’s a rounding rule being applied inconsistently.
This is very likely due to my oversight on the front end, that some values were based on server calculations, while others were “re-calculated” on the fly AGAIN on the front end.
Will look into this when I am free later as I am currently working on another task.
Hi Kapchew, here’s a suggestion: should we round off the individual figures first before calculating the total? This way the result will be more accurate, and the payslip figures will tally with the calculations.
For your consideration, there is no issue with applying rounding to each individual figure before calculating the total, as this is also regarded as an accurate approach. However, under the current method, the payslip figures and the overall total may not tally, which could potentially raise questions from staff in the future, particularly for legal or banking purposes.
For the avoidance of confusion, a special note is also added to the end of each payslip that reads:
“Note: The total has been calculated based on the unrounded amounts to ensure accuracy. Due to rounding, the sum of the displayed amounts may differ slightly from the total.”
It may not help on explain to banker i guess.
End up the payslip may not valid to be supporting document. Please take consideration on this, and will be appreciated.