mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 12:30:58 +00:00
export flow and fix intercity issue
This commit is contained in:
@@ -866,6 +866,7 @@ export class ContractBookingService {
|
||||
const completed = await this.bookingTransitionService.requestOperation(
|
||||
booking.id,
|
||||
dto.scheduledDate,
|
||||
dto.trainScheduleId ?? null,
|
||||
);
|
||||
return { booking: completed, warnings };
|
||||
}
|
||||
|
||||
@@ -175,6 +175,16 @@ export class CreateBookingUnderContractDto {
|
||||
@IsDateString()
|
||||
scheduledDate?: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description:
|
||||
'EXPORT rail only: the specific train (schedule id) picked from ' +
|
||||
'GET /bookings/:id/export-trains for the shipment day. The reserve path ' +
|
||||
'locks onto this train; 409 when it no longer fits. Ignored otherwise.',
|
||||
})
|
||||
@IsOptional()
|
||||
@IsUUID()
|
||||
trainScheduleId?: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
enum: SHIPMENT_EQUIPMENT_RETURNS,
|
||||
description:
|
||||
|
||||
Reference in New Issue
Block a user