mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 21:16:46 +00:00
Revert "fix for part with no bom"
This reverts commit dd58f8997715bb2e0ac02811fec6e8eb4086c5aa.
This commit is contained in:
parent
44464de2b6
commit
6e77029d7d
@ -846,7 +846,6 @@ class PartPricingView(PartDetail):
|
|||||||
ctx['price_history'] = ret
|
ctx['price_history'] = ret
|
||||||
|
|
||||||
# BOM Information for Pie-Chart
|
# BOM Information for Pie-Chart
|
||||||
if part.has_bom:
|
|
||||||
bom_items = [{'name': str(a.sub_part), 'price': a.sub_part.get_price_range(quantity), 'q': a.quantity} for a in part.bom_items.all()]
|
bom_items = [{'name': str(a.sub_part), 'price': a.sub_part.get_price_range(quantity), 'q': a.quantity} for a in part.bom_items.all()]
|
||||||
if [True for a in bom_items if len(set(a['price'])) == 2]:
|
if [True for a in bom_items if len(set(a['price'])) == 2]:
|
||||||
ctx['bom_parts'] = [{
|
ctx['bom_parts'] = [{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user