mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add new "location_type" column to stock location table (#5688)
Ref: https://github.com/inventree/InvenTree/pull/5588
This commit is contained in:
parent
0925fbbad2
commit
0c519c6b98
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user