diff --git a/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step2-service-type.tsx b/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step2-service-type.tsx index 64653abe3..47e80e7e2 100644 --- a/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step2-service-type.tsx +++ b/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step2-service-type.tsx @@ -40,6 +40,11 @@ export function Step2ServiceType({ serviceType ?? {}; const firstMileEnabled = form.watch("firstMile.enabled"); const lastMileEnabled = form.watch("lastMile.enabled"); + // The paid-mile service prices the road legs into the booking itself; every + // other service defers last-mile billing to after the Djibouti departure + // (confirm containers → sign supplementary LM contract → pay advance). + const deferredLastMileBilling = + serviceType?.code !== "RAIL_CONTAINER_PAID_MILE"; const prevServiceType = useRef(serviceType); // Only clear a mile when the current service doesn't include it — this ran @@ -205,7 +210,11 @@ export function Step2ServiceType({ } title="Last Mile — Delivery" - description="Truck delivery from the destination rail yard to the final address (Port to Door)." + description={ + deferredLastMileBilling + ? "Truck delivery from the destination rail yard to the final address (Port to Door). Nothing is paid now — last-mile billing starts after your train departs Djibouti." + : "Truck delivery from the destination rail yard to the final address (Port to Door)." + } checked={field.value ?? false} onChange={(value) => { field.onChange(value); @@ -224,6 +233,15 @@ export function Step2ServiceType({ > {lastMileEnabled && ( + {deferredLastMileBilling && ( + + How it works: when your train departs Djibouti, you + will be asked to confirm which containers EDR should + deliver. Once truck availability is approved, you will + sign a short supplementary last-mile contract and pay + the delivery advance — nothing is charged at booking. + + )} { @@ -471,7 +476,11 @@ export function Step2ServiceType({ } title="Last Mile — Delivery" - description="Truck delivery from the destination rail yard to the final address (Port to Door)." + description={ + deferredLastMileBilling + ? "Truck delivery from the destination rail yard to the final address (Port to Door). Nothing is paid now — last-mile billing starts after your train departs Djibouti." + : "Truck delivery from the destination rail yard to the final address (Port to Door)." + } checked={field.value ?? false} onChange={(value) => { field.onChange(value); @@ -492,6 +501,15 @@ export function Step2ServiceType({ > {lastMileEnabled && ( + {deferredLastMileBilling && ( + + How it works: when your train departs Djibouti, you + will be asked to confirm which containers EDR should + deliver. Once truck availability is approved, you will + sign a short supplementary last-mile contract and pay + the delivery advance — nothing is charged at booking. + + )}