2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

Refactor order parts for manfuacturer part detail page

This commit is contained in:
Oliver Walters
2022-05-03 17:16:38 +10:00
parent 28f3244574
commit 05b01e4d6c
2 changed files with 23 additions and 10 deletions

View File

@ -639,6 +639,14 @@ function orderParts(parts_list, options={}) {
supplier_part_filters.supplier = options.supplier;
}
if (options.manufacturer) {
supplier_part_filters.manufacturer = options.manufacturer;
}
if (options.manufacturer_part) {
supplier_part_filters.manufacturer_part = options.manufacturer_part;
}
// Construct API filtres for the PurchaseOrder field
var order_filters = {
status: {{ PurchaseOrderStatus.PENDING }},