2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-11-14 03:46:44 +00:00

[UI] Fix table column ordering (#9945)

* Fix table column ordering

- Ensure that table columns are always rendererd in the correct order

* Cleanup code

* Adjust col order
This commit is contained in:
Oliver
2025-07-03 13:32:53 +10:00
committed by GitHub
parent ededeeee00
commit 305b253417
2 changed files with 18 additions and 17 deletions

View File

@@ -112,12 +112,6 @@ export default function BuildAllocatedStockTable({
sortable: true,
switchable: true
},
{
accessor: 'quantity',
title: t`Allocated Quantity`,
sortable: true,
switchable: false
},
{
accessor: 'serial',
title: t`Serial Number`,
@@ -137,6 +131,12 @@ export default function BuildAllocatedStockTable({
title: t`Available Quantity`,
render: (record: any) => record?.stock_item_detail?.quantity
},
{
accessor: 'quantity',
title: t`Allocated Quantity`,
sortable: true,
switchable: false
},
LocationColumn({
accessor: 'location_detail',
switchable: true,