mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-09 07:08:18 +00:00
export flow and fix intercity issue
This commit is contained in:
@@ -1046,6 +1046,13 @@ export class BookingTransitionService {
|
||||
async exportTrainsForBooking(
|
||||
bookingId: string,
|
||||
scheduledDate: string,
|
||||
overrides?: {
|
||||
containerTypeIds?: string[];
|
||||
containerSizes?: string[];
|
||||
cargoTypeId?: string;
|
||||
cargoTypeCode?: string;
|
||||
wagons?: number;
|
||||
},
|
||||
): Promise<ExportTrainOption[]> {
|
||||
const booking = await this.bookingsService.findById(bookingId);
|
||||
const date = new Date(scheduledDate);
|
||||
@@ -1064,6 +1071,7 @@ export class BookingTransitionService {
|
||||
return this.bookingBatchService.exportTrainOptionsForDay(
|
||||
scheduledBooking,
|
||||
eatDay(date),
|
||||
overrides,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user