mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
feat(bookings): two-level clearance charges (port + misc) billed to customer with invoices
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user