JS linting

This commit is contained in:
Oliver 2021-10-06 20:35:51 +11:00
parent 535d45bce4
commit a8388b0999

View File

@ -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 `<div>` + po_name + `</div>`;
}
},
*/
if (pending) {
columns.push({
field: 'buttons',