mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 13:36:48 +00:00
33e606959c
The ledger nets every currency in hundredths, and the settlement handed those hundredths out as they were. For a currency shown without decimals the panels then rounded each balance and flow on its own: 10,000 KRW three ways read +6,667 / -3,333 / -3,333, two flows of 3,333 sat under "You're owed 6,667", and Settle booked 3,333.34 won. The balances, flows and final budget lines are now allocated by largest remainder in whole steps of the display currency (whole won or yen, unchanged for two and three decimal ones), so the shown set adds up to zero and the flow amount Settle sends is the whole amount on the row. The ledger, stored rows and manual settlements are untouched. REST and the MCP settlement summary share the same method. Refs #2604