This commit is contained in:
natib21
2026-07-04 03:47:36 +00:00
parent 7706de82d4
commit 9d3efe7f15
19 changed files with 304 additions and 220 deletions

View File

@@ -175,11 +175,6 @@ export const bookingsService = {
},
// ── Document clearance (GL workflow) ──
getClearance: async (id: string): Promise<Freight.ClearanceView> => {
const response = await client.get(`/bookings/${id}/clearance`);
return unwrap(response.data) as Freight.ClearanceView;
},
reviewClearanceDocument: (
id: string,
payload: { fileKey: string; status: "APPROVED" | "QUERIED"; note?: string },

View File

@@ -35,6 +35,9 @@ export interface Vehicle {
powerPlateNo?: string | null;
trailerPlateNo?: string | null;
locationId?: string | null;
/** Odometer-derived distances (API sends numeric strings; coerce with Number). */
estimatedDistanceKm?: number | null;
actualDistanceKm?: number | null;
createdAt: string;
updatedAt: string;
}