mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 17:38:12 +00:00
update locaomotive and fix wagon transfer issue
This commit is contained in:
@@ -487,7 +487,13 @@ export class BookingJourneyService {
|
||||
currentYardId: booking.destinationYardId,
|
||||
currentTrainScheduleId: null,
|
||||
trainSetWagonId: null,
|
||||
status: Freight.WagonStatus.Available,
|
||||
// A wagon that belongs to a built train stays coupled to it (ASSIGNED);
|
||||
// only loose wagons return to the open AVAILABLE pool. Marking a
|
||||
// coupled wagon AVAILABLE made it show up in the train-builder's
|
||||
// "available wagons" picker, where attaching it always 409'd.
|
||||
status: wagon.trainId
|
||||
? Freight.WagonStatus.Assigned
|
||||
: Freight.WagonStatus.Available,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user