diff --git a/InvenTree/InvenTree/static/script/inventree/order.js b/InvenTree/InvenTree/static/script/inventree/order.js index 818596f7c9..04bbee513f 100644 --- a/InvenTree/InvenTree/static/script/inventree/order.js +++ b/InvenTree/InvenTree/static/script/inventree/order.js @@ -98,4 +98,39 @@ function removePurchaseOrderLineItem(e) { launchModalForm(url, { reload: true, }); +} + +function orderStatusLabel(code, label) { + /* Render a purchase-order status label. */ + + var html = ""; + html += label; + html += ""; + + console.log(html); + + return html; } \ No newline at end of file diff --git a/InvenTree/order/templates/order/purchase_orders.html b/InvenTree/order/templates/order/purchase_orders.html index a85398c0ad..1fc15d623c 100644 --- a/InvenTree/order/templates/order/purchase_orders.html +++ b/InvenTree/order/templates/order/purchase_orders.html @@ -18,8 +18,6 @@ InvenTree | Purchase Orders -{% include "order/po_table.html" with toolbar='#table-buttons' %} -