mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-21 23:45:16 +00:00
[UI] Add "on_order" column to SupplierPartTable (#13128)
* [UI] Add "on_order" column to SupplierPartTable * Add 'on_order' filter for SupplierPart * Update table * Fix PR ref
This commit is contained in:
1 parent
f9a73273f6
commit
c5253560e8
3 files changed
+28
-2
No files matched your search
@@ -143,7 +143,15 @@ export function SupplierPartTable({
|
||||
}),
|
||||
DecimalColumn({
|
||||
accessor: 'in_stock',
|
||||
sortable: true
|
||||
sortable: true,
|
||||
filter: ['has_stock']
|
||||
}),
|
||||
DecimalColumn({
|
||||
accessor: 'on_order',
|
||||
title: t`On Order`,
|
||||
sortable: true,
|
||||
defaultVisible: false,
|
||||
filter: ['on_order']
|
||||
}),
|
||||
{
|
||||
accessor: 'packaging',
|
||||
@@ -273,6 +281,11 @@ export function SupplierPartTable({
|
||||
name: 'has_stock',
|
||||
label: t`In Stock`,
|
||||
description: t`Show supplier parts with stock`
|
||||
},
|
||||
{
|
||||
name: 'on_order',
|
||||
label: t`On Order`,
|
||||
description: t`Show supplier parts on order`
|
||||
}
|
||||
];
|
||||
}, []);
|
||||
|
||||
Reference in new issue
Block a user