Files
edr-platform/apps/edr-freight-api
Hagernesh d9db4cbc0c fix(train-scheduling): scope the not-loaded dispatch guard to EXPORT only
The guard fired on every dispatch. Loading out of an origin warehouse is an
export concept — import cargo isn't loaded from a warehouse, so its warehouse
inventory says nothing about what's aboard and the check would have blocked
legitimate import dispatches. Derive the route direction (reusing
deriveTradeDirection, as the warehouse loading queue does) and return early for
anything that isn't EXPORT. Import and domestic behave exactly as before.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-17 08:01:57 +00:00
..
2026-06-29 13:00:55 +00:00
2026-05-12 16:50:18 +03:00
fix
2026-07-07 08:42:01 +00:00
2026-07-16 01:05:57 +00:00
2026-05-12 15:17:16 +03:00