mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +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];
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user