taxtank-core 0.29.27 → 0.29.29
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/bundles/taxtank-core.umd.js +6 -2
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/subscription/service-subscription.collection.js +4 -1
- package/esm2015/lib/collections/subscription/subscription-item.collection.js +2 -2
- package/esm2015/lib/models/chart-accounts/chart-accounts-categories.const.js +3 -2
- package/fesm2015/taxtank-core.js +6 -2
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/subscription/service-subscription.collection.d.ts +3 -0
- package/package.json +1 -1
|
@@ -3310,7 +3310,8 @@
|
|
|
3310
3310
|
],
|
|
3311
3311
|
depreciation: [
|
|
3312
3312
|
exports.ChartAccountsCategoryEnum.PROPERTY_DEPRECIATION,
|
|
3313
|
-
exports.ChartAccountsCategoryEnum.WORK_DEPRECIATION
|
|
3313
|
+
exports.ChartAccountsCategoryEnum.WORK_DEPRECIATION,
|
|
3314
|
+
exports.ChartAccountsCategoryEnum.PROPERTY_CAPITAL_WORKS,
|
|
3314
3315
|
],
|
|
3315
3316
|
all: [
|
|
3316
3317
|
exports.ChartAccountsCategoryEnum.PROPERTY_INCOME,
|
|
@@ -5481,7 +5482,7 @@
|
|
|
5481
5482
|
}
|
|
5482
5483
|
Object.defineProperty(SubscriptionItemCollection.prototype, "propertiesItem", {
|
|
5483
5484
|
get: function () {
|
|
5484
|
-
return this.
|
|
5485
|
+
return this.filter(function (item) { return item.price.product.isProperties(); }).last;
|
|
5485
5486
|
},
|
|
5486
5487
|
enumerable: false,
|
|
5487
5488
|
configurable: true
|
|
@@ -5525,6 +5526,9 @@
|
|
|
5525
5526
|
ServiceSubscriptionCollection.prototype.getActivePaid = function () {
|
|
5526
5527
|
return this.getActive().find(function (subscription) { return !!subscription.stripeId; });
|
|
5527
5528
|
};
|
|
5529
|
+
/**
|
|
5530
|
+
* @TODO vik remove trials replaced by paid item
|
|
5531
|
+
*/
|
|
5528
5532
|
ServiceSubscriptionCollection.prototype.getItems = function () {
|
|
5529
5533
|
return new SubscriptionItemCollection(flatten__default["default"](this.mapBy('items')));
|
|
5530
5534
|
};
|