From 3abad2f73d1b5af857ae19ac4d8a492caeb30468 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 4 Dec 2021 09:33:42 +1100 Subject: [PATCH] js linting --- InvenTree/templates/js/translated/order.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/InvenTree/templates/js/translated/order.js b/InvenTree/templates/js/translated/order.js index 23467bfc88..78065b2998 100644 --- a/InvenTree/templates/js/translated/order.js +++ b/InvenTree/templates/js/translated/order.js @@ -22,6 +22,7 @@ allocateStockToSalesOrder, completeShipment, createSalesOrder, + createSalesOrderShipment, editPurchaseOrderLineItem, exportOrder, loadPurchaseOrderLineItemTable, @@ -1529,13 +1530,9 @@ function allocateStockToSalesOrder(order_id, line_items, options={}) { var table_entries = ''; - for (var idx = 0; idx < line_items.length; idx++ ){ + for (var idx = 0; idx < line_items.length; idx++ ) { var line_item = line_items[idx]; - var todo = "auto-calculate remaining quantity"; - - var todo = "see how it is done for the build order allocation system!"; - var remaining = 0; table_entries += renderLineItemRow(line_item, remaining); @@ -1879,8 +1876,6 @@ function showAllocationSubTable(index, row, element, options) { var table = $(`#allocation-table-${row.pk}`); - var shipped = options.shipped; - function setupCallbacks() { // Add callbacks for 'edit' buttons table.find('.button-allocation-edit').click(function() { @@ -2211,7 +2206,7 @@ function loadSalesOrderLineItemTable(table, options={}) { switchable: false, sortable: true, formatter: function(value, row, index, field) { - return makeProgressBar(row.allocated, row.quantity, { + return makeProgressBar(row.allocated, row.quantity, { id: `order-line-progress-${row.pk}`, }); },