From 70a917510e83d8da5daa78604788e4d90d98b96c Mon Sep 17 00:00:00 2001 From: Marshal Date: Tue, 7 Jul 2026 21:58:06 +0000 Subject: [PATCH] feat: add isGeneral flag to identify general contracts in NewContractPage --- .../portal/src/pages/contracts/NewContractPage.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/edr-freight-web/portal/src/pages/contracts/NewContractPage.tsx b/apps/edr-freight-web/portal/src/pages/contracts/NewContractPage.tsx index 24991d94a..c443bf3b9 100644 --- a/apps/edr-freight-web/portal/src/pages/contracts/NewContractPage.tsx +++ b/apps/edr-freight-web/portal/src/pages/contracts/NewContractPage.tsx @@ -505,6 +505,7 @@ export default function NewContractPage({ )!; const isContainer = data.cargoType === "container"; + const isGeneral = data.contractKind === "general_contract"; // Cargo scope rows — no quantities (doc §5.4). Container: one row per enabled // size; bulk: a single commodity row. Both GENERAL and ONE_TIME are uncapped