mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 13:36:48 +00:00
7f87dd512d
The server freezes the FX rate when an expense or a settle-up transfer is entered and settles the balances with it, but the client ignored the column and converted every amount with today's rate. A bill paid in dollars was therefore worth something different each time it was opened, which a tester noticed after settling up: the figure moved under him, and the row no longer matched what had actually changed hands. convertBooked applies the server's own rule, in one place for both shells and the transfer rows: an amount already in the trip currency is left to the live step, a frozen rate converts to the trip currency before the live step, and a rate of 1 or none at all is a row written before the freeze existed and keeps converting live.