mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
More JS linting
This commit is contained in:
parent
21be5b4a26
commit
e055902f3e
@ -1234,7 +1234,7 @@ function showAllocationSubTable(index, row, element, options) {
|
|||||||
html += makeIconButton('fa-trash-alt icon-red', 'button-allocation-delete', pk, '{% trans "Delete stock allocation" %}');
|
html += makeIconButton('fa-trash-alt icon-red', 'button-allocation-delete', pk, '{% trans "Delete stock allocation" %}');
|
||||||
}
|
}
|
||||||
|
|
||||||
html += "</div>";
|
html += '</div>';
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
},
|
},
|
||||||
@ -1368,7 +1368,7 @@ function loadSalesOrderLineItemTable(table, options={}) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
footerFormatter: function() {
|
footerFormatter: function() {
|
||||||
return '{% trans "Total" %}'
|
return '{% trans "Total" %}';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1383,10 +1383,10 @@ function loadSalesOrderLineItemTable(table, options={}) {
|
|||||||
title: '{% trans "Quantity" %}',
|
title: '{% trans "Quantity" %}',
|
||||||
footerFormatter: function(data) {
|
footerFormatter: function(data) {
|
||||||
return data.map(function(row) {
|
return data.map(function(row) {
|
||||||
return +row['quantity']
|
return +row['quantity'];
|
||||||
}).reduce(function(sum, i) {
|
}).reduce(function(sum, i) {
|
||||||
return sum + i
|
return sum + i;
|
||||||
}, 0)
|
}, 0);
|
||||||
},
|
},
|
||||||
switchable: false,
|
switchable: false,
|
||||||
},
|
},
|
||||||
@ -1410,6 +1410,7 @@ function loadSalesOrderLineItemTable(table, options={}) {
|
|||||||
currency: row.sale_price_currency
|
currency: row.sale_price_currency
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
return formatter.format(total);
|
return formatter.format(total);
|
||||||
},
|
},
|
||||||
footerFormatter: function(data) {
|
footerFormatter: function(data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user