mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 21:08:12 +00:00
Merge pull request #93 from Tria-plc/freight_feature/booking_flow
dynamic contract templates and companyId on bookings
This commit is contained in:
@@ -18,7 +18,8 @@ export function toBookingListRow(booking: BookingDetail): BookingListRow {
|
||||
return {
|
||||
id: booking.id,
|
||||
reference: booking.reference,
|
||||
customerLabel: labelFromRef(booking.customer, booking.customerId),
|
||||
customerLabel: labelFromRef(booking.company, booking.companyId),
|
||||
// customerLabel: labelFromRef(booking.customer, booking.customerId),
|
||||
status: booking.status,
|
||||
scheduledDate: booking.scheduledDate,
|
||||
totalAmount: Number(booking.totalAmount),
|
||||
|
||||
@@ -7,7 +7,8 @@ const B = URL_CONSTANTS.BOOKINGS;
|
||||
|
||||
export interface BookingListFilter {
|
||||
status?: string;
|
||||
customerId?: string;
|
||||
// customerId?: string;
|
||||
companyId?: string;
|
||||
freightType?: string;
|
||||
tradeDirection?: string;
|
||||
paymentCurrency?: string;
|
||||
|
||||
@@ -70,7 +70,8 @@ export interface BookingFile {
|
||||
export interface BookingDetail {
|
||||
id: string;
|
||||
reference: string;
|
||||
customerId: string;
|
||||
// customerId: string;
|
||||
companyId: string;
|
||||
status: BookingStatus;
|
||||
scheduledDate: string;
|
||||
totalAmount: number;
|
||||
@@ -91,7 +92,8 @@ export interface BookingDetail {
|
||||
latestChangeRequestNote?: string | null;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
customer?: BookingNamedRef & { companyName?: string };
|
||||
// customer?: BookingNamedRef & { companyName?: string };
|
||||
company?: BookingNamedRef;
|
||||
originYard?: BookingNamedRef;
|
||||
destinationYard?: BookingNamedRef;
|
||||
serviceType?: BookingNamedRef & { code?: string };
|
||||
|
||||
Reference in New Issue
Block a user