mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-20 08:30:06 +00:00
Fix account type filter
This commit is contained in:
@@ -196,8 +196,6 @@ let transactions = function () {
|
|||||||
onChange: changeSourceAccount,
|
onChange: changeSourceAccount,
|
||||||
onSelectItem: selectSourceAccount
|
onSelectItem: selectSourceAccount
|
||||||
});
|
});
|
||||||
console.log('ok');
|
|
||||||
console.log(this.entries[0].source_account.alpine_name);
|
|
||||||
addAutocomplete({
|
addAutocomplete({
|
||||||
selector: 'input.ac-dest',
|
selector: 'input.ac-dest',
|
||||||
serverUrl: urls.account,
|
serverUrl: urls.account,
|
||||||
@@ -275,8 +273,9 @@ let transactions = function () {
|
|||||||
for (let i in this.entries) {
|
for (let i in this.entries) {
|
||||||
if (this.entries.hasOwnProperty(i)) {
|
if (this.entries.hasOwnProperty(i)) {
|
||||||
this.groupProperties.totalAmount = this.groupProperties.totalAmount + parseFloat(this.entries[i].amount);
|
this.groupProperties.totalAmount = this.groupProperties.totalAmount + parseFloat(this.entries[i].amount);
|
||||||
|
// TODO this does not include all possible types.
|
||||||
this.filters.source.push(this.entries[i].source_account.type);
|
this.filters.source.push(this.entries[i].source_account.type);
|
||||||
this.filters.destination.push(this.entries[i].source_account.type);
|
this.filters.destination.push(this.entries[i].destination_account.type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(this.filters);
|
console.log(this.filters);
|
||||||
|
|||||||
Reference in New Issue
Block a user