mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 03:05:42 +00:00
feat: enhance booking management with export train selection and rescheduling functionality
This commit is contained in:
@@ -3246,10 +3246,10 @@ export const api = {
|
||||
),
|
||||
|
||||
proceedToOperation: endpoint<
|
||||
{ id: string; scheduledDate: string },
|
||||
{ id: string; scheduledDate: string; trainScheduleId?: string },
|
||||
BookingDetail
|
||||
>("bookings", "proceedToOperation", ({ id, scheduledDate }) =>
|
||||
bookingsService.proceedToOperation(id, scheduledDate),
|
||||
>("bookings", "proceedToOperation", ({ id, scheduledDate, trainScheduleId }) =>
|
||||
bookingsService.proceedToOperation(id, scheduledDate, trainScheduleId),
|
||||
),
|
||||
|
||||
generateContract: endpoint<{ id: string }, BookingDetail>(
|
||||
|
||||
@@ -355,8 +355,11 @@ export const bookingsService = {
|
||||
* customer path uses the same endpoint from the portal; GL needs it here
|
||||
* because a customs booking is GL's to fix, not the customer's.
|
||||
*/
|
||||
proceedToOperation: (id: string, scheduledDate: string) =>
|
||||
postBooking<BookingDetail>(B.CLEARANCE_PROCEED(id), { scheduledDate }),
|
||||
proceedToOperation: (id: string, scheduledDate: string, trainScheduleId?: string) =>
|
||||
postBooking<BookingDetail>(B.CLEARANCE_PROCEED(id), {
|
||||
scheduledDate,
|
||||
...(trainScheduleId ? { trainScheduleId } : {}),
|
||||
}),
|
||||
|
||||
/**
|
||||
* Operations changes the shipment day (and, for export rail, the train) of a
|
||||
|
||||
Reference in New Issue
Block a user