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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tYmFzZS1maWx0ZXIuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi1iYXNlLWZpbHRlci5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFHeEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBYTdELE1BQU0sT0FBTyx5QkFBMEIsU0FBUSxTQUF5QztJQUN0RixZQUFZLFFBQXVCLEVBQUUsUUFBdUIsRUFBRSxVQUF1QjtRQUNuRixLQUFLLENBQUM7WUFDSixRQUFRLEVBQUUsSUFBSSxXQUFXLENBQUMsUUFBUSxDQUFDO1lBQ25DLFFBQVEsRUFBRSxJQUFJLFdBQV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0QWNjb3VudHMubmFtZS50b0xvd2VyQ2FzZSgpLmluY2x1ZGVzKHNlYXJjaFF1ZXJ5KSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIGNvbGxlY3Rpb247XG4gIH1cbn1cbiJdfQ==
@@ -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
  }