From 0c519c6b985717b7890dd57f7a66fcdefaed4e77 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 12 Oct 2023 01:06:19 +1100 Subject: [PATCH] Add new "location_type" column to stock location table (#5688) Ref: https://github.com/inventree/InvenTree/pull/5588 --- .../src/components/tables/stock/StockLocationTable.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/frontend/src/components/tables/stock/StockLocationTable.tsx b/src/frontend/src/components/tables/stock/StockLocationTable.tsx index 35eba31951..3b91450695 100644 --- a/src/frontend/src/components/tables/stock/StockLocationTable.tsx +++ b/src/frontend/src/components/tables/stock/StockLocationTable.tsx @@ -54,6 +54,13 @@ export function StockLocationTable({ params = {} }: { params?: any }) { sortable: true, render: (record: any) => (record.structural ? 'Y' : 'N') // TODO: custom 'true / false' label, + }, + { + accessor: 'location_type', + title: t`Location Type`, + switchable: true, + sortable: false, + render: (record: any) => record.location_type_detail?.name } ]; }, [params]);