You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(csv): avoid rounding drift by allocating shares in minor units with last-share remainder\n\nPreviously, participant shares were computed in major units and rounded per-participant before saldo calculation. For amounts like 1.01 split across 2 people, this caused mismatches (e.g. -0.51 and +0.50) where per‑row saldos did not add up due to early rounding.\n\nThis change mirrors app behaviour: compute shares in minor units (cents), distribute floor(amount*share/total) incrementally and assign the remainder to the last relevant participant. Saldos are derived from these integer shares and only formatted at the end. This fixes the erroneous rounding assignment and keeps totals consistent.
0 commit comments