feat(freight-web): polish document clearance, general contracts list and detail UIs

This commit is contained in:
Marshal
2026-06-24 01:32:40 +00:00
parent 3655e50f2e
commit d7688fce21
38 changed files with 1769 additions and 363 deletions

View File

@@ -51,6 +51,8 @@ export interface BookingEvaluationInput {
paymentCurrency: string;
tradeDirection: string;
isHazardous: boolean;
/** Booking-level reefer flag; ORed with per-container reefer. */
isReefer?: boolean;
isGovernment?: boolean;
allowConsolidation?: boolean;
shippingLineId?: string | null;
@@ -195,7 +197,8 @@ export class RuleEngineService {
shippingLineMapped = Boolean(line?.mappedToCode);
}
const hasReefer = input.containers.some((c) => c.isReefer);
const hasReefer =
input.isReefer === true || input.containers.some((c) => c.isReefer);
const hasOverweight = containerWeightResults.some((r) => r.isOverweight);
// Surcharges are now self-describing rates: any LIVE rate whose `trigger`