taxtank-core 0.33.12 → 0.33.15
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/lib/collections/holding/holding.collection.mjs +4 -1
- package/esm2022/src/lib/collections/property/property.collection.mjs +3 -7
- package/esm2022/src/lib/forms/transaction/transaction-base-filter.form.mjs +4 -1
- package/esm2022/src/lib/models/property/property.mjs +7 -1
- package/fesm2022/taxtank-core.mjs +14 -6
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/holding/holding.collection.d.ts +1 -0
- package/src/lib/models/property/property.d.ts +1 -0
@@ -71,5 +71,8 @@ export class HoldingCollection extends ExportableCollection {
|
|
71
71
|
getUnsold() {
|
72
72
|
return this.removeBy('currentQuantity', 0);
|
73
73
|
}
|
74
|
+
getUnrealisedProfit() {
|
75
|
+
return this.marketValue - this.getPurchaseValue();
|
76
|
+
}
|
74
77
|
}
|
75
|
-
//# sourceMappingURL=data:application/json;base64,
|
78
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy5jb2xsZWN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2NvbGxlY3Rpb25zL2hvbGRpbmcvaG9sZGluZy5jb2xsZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUVoRSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFDN0QsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFDL0UsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sZ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aXR5JywgMCk7XHJcbiAgfVxyXG5cclxuICBnZXRVbnJlYWxpc2VkUHJvZml0KCkge1xyXG4gICAgcmV0dXJuIHRoaXMubWFya2V0VmFsdWUgLSB0aGlzLmdldFB1cmNoYXNlVmFsdWUoKTtcclxuICB9XHJcbn1cclxuIl19
|
@@ -29,14 +29,10 @@ export class PropertyCollection extends Collection {
|
|
29
29
|
return this.sumBy('growthPercent');
|
30
30
|
}
|
31
31
|
get marketValue() {
|
32
|
-
return this.sumBy('
|
32
|
+
return this.sumBy('marketValue');
|
33
33
|
}
|
34
34
|
get sharedMarketValue() {
|
35
|
-
|
36
|
-
this.items.forEach(property => {
|
37
|
-
sharedMarketValue += property.shareRatio * property.marketValue;
|
38
|
-
});
|
39
|
-
return sharedMarketValue;
|
35
|
+
return this.sumBy('sharedMarketValue');
|
40
36
|
}
|
41
37
|
/**
|
42
38
|
* Get list of unique property categories from collection
|
@@ -114,4 +110,4 @@ export class PropertyCollection extends Collection {
|
|
114
110
|
return propertiesByCategory;
|
115
111
|
}
|
116
112
|
}
|
117
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHkuY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9jb2xsZWN0aW9ucy9wcm9wZXJ0eS9wcm9wZXJ0eS5jb2xsZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxNQUFNLE1BQU0sZUFBZSxDQUFDO0FBTW5DLE1BQU0sT0FBTyxrQkFBbUIsU0FBUSxVQUFvQjtJQUMxRDs7T0FFRztJQUNILG1CQUFtQjtRQUNqQixPQUFPLElBQUksa0JBQWtCLENBQzNCLEl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BuZXcgUHJvcGVydHlDb2xsZWN0aW9uKCkpO1xyXG4gICAgICB9KTtcclxuICAgIH1cclxuXHJcbiAgICByZXR1cm4gcHJvcGVydGllc0J5Q2F0ZWdvcnk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -18,6 +18,9 @@ export class TransactionBaseFilterForm extends FormGroup {
|
|
18
18
|
});
|
19
19
|
}
|
20
20
|
filter(collection) {
|
21
|
+
if (!collection.length) {
|
22
|
+
return collection;
|
23
|
+
}
|
21
24
|
const value = this.value;
|
22
25
|
if (value.dateFrom) {
|
23
26
|
collection = collection.filter(transaction => transaction.date >= value.dateFrom);
|
@@ -37,4 +40,4 @@ export class TransactionBaseFilterForm extends FormGroup {
|
|
37
40
|
return collection;
|
38
41
|
}
|
39
42
|
}
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tYmFzZS1maWx0ZXIuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi1iYXNlLWZpbHRlci5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFHeEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBYTdELE1BQU0sT0FBTyx5QkFBMEIsU0FBUSxTQUF5QztJQUN0RixZQUFZLFFBQXVCLEVBQUUsUUFBdUIsRUFBRSxVQUF1QjtRQUNuRixLQUFLLENBQUM7WUFDSixRQUFRLEVBQUUsSUFBSSxXQUFXLENBQUMsUUFBUSxDQUFDO1lBQ25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gICB9XHJcblxyXG4gICAgcmV0dXJuIGNvbGxlY3Rpb247XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -47,6 +47,12 @@ export class Property extends PropertyBase {
|
|
47
47
|
}
|
48
48
|
return this.valuation?.marketValue || 0;
|
49
49
|
}
|
50
|
+
get sharedMarketValue() {
|
51
|
+
if (this.isSold()) {
|
52
|
+
return 0;
|
53
|
+
}
|
54
|
+
return this.shareRatio * this.marketValue;
|
55
|
+
}
|
50
56
|
get currentYearForecast() {
|
51
57
|
const year = new FinancialYear().year;
|
52
58
|
return this.forecasts.find((forecast) => forecast.financialYear === year)
|
@@ -247,4 +253,4 @@ __decorate([
|
|
247
253
|
__decorate([
|
248
254
|
Exclude()
|
249
255
|
], Property.prototype, "documentFile", void 0);
|
250
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL3Byb3BlcnR5L3Byb3BlcnR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsUUFBUSxJQUFJLFlBQVksRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBQzdFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUNoRCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUMvRCxPQUFPLEVBQUUsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2xELE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDckMsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdkQsT0FBTyxFQUFFLGlCQ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JdfQ==
|
@@ -2339,14 +2339,10 @@ class PropertyCollection extends Collection {
|
|
2339
2339
|
return this.sumBy('growthPercent');
|
2340
2340
|
}
|
2341
2341
|
get marketValue() {
|
2342
|
-
return this.sumBy('
|
2342
|
+
return this.sumBy('marketValue');
|
2343
2343
|
}
|
2344
2344
|
get sharedMarketValue() {
|
2345
|
-
|
2346
|
-
this.items.forEach(property => {
|
2347
|
-
sharedMarketValue += property.shareRatio * property.marketValue;
|
2348
|
-
});
|
2349
|
-
return sharedMarketValue;
|
2345
|
+
return this.sumBy('sharedMarketValue');
|
2350
2346
|
}
|
2351
2347
|
/**
|
2352
2348
|
* Get list of unique property categories from collection
|
@@ -5800,6 +5796,12 @@ class Property extends Property$1 {
|
|
5800
5796
|
}
|
5801
5797
|
return this.valuation?.marketValue || 0;
|
5802
5798
|
}
|
5799
|
+
get sharedMarketValue() {
|
5800
|
+
if (this.isSold()) {
|
5801
|
+
return 0;
|
5802
|
+
}
|
5803
|
+
return this.shareRatio * this.marketValue;
|
5804
|
+
}
|
5803
5805
|
get currentYearForecast() {
|
5804
5806
|
const year = new FinancialYear().year;
|
5805
5807
|
return this.forecasts.find((forecast) => forecast.financialYear === year)
|
@@ -9504,6 +9506,9 @@ class HoldingCollection extends ExportableCollection {
|
|
9504
9506
|
getUnsold() {
|
9505
9507
|
return this.removeBy('currentQuantity', 0);
|
9506
9508
|
}
|
9509
|
+
getUnrealisedProfit() {
|
9510
|
+
return this.marketValue - this.getPurchaseValue();
|
9511
|
+
}
|
9507
9512
|
}
|
9508
9513
|
|
9509
9514
|
class HoldingSaleCollection extends ExportableCollection {
|
@@ -23861,6 +23866,9 @@ class TransactionBaseFilterForm extends FormGroup {
|
|
23861
23866
|
});
|
23862
23867
|
}
|
23863
23868
|
filter(collection) {
|
23869
|
+
if (!collection.length) {
|
23870
|
+
return collection;
|
23871
|
+
}
|
23864
23872
|
const value = this.value;
|
23865
23873
|
if (value.dateFrom) {
|
23866
23874
|
collection = collection.filter(transaction => transaction.date >= value.dateFrom);
|