mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +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,
|
sortable: true,
|
||||||
render: (record: any) => (record.structural ? 'Y' : 'N')
|
render: (record: any) => (record.structural ? 'Y' : 'N')
|
||||||
// TODO: custom 'true / false' label,
|
// 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]);
|
}, [params]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user