From a8388b09991953192c658c10322518f86ae61cd9 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 6 Oct 2021 20:35:51 +1100 Subject: [PATCH] JS linting --- InvenTree/templates/js/translated/order.js | 28 ---------------------- 1 file changed, 28 deletions(-) diff --git a/InvenTree/templates/js/translated/order.js b/InvenTree/templates/js/translated/order.js index a595a61d7c..f4b1d0b997 100644 --- a/InvenTree/templates/js/translated/order.js +++ b/InvenTree/templates/js/translated/order.js @@ -1153,11 +1153,6 @@ function showAllocationSubTable(index, row, element, options) { // Is the parent SalesOrder pending? var pending = options.status == {{ SalesOrderStatus.PENDING }}; - // Function to reload the allocation table - function reloadTable() { - table.bootstrapTable('refresh'); - } - function setupCallbacks() { // Add callbacks for 'edit' buttons table.find('.button-allocation-edit').click(function() { @@ -1502,29 +1497,6 @@ function loadSalesOrderLineItemTable(table, options={}) { }, ); - // TODO: Re-introduce the "PO" field, once it is fixed - /* - { - field: 'po', - title: '{% trans "PO" %}', - formatter: function(value, row, index, field) { - var po_name = ""; - if (row.allocated) { - row.allocations.forEach(function(allocation) { - if (allocation.po != po_name) { - if (po_name) { - po_name = "-"; - } else { - po_name = allocation.po - } - } - }) - } - return `
` + po_name + `
`; - } - }, - */ - if (pending) { columns.push({ field: 'buttons',