Ensure BOM pricing table is loaded

This commit is contained in:
Oliver 2021-07-19 14:40:02 +10:00
parent bbada3e873
commit 40c203c123

View File

@ -370,6 +370,16 @@
sub_part_detail: true,
});
// Load the BOM table data in the pricing view
loadBomTable($("#bom-pricing-table"), {
editable: {{ editing_enabled }},
bom_url: "{% url 'api-bom-list' %}",
part_url: "{% url 'api-part-list' %}",
parent_id: {{ part.id }} ,
sub_part_detail: true,
});
linkButtonsToSelection($("#bom-table"),
[
"#bom-item-delete",