Add new "location_type" column to stock location table (#5688)

Ref: https://github.com/inventree/InvenTree/pull/5588
This commit is contained in:
Oliver 2023-10-12 01:06:19 +11:00 committed by GitHub
parent 0925fbbad2
commit 0c519c6b98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]);