js linting

This commit is contained in:
Oliver 2021-12-04 09:33:42 +11:00
parent c93009876d
commit 3abad2f73d

View File

@ -22,6 +22,7 @@
allocateStockToSalesOrder, allocateStockToSalesOrder,
completeShipment, completeShipment,
createSalesOrder, createSalesOrder,
createSalesOrderShipment,
editPurchaseOrderLineItem, editPurchaseOrderLineItem,
exportOrder, exportOrder,
loadPurchaseOrderLineItemTable, loadPurchaseOrderLineItemTable,
@ -1532,10 +1533,6 @@ function allocateStockToSalesOrder(order_id, line_items, options={}) {
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 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; var remaining = 0;
table_entries += renderLineItemRow(line_item, remaining); table_entries += renderLineItemRow(line_item, remaining);
@ -1879,8 +1876,6 @@ function showAllocationSubTable(index, row, element, options) {
var table = $(`#allocation-table-${row.pk}`); var table = $(`#allocation-table-${row.pk}`);
var shipped = options.shipped;
function setupCallbacks() { function setupCallbacks() {
// Add callbacks for 'edit' buttons // Add callbacks for 'edit' buttons
table.find('.button-allocation-edit').click(function() { table.find('.button-allocation-edit').click(function() {