2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

Filter purchaseorder API by supplier part

This commit is contained in:
Oliver Walters
2020-02-12 12:44:52 +11:00
parent 33d21594da
commit 7dcc94b106
3 changed files with 22 additions and 3 deletions

View File

@ -10,10 +10,22 @@
<h4>{% trans "Supplier Part Orders" %}</h4>
{% include "order/po_table.html" with orders=part.purchase_orders %}
<div id='button-bar'>
<div class='btn-group'>
<button class='btn btn-primary' type='button' id='part-order2' title='Order part'>Order Part</button>
</div>
</div>
<table class='table table-striped table-condensed po-table' id='purchase-order-table' data-toolbar='#button-bar'>
</table>
{% endblock %}
{% block js_ready %}
{{ block.super }}
loadPurchaseOrderTable($("#purchase-order-table"), {
url: "{% url 'api-po-list' %}?supplier_part={{ part.id }}",
});
{% endblock %}