mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 03:56:43 +00:00
Display list of purchase orders against a particular supplier par
This commit is contained in:
parent
67248ec4dd
commit
04abe2b3d1
@ -101,7 +101,10 @@ InvenTree | {{ company.name }} - Parts
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<hr>
|
||||||
|
|
||||||
|
<h4>Purchase Orders</h4>
|
||||||
|
{% include "order/po_table.html" with orders=part.purchase_orders %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@ -128,6 +128,12 @@ class SupplierPartDetail(DetailView):
|
|||||||
context_object_name = 'part'
|
context_object_name = 'part'
|
||||||
queryset = SupplierPart.objects.all()
|
queryset = SupplierPart.objects.all()
|
||||||
|
|
||||||
|
def get_context_data(self, **kwargs):
|
||||||
|
ctx = super().get_context_data(**kwargs)
|
||||||
|
ctx['OrderStatus'] = OrderStatus
|
||||||
|
|
||||||
|
return ctx
|
||||||
|
|
||||||
|
|
||||||
class SupplierPartEdit(AjaxUpdateView):
|
class SupplierPartEdit(AjaxUpdateView):
|
||||||
""" Update view for editing SupplierPart """
|
""" Update view for editing SupplierPart """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user