enhance contract clearance details with service type and customs information

This commit is contained in:
Marshal
2026-06-28 21:34:06 +00:00
parent 006b4226e8
commit f45d260c53
4 changed files with 83 additions and 13 deletions

View File

@@ -110,11 +110,12 @@ export function ContractClearanceReviewSection({
(clearance?.documents ?? []).filter((d) => d.uploadedBy === "customer"),
[clearance],
);
// GL output documents — anything not uploaded by the customer. The backend
// tags these `uploadedBy: 'gl'`; matching on "not customer" keeps it robust if
// that ever splits into gl_et / gl_dj.
const glDocs = useMemo(
() =>
(clearance?.documents ?? []).filter(
(d) => d.uploadedBy === "gl_et" || d.uploadedBy === "gl_dj",
),
(clearance?.documents ?? []).filter((d) => d.uploadedBy !== "customer"),
[clearance],
);