Files
edr-platform/apps/edr-freight-web/backoffice/src
Hagernesh a5973de6e1 feat(intercity): a facility only handles the cargo its equipment can lift
Containers need a reach stacker or gantry, so only Indode, Modjo and Dire Dawa
take them. Bulk needs far less and is handled at all five facilities. Having a
facility was previously enough to load anything, so a container booking through
Sebeta or Adama would have been accepted and then had nothing to lift it.

- yard_facilities gains handles_container / handles_bulk, both defaulting true so
  a facility handles everything unless told otherwise; the seeder states the real
  capability.
- The intercity gate now refuses cargo a facility cannot lift, saying which type,
  not just "no facility". canHandleFreight keeps that rule in the resolver so
  callers cannot get it subtly wrong.
- The intercity list resolves each end against the booking's own freight type, so
  the view flags a container booking routed through a bulk-only yard while the
  train is still coming rather than when the load is refused.

Import/export untouched — the gate is still DOMESTIC-only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 07:13:51 +00:00
..
2026-07-18 09:12:52 +00:00
2026-07-10 11:25:59 +00:00
2026-07-10 11:25:59 +00:00
2026-07-10 11:25:59 +00:00
2026-07-11 05:49:10 +00:00
2026-07-14 07:45:33 +00:00
fix
2026-07-17 13:10:27 +00:00
2026-07-10 11:25:59 +00:00
2026-07-10 11:25:59 +00:00
2026-07-10 11:25:59 +00:00
2026-07-16 08:52:29 +00:00
2026-07-10 12:09:27 +00:00
2026-07-14 07:59:17 +00:00
2026-05-12 15:17:16 +03:00
2026-07-14 07:59:17 +00:00
2026-06-19 16:24:20 +03:00
fix
2026-07-17 13:10:27 +00:00
2026-07-16 08:52:29 +00:00
2026-07-16 08:52:29 +00:00