2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

BOM Table - Fix pricing when subassembly is open (#5721)

- Ignore pricing for sub-items
- Fixes https://github.com/inventree/InvenTree/issues/5286
This commit is contained in:
Oliver
2023-10-17 14:12:32 +11:00
committed by GitHub
parent c74368f805
commit a566ac67a7

View File

@ -1107,6 +1107,11 @@ function loadBomTable(table, options={}) {
var row = data[idx]; var row = data[idx];
// Do not include pricing for items which are associated with sub-assemblies
if (row.parentId != parent_id) {
continue;
}
// No pricing data available for this row // No pricing data available for this row
if (row.pricing_min == null && row.pricing_max == null) { if (row.pricing_min == null && row.pricing_max == null) {
complete_pricing = false; complete_pricing = false;