2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

Separate display of open and closed purchase orders (per part)

This commit is contained in:
Oliver Walters
2019-06-10 22:31:19 +10:00
parent 228bf4e1da
commit b8bcc5ce0c
2 changed files with 18 additions and 3 deletions

View File

@@ -7,12 +7,17 @@
<div class='row'>
<div class='col-sm-6'>
<h4>Part Orders</h4>
<h4>Open Part Orders</h4>
</div>
<div class='col-sm-6'>
</div>
</div>
{% include "order/po_table.html" with orders=part.purchase_orders %}
{% include "order/po_table.html" with orders=part.open_purchase_orders %}
{% if part.closed_purchase_orders|length > 0 %}
<h4>Closed Orders</h4>
{% include "order/po_table.html" with orders=part.closed_purchase_orders %}
{% endif %}
{% endblock %}