taxtank-core 0.33.27 → 0.33.28
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,7 @@ export class TransactionBaseFilterForm extends FormGroup {
|
|
8
8
|
properties: new FormControl({ value: properties, disabled: true }),
|
9
9
|
dateFrom: new FormControl(),
|
10
10
|
dateTo: new FormControl(),
|
11
|
+
chartAccounts: new FormControl(),
|
11
12
|
});
|
12
13
|
this.listenEvents();
|
13
14
|
}
|
@@ -37,7 +38,11 @@ export class TransactionBaseFilterForm extends FormGroup {
|
|
37
38
|
if (value.properties) {
|
38
39
|
collection = collection.filterBy('property.id', value.properties.map(property => property.id));
|
39
40
|
}
|
41
|
+
if (value.chartAccounts) {
|
42
|
+
const searchQuery = value.chartAccounts.toLowerCase().trim();
|
43
|
+
collection = collection.filter(transaction => transaction.chartAccounts.name.toLowerCase().includes(searchQuery));
|
44
|
+
}
|
40
45
|
return collection;
|
41
46
|
}
|
42
47
|
}
|
43
|
-
//# sourceMappingURL=data:application/json;base64,
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tYmFzZS1maWx0ZXIuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi1iYXNlLWZpbHRlci5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFHeEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBYzdELE1BQU0sT0FBTyx5QkFBMEIsU0FBUSxTQUF5QztJQUN0RixZQUFZLFFBQXVCLEVBQUUsUUFBdUIsRUFBRSxVQUF1QjtRQUNuRix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2xsZWN0aW9uID0gY29sbGVjdGlvbi5maWx0ZXJCeSgndGFua1R5cGUnLCB2YWx1ZS50YW5rVHlwZSk7XG4gICAgfVxuICAgIGlmICh2YWx1ZS5idXNpbmVzcykge1xuICAgICAgY29sbGVjdGlvbiA9IGNvbGxlY3Rpb24uZmlsdGVyQnkoJ2J1c2luZXNzLmlkJywgdmFsdWUuYnVzaW5lc3MuaWQpO1xuICAgIH1cbiAgICBpZiAodmFsdWUucHJvcGVydGllcykge1xuICAgICAgY29sbGVjdGlvbiA9IGNvbGxlY3Rpb24uZmlsdGVyQnkoJ3Byb3BlcnR5LmlkJywgdmFsdWUucHJvcGVydGllcy5tYXAocHJvcGVydHkgPT4gcHJvcGVydHkuaWQpKTtcbiAgICB9XG4gICAgaWYgKHZhbHVlLmNoYXJ0QWNjb3VudHMpIHtcbiAgICAgIGNvbnN0IHNlYXJjaFF1ZXJ5OiBzdHJpbmcgPSB2YWx1ZS5jaGFydEFjY291bnRzLnRvTG93ZXJDYXNlKCkudHJpbSgpO1xuICAgICAgY29sbGVjdGlvbiA9IGNvbGxlY3Rpb24uZmlsdGVyKHRyYW5zYWN0aW9uID0+IHRyYW5zYWN0aW9uLmNoYXJ0QWNjb3VudHMubmFtZS50b0xvd2VyQ2FzZSgpLmluY2x1ZGVzKHNlYXJjaFF1ZXJ5KSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIGNvbGxlY3Rpb247XG4gIH1cbn1cbiJdfQ==
|
@@ -23908,6 +23908,7 @@ class TransactionBaseFilterForm extends FormGroup {
|
|
23908
23908
|
properties: new FormControl({ value: properties, disabled: true }),
|
23909
23909
|
dateFrom: new FormControl(),
|
23910
23910
|
dateTo: new FormControl(),
|
23911
|
+
chartAccounts: new FormControl(),
|
23911
23912
|
});
|
23912
23913
|
this.listenEvents();
|
23913
23914
|
}
|
@@ -23937,6 +23938,10 @@ class TransactionBaseFilterForm extends FormGroup {
|
|
23937
23938
|
if (value.properties) {
|
23938
23939
|
collection = collection.filterBy('property.id', value.properties.map(property => property.id));
|
23939
23940
|
}
|
23941
|
+
if (value.chartAccounts) {
|
23942
|
+
const searchQuery = value.chartAccounts.toLowerCase().trim();
|
23943
|
+
collection = collection.filter(transaction => transaction.chartAccounts.name.toLowerCase().includes(searchQuery));
|
23944
|
+
}
|
23940
23945
|
return collection;
|
23941
23946
|
}
|
23942
23947
|
}
|