mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 06:40:57 +00:00
Fix 2 — lastmile should only be yes if EDR last mile.
This commit is contained in:
@@ -158,6 +158,14 @@ export class BookingJourneyService {
|
||||
this.events.emit('booking.completed', { bookingId });
|
||||
}
|
||||
|
||||
// The cargo is physically off the train at its own yard — mid-corridor or
|
||||
// final. WarehouseInventoryService picks this up to create the warehouse
|
||||
// record (import/intercity only; export already has one from receive).
|
||||
this.events.emit('booking.unloadedAtYard', {
|
||||
bookingId,
|
||||
tradeDirection: booking.tradeDirection,
|
||||
});
|
||||
|
||||
// Customer tracking: THIS booking arrived (train may still be rolling).
|
||||
void this.completeMilestones(booking, [
|
||||
...(booking.tradeDirection === 'IMPORT'
|
||||
|
||||
Reference in New Issue
Block a user