mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix for display of "outstanding" allocations
This commit is contained in:
parent
9e470d4064
commit
f0595cc052
@ -897,6 +897,14 @@ class Build(MPTTModel):
|
|||||||
for bom_item in self.bom_items:
|
for bom_item in self.bom_items:
|
||||||
part = bom_item.sub_part
|
part = bom_item.sub_part
|
||||||
|
|
||||||
|
# Ignore "trackable" when output is specified
|
||||||
|
if output and not part.trackable:
|
||||||
|
continue
|
||||||
|
|
||||||
|
# Ignore "untrackable" parts when output is not specified
|
||||||
|
if not output and part.trackable:
|
||||||
|
continue
|
||||||
|
|
||||||
if not self.isPartFullyAllocated(part, output):
|
if not self.isPartFullyAllocated(part, output):
|
||||||
unallocated.append(part)
|
unallocated.append(part)
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<div class='panel panel-default'>
|
<div class='panel panel-default'>
|
||||||
<div class='panel panel-heading'>
|
<div class='panel panel-heading'>
|
||||||
<a data-toggle='collapse' href='#collapse-unallocated'>
|
<a data-toggle='collapse' href='#collapse-unallocated'>
|
||||||
{{ unallocated_parts|length }} {% trans "parts have not been fully allocated" %}
|
{{ unallocated_parts|length }} {% trans "tracked parts have not been fully allocated" %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class='panel-collapse collapse' id='collapse-unallocated'>
|
<div class='panel-collapse collapse' id='collapse-unallocated'>
|
||||||
|
Loading…
Reference in New Issue
Block a user