mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Show BomItem reference field in BOM table
This commit is contained in:
parent
4648db6ce5
commit
808d332bda
@ -136,6 +136,7 @@ class EditBomItemForm(HelperForm):
|
||||
'part',
|
||||
'sub_part',
|
||||
'quantity',
|
||||
'reference',
|
||||
'overage',
|
||||
'note'
|
||||
]
|
||||
|
@ -166,6 +166,7 @@ class BomItemSerializer(InvenTreeModelSerializer):
|
||||
'sub_part',
|
||||
'sub_part_detail',
|
||||
'quantity',
|
||||
'reference',
|
||||
'price_range',
|
||||
'overage',
|
||||
'note',
|
||||
|
@ -63,11 +63,18 @@ function loadBomTable(table, options) {
|
||||
}
|
||||
);
|
||||
|
||||
// Part reference
|
||||
cols.push({
|
||||
field: 'reference',
|
||||
title: 'Reference',
|
||||
searchable: true,
|
||||
sortable: true,
|
||||
});
|
||||
|
||||
// Part quantity
|
||||
cols.push(
|
||||
{
|
||||
cols.push({
|
||||
field: 'quantity',
|
||||
title: 'Required',
|
||||
title: 'Quantity',
|
||||
searchable: false,
|
||||
sortable: true,
|
||||
formatter: function(value, row, index, field) {
|
||||
@ -88,8 +95,7 @@ function loadBomTable(table, options) {
|
||||
|
||||
return quantity;
|
||||
},
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
if (!options.editable) {
|
||||
cols.push(
|
||||
|
Loading…
Reference in New Issue
Block a user