point of sale: add feature
point of sale: add feature: a task in smol-software-harbor (Harbor dataset). Two additions to cash/round.py : cash total must also handle negative amounts (cash refunds) symmetrically, i.e. halves away from zero ( -1225 DKK gives -1250 ); and a new change due(paid cents, total cents, currency)…
The task
Two additions to `cash/round.py`: `cash_total` must also handle negative amounts (cash refunds) symmetrically, i.e. halves away from zero (`-1225` DKK gives `-1250`); and a new `change_due(paid_cents, total_cents, currency)` returns the change for a cash payment: the amount paid minus the rounded total, rounded to…
Part of efederici/smol-software-harbor.