Feat(config): Autre -> virements
This commit is contained in:
parent
97cec37bda
commit
5fda7ea826
@ -14,8 +14,8 @@ postes:
|
|||||||
words:
|
words:
|
||||||
- PAIEMENT
|
- PAIEMENT
|
||||||
|
|
||||||
other:
|
virements:
|
||||||
name: Autre
|
name: Virements
|
||||||
variant: info
|
variant: info
|
||||||
icon: directions
|
icon: directions
|
||||||
invert: true
|
invert: true
|
||||||
|
@ -43,16 +43,27 @@ export default {
|
|||||||
return (new Date(x.Date) >= start) & (new Date(x.Date) < end)
|
return (new Date(x.Date) >= start) & (new Date(x.Date) < end)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
tag_filter_rows: (state, getters) => (tags) => {
|
tag_filter_rows: (state, getters) => (tags, invert) => {
|
||||||
if (tags) {
|
if (tags) {
|
||||||
return getters.date_filter_rows.filter(row => {
|
return getters.date_filter_rows.filter(row => {
|
||||||
return tags.every(t => {
|
if (invert) {
|
||||||
return row.tags.map(t => t.name.toLowerCase())
|
return tags.some(t => {
|
||||||
.indexOf(t.toLowerCase()) > -1
|
return row.tags.map(t => t.name.toLowerCase())
|
||||||
})
|
.indexOf(t.toLowerCase()) < 0
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
return tags.every(t => {
|
||||||
|
return row.tags.map(t => t.name.toLowerCase())
|
||||||
|
.indexOf(t.toLowerCase()) > -1
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
return getters.date_filter_rows
|
if (invert) {
|
||||||
|
return []
|
||||||
|
} else {
|
||||||
|
return getters.date_filter_rows
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
libelle_filter_rows: (state, getters) => (words, invert) => {
|
libelle_filter_rows: (state, getters) => (words, invert) => {
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<box @click.native="set_postes_filter([])"></box>
|
<box @click.native="set_postes_filter([])"></box>
|
||||||
<box @click.native="set_postes_filter(['cash'])" postename="cash"></box>
|
<box @click.native="set_postes_filter(['cash'])" postename="cash"></box>
|
||||||
<box @click.native="set_postes_filter(['CB'])" postename="CB"></box>
|
<box @click.native="set_postes_filter(['CB'])" postename="CB"></box>
|
||||||
<box @click.native="set_postes_filter(['other'])" postename="other"></box>
|
<box @click.native="set_postes_filter(['virements'])" postename="virements"></box>
|
||||||
</b-card-group>
|
</b-card-group>
|
||||||
|
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
Loading…
Reference in New Issue
Block a user