How to prepare the payroll record
- Calculate each ideal share from the same pool and weights.
- Keep each whole-cent floor and rank employees by the leftover fraction.
- Award available cents in that order, breaking equal fractions by employee or role ID.
Worked example
A $100.01 equal-weight pool for three staff pays $33.34, $33.34 and $33.33. The orphan balance is $0.00.