Merge pull request #93 from Tria-plc/freight_feature/booking_flow

dynamic contract templates and companyId on bookings
This commit is contained in:
marshal
2026-06-04 16:58:50 +03:00
committed by GitHub
27 changed files with 725 additions and 181 deletions

View File

@@ -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),

View File

@@ -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;

View File

@@ -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 };