Merge pull request #981 from Tria-plc/freight_feature/usermanagement

update locaomotive and fix wagon transfer issue
This commit is contained in:
marshal
2026-07-27 23:55:12 +03:00
committed by GitHub
23 changed files with 811 additions and 230 deletions

View File

@@ -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,
});
}
}