mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
Merge pull request #364 from SchrodingersGat/bom-footer
Display total part quantity in BOM footer
This commit is contained in:
commit
632be8f04f
@ -121,7 +121,16 @@ function loadBomTable(table, options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return text;
|
return text;
|
||||||
}
|
},
|
||||||
|
footerFormatter: function(data) {
|
||||||
|
var quantity = 0;
|
||||||
|
|
||||||
|
data.forEach(function(item) {
|
||||||
|
quantity += item.quantity;
|
||||||
|
});
|
||||||
|
|
||||||
|
return quantity;
|
||||||
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -208,6 +217,7 @@ function loadBomTable(table, options) {
|
|||||||
search: true,
|
search: true,
|
||||||
formatNoMatches: function() { return "No BOM items found"; },
|
formatNoMatches: function() { return "No BOM items found"; },
|
||||||
clickToSelect: true,
|
clickToSelect: true,
|
||||||
|
showFooter: true,
|
||||||
queryParams: function(p) {
|
queryParams: function(p) {
|
||||||
return params;
|
return params;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user