Merge pull request #1440 from Tria-plc/freight/nati-2

feat(bookings): surface cargo declared on the shipment request
This commit is contained in:
Nathnael Wondisha
2026-08-28 14:29:02 +03:00
committed by GitHub
8 changed files with 162 additions and 0 deletions

View File

@@ -251,6 +251,25 @@ export default function BookingRequestsPage() {
? { containersMin: v.v[0], containersMax: v.v[1] }
: { containersMin: v.v[0], containersMax: v.v[0] },
},
{
// Declared on the shipment request, not yet on the booking. Pair it
// with Containers = 0 to find the set awaiting completion.
key: "requestedContainers",
label: "Requested containers",
type: "number",
secondary: true,
operators: ["is", "between"],
toParams: (v) =>
v.op === "between"
? {
requestedContainersMin: v.v[0],
requestedContainersMax: v.v[1],
}
: {
requestedContainersMin: v.v[0],
requestedContainersMax: v.v[0],
},
},
{
key: "serviceTypeId",
label: "Service",