mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-04 14:28:48 +00:00
JS linting
This commit is contained in:
parent
535d45bce4
commit
a8388b0999
@ -1153,11 +1153,6 @@ function showAllocationSubTable(index, row, element, options) {
|
|||||||
// Is the parent SalesOrder pending?
|
// Is the parent SalesOrder pending?
|
||||||
var pending = options.status == {{ SalesOrderStatus.PENDING }};
|
var pending = options.status == {{ SalesOrderStatus.PENDING }};
|
||||||
|
|
||||||
// Function to reload the allocation table
|
|
||||||
function reloadTable() {
|
|
||||||
table.bootstrapTable('refresh');
|
|
||||||
}
|
|
||||||
|
|
||||||
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() {
|
||||||
@ -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) {
|
if (pending) {
|
||||||
columns.push({
|
columns.push({
|
||||||
field: 'buttons',
|
field: 'buttons',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user