Lint: linting!
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export function appendTag (row, keywords, field='Libellé') {
|
||||
export function appendTag (row, keywords, field = 'Libellé') {
|
||||
// Append row.tag
|
||||
// if row.libellé contains one of words and not invert it gets tagged
|
||||
// if row.libellé contains no words and invert it gets tagged
|
||||
@@ -25,7 +25,7 @@ function strContains (string, words, invert) {
|
||||
}
|
||||
}
|
||||
|
||||
export function total (row, field='Montant') {
|
||||
export function total (row, field = 'Montant') {
|
||||
var sum = row.map(x => parseFloat(x[field]))
|
||||
.reduce((sum, x) => sum + x, 0)
|
||||
return Math.round(sum)
|
||||
|
||||
Reference in New Issue
Block a user