2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-26 05:15:55 +00:00

added in internal prices in price calculations

This commit is contained in:
2021-06-07 05:25:13 +02:00
parent 0e8a97acb0
commit 4f3bfe569a
2 changed files with 11 additions and 5 deletions

View File

@@ -2105,7 +2105,8 @@ class PartPricing(AjaxView):
# BOM pricing information
if part.bom_count > 0:
bom_price = part.get_bom_price_range(quantity)
use_internal = InvenTreeSetting.get_setting('PART_BOM_USE_INTERNAL_PRICE', False)
bom_price = part.get_bom_price_range(quantity, internal=use_internal)
if bom_price is not None:
min_bom_price, max_bom_price = bom_price