feat(bookings): two-level clearance charges (port + misc) billed to customer with invoices

This commit is contained in:
Marshal
2026-08-20 05:48:16 +00:00
parent c138da6137
commit c38fcff00d
19 changed files with 663 additions and 16 deletions

View File

@@ -807,6 +807,21 @@ export interface PricingBreakdown {
export type DocumentReviewStatus = "PENDING" | "APPROVED" | "QUERIED";
// ── Clearance history (per-booking action trail, History tab) ───────────────
/** One recorded clearance action — review, workflow step, or charge. */
export interface ClearanceHistoryEvent {
id: string;
/** Stable machine code, e.g. DOC_APPROVED, DECLARATION_UPLOADED. */
action: string;
/** Human sentence, frozen at write time. */
label: string;
actorType: "STAFF" | "CUSTOMER" | "SYSTEM";
actorName: string | null;
metadata: Record<string, unknown> | null;
at: string;
}
// ── Clearance charges (post-finalization customer billing) ──────────────────
export type ClearanceChargeType = "PORT_CHARGES" | "MISCELLANEOUS";