Files
edr-platform/apps/edr-freight-web/backoffice
Nathnael 16c059252d feat(web): offer the currencies the API actually accepts
Every currency picker decided for itself which currencies existed, from a
hardcoded pair, so an administrator's setting and the form could disagree
and the customer would only find out on submit. They now read
GET /exchange-settings/currencies.

CurrencySelector's allowUsd boolean becomes an allowed list. The caller is
choosing on two independent axes — trade direction (export and intercity
invoice in ETB whatever is picked) and what is switched on — so a second
boolean would have needed a third one next time.

Adds the DJF card and option with its own hint, the DJF tab on the finance
hub and the DJF row on the manual-payment settings card, both driven by
the per-currency flag rather than an if/else on two currencies. The
exchange-rate settings card gets the toggle itself, with the wording that
turning it off stops new choices rather than changing bookings already
priced in DJF.

The inline "ETB" | "USD" unions on the invoice filter and the customer
shipment and payment types are widened, so a DJF invoice is not mistyped
on arrival.

formatMoney needs no change — it already defaults to 0 fraction digits,
which is correct for DJF.
2026-08-29 08:13:52 +00:00
..
2026-07-11 12:17:33 +03:00
2026-06-13 14:32:26 +03:00
2026-08-10 12:00:29 +03:00
2026-08-08 09:37:28 +00:00
2026-07-10 13:04:39 +00:00
2026-05-12 15:17:16 +03:00