feat(quality): added location moved to to the table

This commit is contained in:
2025-11-17 17:07:41 -06:00
parent 96c3e4c24a
commit 9572b71592

View File

@@ -30,6 +30,7 @@ type Pallets = {
durationToMove: null;
qualityDurationToInspect: number;
returnDurationToInspect: number;
locationMovesTo: string;
locationDropOff: string;
palletStatus: number;
palletStatusText: string;
@@ -165,6 +166,26 @@ export default function QualityRequest() {
);
},
}),
columnHelper.accessor("locationMovesTo", {
header: ({ column }) => {
return (
<Button
variant="ghost"
onClick={() => column.toggleSorting(column.getIsSorted() === "asc")}
>
<span className="flex flex-row gap-2">Location At Request</span>
{column.getIsSorted() === "asc" ? (
<ArrowUp className="ml-2 h-4 w-4" />
) : (
<ArrowDown className="ml-2 h-4 w-4" />
)}
</Button>
);
},
cell: ({ getValue }) => {
return <span>{getValue() === "" ? "Pending Move" : getValue()}</span>;
},
}),
columnHelper.accessor("locationDropOff", {
header: ({ column }) => {
return (