2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-10 22:00:56 +00:00

Order parts from "supplier parts" page

- Prevent duplicate parts from loading
This commit is contained in:
Oliver Walters
2022-05-03 16:52:23 +10:00
parent c0163a476f
commit 28f3244574
3 changed files with 41 additions and 35 deletions

View File

@@ -333,14 +333,6 @@
orderParts(
parts,
);
return;
launchModalForm("/order/purchase-order/order-parts/", {
data: {
parts: parts,
},
});
});
{% endif %}
@@ -404,14 +396,16 @@
var parts = [];
selections.forEach(function(item) {
parts.push(item.part);
var part = item.part_detail;
parts.push(part);
});
launchModalForm("/order/purchase-order/order-parts/", {
data: {
parts: parts,
},
});
orderParts(
parts,
{
supplier: {{ company.pk }},
}
);
});
{% endif %}