taxtank-core 0.30.10 → 0.30.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/collections/subscription/service-subscription.collection.mjs +6 -5
- package/esm2020/lib/models/depreciation/depreciation.mjs +2 -1
- package/esm2020/lib/models/endpoint/endpoints.const.mjs +2 -2
- package/esm2020/lib/services/toast/toast.service.mjs +2 -2
- package/fesm2015/taxtank-core.mjs +8 -6
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +7 -5
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/collections/subscription/service-subscription.collection.d.ts +2 -3
- package/package.json +1 -1
|
@@ -4862,6 +4862,7 @@ class Depreciation extends Depreciation$1 {
|
|
|
4862
4862
|
return plainToClass(Transaction, Object.assign(params, this, {
|
|
4863
4863
|
amount: -this.currentYearForecast?.amount || 0,
|
|
4864
4864
|
claimAmount: -this.currentYearForecast?.claimAmount || 0,
|
|
4865
|
+
claimPercent: this.currentYearForecast?.claimPercent || 0,
|
|
4865
4866
|
}));
|
|
4866
4867
|
}
|
|
4867
4868
|
/**
|
|
@@ -5739,11 +5740,12 @@ class ServiceSubscriptionCollection extends Collection {
|
|
|
5739
5740
|
return new SubscriptionItemCollection(flatten(this.mapBy('items')));
|
|
5740
5741
|
}
|
|
5741
5742
|
groupByProduct(products) {
|
|
5742
|
-
const
|
|
5743
|
+
const dictionary = new Dictionary([]);
|
|
5743
5744
|
products.toArray().forEach((product) => {
|
|
5744
|
-
|
|
5745
|
+
const subscriptions = this.filterByProduct(product);
|
|
5746
|
+
dictionary.add(product.id, (subscriptions.getPaid() || subscriptions.getTrials()).first);
|
|
5745
5747
|
});
|
|
5746
|
-
return
|
|
5748
|
+
return dictionary;
|
|
5747
5749
|
}
|
|
5748
5750
|
findByProduct(product) {
|
|
5749
5751
|
return this.find((subscription) => {
|
|
@@ -8325,7 +8327,7 @@ const ENDPOINTS = {
|
|
|
8325
8327
|
PROPERTIES_POST: new Endpoint('POST', '\\/properties'),
|
|
8326
8328
|
PROPERTY_PUT: new Endpoint('PUT', '\\/properties/\\d+'),
|
|
8327
8329
|
PROPERTY_SUBSCRIPTIONS_DELETE: new Endpoint('DELETE', '\\/property-subscriptions\\/\\d+'),
|
|
8328
|
-
|
|
8330
|
+
PROPERTY_SUBSCRIPTIONS_POST: new Endpoint('POST', '\\/property-subscriptions'),
|
|
8329
8331
|
PROPERTIES_PUT: new Endpoint('PUT', '\\/properties'),
|
|
8330
8332
|
PROPERTIES_CATEGORIES_EQUITY_GET: new Endpoint('GET', '\\/properties\\/categories\\/equity'),
|
|
8331
8333
|
PROPERTIES_CATEGORIES_GET: new Endpoint('GET', '\\/properties\\/categories'),
|
|
@@ -8859,7 +8861,7 @@ class ToastService {
|
|
|
8859
8861
|
warning(message) {
|
|
8860
8862
|
this.add(plainToClass(Toast, {
|
|
8861
8863
|
type: ToastTypeEnum.WARNING,
|
|
8862
|
-
title: '
|
|
8864
|
+
title: 'Notification!',
|
|
8863
8865
|
message,
|
|
8864
8866
|
}));
|
|
8865
8867
|
}
|