mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 08:48:11 +00:00
add usd for import
This commit is contained in:
@@ -348,6 +348,9 @@ export default function GlCreateBookingForm() {
|
||||
// Intercity shipments ride a passing import/export train staff pick at
|
||||
// finalize time — no shipment day is chosen and no window gate applies.
|
||||
const isIntercity = contract?.tradeDirection === "DOMESTIC";
|
||||
// USD billing is offered on import traffic only — export and domestic
|
||||
// shipments are always invoiced in ETB.
|
||||
const isImport = contract?.tradeDirection === "IMPORT";
|
||||
|
||||
// ONE_TIME split-remainder mode: a previous booking on this contract was
|
||||
// split on train capacity, so the capacity endpoint reports the outstanding
|
||||
@@ -1757,12 +1760,15 @@ export default function GlCreateBookingForm() {
|
||||
Billing currency
|
||||
</Text>
|
||||
<Text size="xs" c="dimmed" mb={8}>
|
||||
Shipments are invoiced in ETB.
|
||||
{isImport
|
||||
? "Import shipments may be invoiced in ETB or USD. USD is paid by bank transfer, not online."
|
||||
: "Shipments are invoiced in ETB."}
|
||||
</Text>
|
||||
<CurrencySelector
|
||||
value={isIntercity ? "ETB" : paymentCurrency}
|
||||
onChange={setPaymentCurrency}
|
||||
disabled={isIntercity}
|
||||
allowUsd={isImport}
|
||||
/>
|
||||
</Box>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user