Merge pull request #97 from Tria-plc/freight/feat/booking-pricing

Booking request approval ui
This commit is contained in:
Nathnael Wondisha
2026-06-05 15:02:24 +03:00
committed by GitHub
8 changed files with 452 additions and 246 deletions

View File

@@ -34,10 +34,24 @@ export enum FreightType {
export enum BookingStatus {
Draft = "DRAFT",
Confirmed = "CONFIRMED",
Submitted = "SUBMITTED",
ChangesRequested = "CHANGES_REQUESTED",
PendingApproval = "PENDING_APPROVAL",
ApprovedPendingSignature = "APPROVED_PENDING_SIGNATURE",
Approved = "APPROVED",
ContractReady = "CONTRACT_READY",
SignedCustomer = "SIGNED_CUSTOMER",
FullyExecuted = "FULLY_EXECUTED",
PnrGenerated = "PNR_GENERATED",
PaymentVerificationInProgress = "PAYMENT_VERIFICATION_IN_PROGRESS",
Paid = "PAID",
InTransit = "IN_TRANSIT",
Completed = "COMPLETED",
Delivered = "DELIVERED",
Rejected = "REJECTED",
Cancelled = "CANCELLED",
PendingConsolidation = "PENDING_CONSOLIDATION",
Consolidated = "CONSOLIDATED",
}
export enum ConsignmentStatus {
@@ -158,6 +172,14 @@ export interface IConsignment extends BaseEntity {
destinationStation: string;
}
export interface IYard extends BaseEntity {
code: string;
label: string;
country: string;
isActive: boolean;
displayOrder: number;
}
export interface IBooking extends BaseEntity {
reference: string;
customerId: string;
@@ -177,8 +199,8 @@ export interface IBooking extends BaseEntity {
lastMileDeliveryAddress?: string | null;
equipmentReturn: "WITH_RETURN" | "WITHOUT_RETURN";
originStation: string;
destinationStation: string;
originYard?: IYard | null;
destinationYard?: IYard | null;
cargoTotalWeightVgm: number;
freightType: FreightType;
@@ -208,7 +230,20 @@ export interface IBooking extends BaseEntity {
signedByCeoId?: string | null;
signedByCeoAt?: string | null;
files?: Array<{ id: string; name: string; url: string; mimeType: string }>;
files?: Array<{
id: string;
code: string;
name: string;
url: string;
mimeType: string;
size: number;
resourceId: string;
resource: string;
signedUrl?: string | null;
}>;
latestChangeRequestNote?: string | null;
contractSummary?: string | null;
}
export interface IInvoice extends BaseEntity {