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.
@@ -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.find(function (item) { return item.price.product.isProperties(); });
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
  };