taxtank-core 0.33.27 → 0.33.29
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/lib/collections/collection.mjs +1 -1
- package/esm2022/src/lib/collections/property/property.collection.mjs +3 -3
- package/esm2022/src/lib/forms/transaction/transaction-base-filter.form.mjs +6 -1
- package/esm2022/src/lib/services/http/property/property.service.mjs +7 -1
- package/esm2022/src/lib/services/property/property-calculation/property-calculation.service.mjs +2 -2
- package/fesm2022/taxtank-core.mjs +14 -3
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/property/property.collection.d.ts +1 -1
- package/src/lib/forms/transaction/transaction-base-filter.form.d.ts +1 -0
- package/src/lib/services/http/property/property.service.d.ts +2 -0
@@ -171,4 +171,4 @@ export class Collection {
|
|
171
171
|
return this;
|
172
172
|
}
|
173
173
|
}
|
174
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9jb2xsZWN0aW9ucy9jb2xsZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQy9ELE9BQU8sS0FBSyxNQUFNLGNBQWMsQ0FBQztBQUNqQyxPQUFPLElBQUksTUFBTSxhQUFhLENBQUM7QUFDL0IsT0FBTyxHQUFHLE1BQU0sWUFBWSxDQUFDO0FBRTdCLE9BQU8sRUFBRSxVQUFVLEVBQUUsYUFBYSxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBQ3RELE9BQU8sT0FBTyxNQUFNLGdCQUFnQixDQUFDO0FBRXJDOztHQUVHO0FBQ0gsTUFBTSxPQUFPLFVBQVU7SUFTckIsWUFBWSxRQUFpQixFQUFFO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VlcyBodHRwczovL3N0YWNrb3ZlcmZsb3cuY29tL3F1ZXN0aW9ucy8xMjUxMTA1Ny9mbG9hdC1zdW0td2l0aC1qYXZhc2NyaXB0XHJcbiAgICovXHJcbiAgcmVkdWNlKGNhbGxiYWNrOiAoc3VtOiBudW1iZXIsIGl0ZW06IE1vZGVsKSA9PiBudW1iZXIsIGluaXQgPSAwKTogbnVtYmVyIHtcclxuICAgIHJldHVybiArdGhpcy5pdGVtcy5yZWR1Y2UoY2FsbGJhY2ssIGluaXQpLnRvRml4ZWQoMTApO1xyXG4gIH1cclxuXHJcbiAgc2xpY2UoZnJvbTogbnVtYmVyLCB0bzogbnVtYmVyKTogdGhpcyB7XHJcbiAgICB0aGlzLml0ZW1zID0gdGhpcy5pdGVtcy5zbGljZShmcm9tLCB0byk7XHJcblxyXG4gICAgcmV0dXJuIHRoaXM7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -4,7 +4,7 @@ export class PropertyCollection extends Collection {
|
|
4
4
|
/**
|
5
5
|
* Get new property collection filtered by active status
|
6
6
|
*/
|
7
|
-
|
7
|
+
getActive() {
|
8
8
|
return new PropertyCollection(this.items.filter((property) => property.isActive));
|
9
9
|
}
|
10
10
|
getCreatedProperties() {
|
@@ -70,7 +70,7 @@ export class PropertyCollection extends Collection {
|
|
70
70
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677997/Property+Tank+Dashboard
|
71
71
|
*/
|
72
72
|
sortByBestPerformance(transactions, depreciations) {
|
73
|
-
const activeProperties = this.
|
73
|
+
const activeProperties = this.getActive();
|
74
74
|
// nothing to sort when no active properties
|
75
75
|
if (!activeProperties.length) {
|
76
76
|
return this;
|
@@ -110,4 +110,4 @@ export class PropertyCollection extends Collection {
|
|
110
110
|
return propertiesByCategory;
|
111
111
|
}
|
112
112
|
}
|
113
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHkuY29sbGVjdGlvbi5q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gnaWQnLCBtb3ZlbWVudHNCeUNhdGVnb3J5LmdldChrZXkpLm1hcChtb3ZlbWVudCA9PiBtb3ZlbWVudC5wcm9wZXJ0eS5pZCkpXG4gICAgICApO1xuICAgIH0pO1xuXG4gICAgaWYgKGFsbG93RW1wdHkpIHtcbiAgICAgIGNhdGVnb3JpZXMucmVtb3ZlKEFycmF5LmZyb20ocHJvcGVydGllc0J5Q2F0ZWdvcnkua2V5cygpKSkudG9BcnJheSgpLmZvckVhY2goY2F0ZWdvcnkgPT4ge1xuICAgICAgICBwcm9wZXJ0aWVzQnlDYXRlZ29yeS5zZXQoY2F0ZWdvcnksIG5ldyBQcm9wZXJ0eUNvbGxlY3Rpb24oKSk7XG4gICAgICB9KTtcbiAgICB9XG5cbiAgICByZXR1cm4gcHJvcGVydGllc0J5Q2F0ZWdvcnk7XG4gIH1cbn1cbiJdfQ==
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tYmFzZS1maWx0ZXIuZm9ybS5qcyIsInNvdXJjZ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LmNoYXJ0QWNjb3VudHMubmFtZS50b0xvd2VyQ2FzZSgpLmluY2x1ZGVzKHNlYXJjaFF1ZXJ5KSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIGNvbGxlY3Rpb247XG4gIH1cbn1cbiJdfQ==
|
@@ -22,6 +22,12 @@ export class PropertyService extends RestService {
|
|
22
22
|
this.roles = [UserRolesEnum.PROPERTY_TANK];
|
23
23
|
this.listenEvents();
|
24
24
|
}
|
25
|
+
get() {
|
26
|
+
return super.get().pipe(map((properties) => properties.getActive()));
|
27
|
+
}
|
28
|
+
getAll() {
|
29
|
+
return super.get();
|
30
|
+
}
|
25
31
|
/**
|
26
32
|
* @TODO remove when forecast moved to separated api
|
27
33
|
*/
|
@@ -86,4 +92,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
86
92
|
type: Inject,
|
87
93
|
args: ['environment']
|
88
94
|
}] }] });
|
89
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9zZXJ2aWNlcy9odHRwL3Byb3BlcnR5L3Byb3BlcnR5LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFNbkQsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3JDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQ0wsUUFBUSxFQUNSLGdCQUFnQixFQUNoQixRQUFRLEVBQUUsd0JBQXdCLEVBQ2xDLFlBQ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jcmlwdGlvbkJhc2UpO1xuICAgICAgICAgIGNvbnN0IGFjdGl2YXRlZFByb3BlcnR5OiBQcm9wZXJ0eSA9IHBsYWluVG9DbGFzcyhQcm9wZXJ0eSwgT2JqZWN0LmFzc2lnbih7fSwgcHJvcGVydHksIHsgc3Vic2NyaXB0aW9uczogW25ld1Byb3BlcnR5U3Vic2NyaXB0aW9uXSB9KSk7XG5cbiAgICAgICAgICB0aGlzLnVwZGF0ZUNhY2hlKFthY3RpdmF0ZWRQcm9wZXJ0eV0sICdwdXQnKTtcbiAgICAgICAgfSlcbiAgICAgICk7XG4gIH1cblxuICAvKipcbiAgICogQFRPRE8gbW92ZSB0byBzZXBhcmF0ZWQgYXBpXG4gICAqIERlYWN0aXZhdGUgYWN0aXZhdGVkIHByb3BlcnR5XG4gICAqL1xuICBkZWFjdGl2YXRlKHByb3BlcnR5OiBQcm9wZXJ0eSk6IE9ic2VydmFibGU8dm9pZD4ge1xuICAgIHJldHVybiB0aGlzLmh0dHAuZGVsZXRlKGAke3RoaXMuZW52aXJvbm1lbnQuYXBpVjJ9L3Byb3BlcnR5LXN1YnNjcmlwdGlvbnMvJHtwcm9wZXJ0eS5nZXRDdXJyZW50U3Vic2NyaXB0aW9uKCkuaWR9YClcbiAgICAgIC5waXBlKFxuICAgICAgICBtYXAoKCkgPT4ge1xuICAgICAgICAgIGNvbnN0IGRlYWN0aXZhdGVkUHJvcGVydHk6IFByb3BlcnR5ID0gcGxhaW5Ub0NsYXNzKFByb3BlcnR5LCBPYmplY3QuYXNzaWduKHt9LCBwcm9wZXJ0eSwgeyBzdWJzY3JpcHRpb25zOiBbXSB9KSk7XG5cbiAgICAgICAgICB0aGlzLnVwZGF0ZUNhY2hlKFtkZWFjdGl2YXRlZFByb3BlcnR5XSwgJ3B1dCcpO1xuICAgICAgICB9KVxuICAgICAgKTtcbiAgfVxufVxuIl19
|
package/esm2022/src/lib/services/property/property-calculation/property-calculation.service.mjs
CHANGED
@@ -130,7 +130,7 @@ export class PropertyCalculationService {
|
|
130
130
|
*/
|
131
131
|
getBadge(property, properties, transactions, depreciations) {
|
132
132
|
// best performance properties could be only from active properties list
|
133
|
-
const activeProperties = properties.
|
133
|
+
const activeProperties = properties.getActive();
|
134
134
|
const bestPerformanceGrowthProperty = activeProperties.getBestPerformanceGrowthProperty();
|
135
135
|
const bestPerformanceTaxProperty = activeProperties.getTaxInclusive().getBestPerformanceTaxProperty(transactions, depreciations);
|
136
136
|
switch (true) {
|
@@ -155,4 +155,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
155
155
|
providedIn: 'root'
|
156
156
|
}]
|
157
157
|
}] });
|
158
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHktY2FsY3VsYXRpb24uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9zZXJ2aWNlcy9wcm9wZXJ0eS9wcm9wZXJ0eS1jYWxjdWxhdGlvbi9wcm9wZXJ0eS1jYWxjdWxhdGlvbi5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFjLGFBQWEsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUNqRCxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFRckMsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUNwRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sd0NBQXdDLENBQUM7O0FBRXhFOz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cGVyZm9ybWFuY2UgZ3Jvd3RoJywgQmFkZ2VDb2xvckVudW0uR1JFRU4pO1xuICAgICAgZGVmYXVsdDpcbiAgICAgICAgcmV0dXJuIG5ldyBCYWRnZSgnTW9uaXRvcmluZyBwZXJmb3JtYW5jZScpO1xuICAgIH1cbiAgfVxufVxuIl19
|
@@ -2314,7 +2314,7 @@ class PropertyCollection extends Collection {
|
|
2314
2314
|
/**
|
2315
2315
|
* Get new property collection filtered by active status
|
2316
2316
|
*/
|
2317
|
-
|
2317
|
+
getActive() {
|
2318
2318
|
return new PropertyCollection(this.items.filter((property) => property.isActive));
|
2319
2319
|
}
|
2320
2320
|
getCreatedProperties() {
|
@@ -2380,7 +2380,7 @@ class PropertyCollection extends Collection {
|
|
2380
2380
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677997/Property+Tank+Dashboard
|
2381
2381
|
*/
|
2382
2382
|
sortByBestPerformance(transactions, depreciations) {
|
2383
|
-
const activeProperties = this.
|
2383
|
+
const activeProperties = this.getActive();
|
2384
2384
|
// nothing to sort when no active properties
|
2385
2385
|
if (!activeProperties.length) {
|
2386
2386
|
return this;
|
@@ -13934,6 +13934,12 @@ class PropertyService extends RestService$1 {
|
|
13934
13934
|
this.roles = [UserRolesEnum.PROPERTY_TANK];
|
13935
13935
|
this.listenEvents();
|
13936
13936
|
}
|
13937
|
+
get() {
|
13938
|
+
return super.get().pipe(map((properties) => properties.getActive()));
|
13939
|
+
}
|
13940
|
+
getAll() {
|
13941
|
+
return super.get();
|
13942
|
+
}
|
13937
13943
|
/**
|
13938
13944
|
* @TODO remove when forecast moved to separated api
|
13939
13945
|
*/
|
@@ -19233,7 +19239,7 @@ class PropertyCalculationService {
|
|
19233
19239
|
*/
|
19234
19240
|
getBadge(property, properties, transactions, depreciations) {
|
19235
19241
|
// best performance properties could be only from active properties list
|
19236
|
-
const activeProperties = properties.
|
19242
|
+
const activeProperties = properties.getActive();
|
19237
19243
|
const bestPerformanceGrowthProperty = activeProperties.getBestPerformanceGrowthProperty();
|
19238
19244
|
const bestPerformanceTaxProperty = activeProperties.getTaxInclusive().getBestPerformanceTaxProperty(transactions, depreciations);
|
19239
19245
|
switch (true) {
|
@@ -23908,6 +23914,7 @@ class TransactionBaseFilterForm extends FormGroup {
|
|
23908
23914
|
properties: new FormControl({ value: properties, disabled: true }),
|
23909
23915
|
dateFrom: new FormControl(),
|
23910
23916
|
dateTo: new FormControl(),
|
23917
|
+
chartAccounts: new FormControl(),
|
23911
23918
|
});
|
23912
23919
|
this.listenEvents();
|
23913
23920
|
}
|
@@ -23937,6 +23944,10 @@ class TransactionBaseFilterForm extends FormGroup {
|
|
23937
23944
|
if (value.properties) {
|
23938
23945
|
collection = collection.filterBy('property.id', value.properties.map(property => property.id));
|
23939
23946
|
}
|
23947
|
+
if (value.chartAccounts) {
|
23948
|
+
const searchQuery = value.chartAccounts.toLowerCase().trim();
|
23949
|
+
collection = collection.filter(transaction => transaction.chartAccounts.name.toLowerCase().includes(searchQuery));
|
23950
|
+
}
|
23940
23951
|
return collection;
|
23941
23952
|
}
|
23942
23953
|
}
|