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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;