mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add some context data to build views
This commit is contained in:
parent
2b74a0ed2c
commit
a37a2120fa
@ -275,6 +275,7 @@ class BuildDetail(DetailView):
|
||||
build = self.get_object()
|
||||
|
||||
ctx['bom_price'] = build.part.get_price_info(build.quantity, buy=False)
|
||||
ctx['BuildStatus'] = BuildStatus
|
||||
|
||||
return ctx
|
||||
|
||||
@ -296,6 +297,7 @@ class BuildAllocate(DetailView):
|
||||
|
||||
context['part'] = part
|
||||
context['bom_items'] = bom_items
|
||||
context['BuildStatus'] = BuildStatus
|
||||
|
||||
context['bom_price'] = build.part.get_price_info(build.quantity, buy=False)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user