feat(bookings): add estimated shipment date handling and validation for binding shipment day

This commit is contained in:
Marshal
2026-06-25 00:28:54 +00:00
parent 6ab9699c94
commit 08977fcd19
11 changed files with 452 additions and 27 deletions

View File

@@ -646,8 +646,10 @@ export interface CreateBookingDto {
companyId?: string | undefined;
trainId?: string | undefined;
trainScheduleId?: string | undefined;
/** Optional for general contracts — they pick the date per order, not at creation. */
/** Binding shipment day — set at the operation-request step, not at creation. */
scheduledDate?: string | undefined;
/** Non-binding shipment-date estimate captured in the booking wizard. */
estimatedShipmentDate?: string | undefined;
/** Defaults to ONE_TIME. GENERAL_CONTRACT creates an umbrella contract. */
bookingType?: BookingType | undefined;
contractType: string;