mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-09 18:37:50 +00:00
Add some context data to build views
This commit is contained in:
1 parent
2b74a0ed2c
commit
a37a2120fa
1 file changed
+2
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user