mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
More linting
This commit is contained in:
parent
20788bb559
commit
387680fbcd
@ -522,9 +522,9 @@ function loadPurchaseOrderLineItemTable(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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -548,12 +548,12 @@ function loadPurchaseOrderLineItemTable(table, options={}) {
|
|||||||
},
|
},
|
||||||
footerFormatter: function(data) {
|
footerFormatter: function(data) {
|
||||||
var total = data.map(function(row) {
|
var total = data.map(function(row) {
|
||||||
return +row['purchase_price']*row['quantity'];
|
return +row['purchase_price']*row['quantity'];
|
||||||
}).reduce(function(sum, i) {
|
}).reduce(function(sum, i) {
|
||||||
return sum + i;
|
return sum + i;
|
||||||
}, 0);
|
}, 0);
|
||||||
|
|
||||||
var currency = (data.slice(-1)[0] && data.slice(-1)[0].purchase_price_currency) || 'USD';
|
var currency = (data.slice(-1)[0] && data.slice(-1)[0].purchase_price_currency) || 'USD';
|
||||||
|
|
||||||
var formatter = new Intl.NumberFormat(
|
var formatter = new Intl.NumberFormat(
|
||||||
'en-US',
|
'en-US',
|
||||||
|
Loading…
Reference in New Issue
Block a user