Trek_CN/server
Maurice aa91f009ad fix(costs): freeze the FX rate so settled expenses don't reopen when rates drift (#1335)
Settle-up transfers are stored as fixed amounts, but a foreign-currency expense was re-converted with live rates on every settlement calc. When the rate drifted, the fixed transfer no longer cancelled the re-valued expense and a few-cent residual re-opened the settled position. Foreign-currency expenses now freeze the live rate at entry time into the existing budget_items.exchange_rate column, and the settlement converts with that frozen rate when working in the trip currency. Legacy rows (exchange_rate = 1) keep using live rates, so historical data is unchanged until re-edited; rate fetch failures fall back to live rates.
2026-06-27 20:14:52 +02:00
..
assets v3.1.1 bug fixes (#1228) 2026-06-18 20:13:30 +02:00
public v3.0.16 — bug fixes (#964) 2026-05-06 21:38:40 +02:00
scripts v3.1.1 bug fixes (#1228) 2026-06-18 20:13:30 +02:00
src fix(costs): freeze the FX rate so settled expenses don't reopen when rates drift (#1335) 2026-06-27 20:14:52 +02:00
tests fix(costs): freeze the FX rate so settled expenses don't reopen when rates drift (#1335) 2026-06-27 20:14:52 +02:00
.env.example fix(maps): make Overpass endpoints configurable and harden the POI search (#1309) 2026-06-27 20:14:52 +02:00
.gitignore Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
.prettierrc Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
eslint.config.mjs Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
package.json chore: bump version to 3.1.2 [skip ci] 2026-06-23 19:24:13 +00:00
reset-admin.js Stabilize core: better-sqlite3, versioned migrations, graceful shutdown 2026-03-22 17:52:24 +01:00
tsconfig.build.json Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
tsconfig.json Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
vitest.config.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00