mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 09:30:59 +00:00
add customs clearing filter and enhance clearance documents page for non-customs contracts
This commit is contained in:
@@ -53,6 +53,18 @@ export class TrainSchedulesRepository extends BaseRepository<TrainSchedule> {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Light fetch for human-facing labels (notifications): reference, train
|
||||
* number, departure and the two station names — none of the composition
|
||||
* graph {@link findByIdWithFullGraph} drags in.
|
||||
*/
|
||||
findByIdWithStations(id: string): Promise<TrainSchedule | null> {
|
||||
return this.repository.findOne({
|
||||
where: { id },
|
||||
relations: { originStation: true, destinationStation: true },
|
||||
});
|
||||
}
|
||||
|
||||
async updateStatus(
|
||||
id: string,
|
||||
status: TrainScheduleStatus,
|
||||
|
||||
Reference in New Issue
Block a user