Files
edr-platform/apps/edr-freight-web/backoffice
hager 6ebb402131 feat(freight-backoffice): enter several trucks on one arrival
The receive drawer captured one truck per arrival, so a customer whose
containers came on three trucks had to be received three times over.

Stage trucks instead. "Add another truck" validates the form exactly as a
single-truck receive does, files the truck with its own plate, driver and
containers, and clears the form for the next one. The staged trucks are
listed above the form with their boxes, each removable, and the arrival is
received in one operation.

Containers already staged on an earlier truck drop out of the picker, so
the same box cannot be sent twice.

Receiving with a part-filled form and trucks already staged is treated as
the operator still typing rather than a finished arrival: it asks them to
finish or clear the truck instead of silently dropping what they entered.
An untouched form receives just the staged trucks.

With no trucks staged the drawer sends the original truckEntrance and
containerNumbers fields, so a single-truck arrival takes exactly the path
it did before.

Verified: backoffice type-check reports 982 errors both with and without
this change (all pre-existing, none in the touched files); 13 warehouse
API suites pass (73 tests).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 19:52:46 +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-07-10 13:04:39 +00:00
2026-05-12 15:17:16 +03:00