mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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:
parent
c74368f805
commit
a566ac67a7
@ -1107,6 +1107,11 @@ function loadBomTable(table, options={}) {
|
||||
|
||||
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
|
||||
if (row.pricing_min == null && row.pricing_max == null) {
|
||||
complete_pricing = false;
|
||||
|
Loading…
Reference in New Issue
Block a user