taxtank-core 0.28.21 → 0.28.23

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.
@@ -5389,16 +5389,6 @@
5389
5389
  enumerable: false,
5390
5390
  configurable: true
5391
5391
  });
5392
- Object.defineProperty(Property.prototype, "shareClaimPercent", {
5393
- /**
5394
- * exact claim including share percent
5395
- */
5396
- get: function () {
5397
- return this.sharePercent * this.claimPercent / 100;
5398
- },
5399
- enumerable: false,
5400
- configurable: true
5401
- });
5402
5392
  Object.defineProperty(Property.prototype, "actualValuation", {
5403
5393
  get: function () {
5404
5394
  return this.valuations.reduce(function (maxDateValuation, valuation) {
@@ -5415,6 +5405,13 @@
5415
5405
  enumerable: false,
5416
5406
  configurable: true
5417
5407
  });
5408
+ Object.defineProperty(Property.prototype, "claimCoefficient", {
5409
+ get: function () {
5410
+ return this.claimPercent / 100;
5411
+ },
5412
+ enumerable: false,
5413
+ configurable: true
5414
+ });
5418
5415
  Object.defineProperty(Property.prototype, "sharePercent", {
5419
5416
  get: function () {
5420
5417
  return this.myShare.percent;
@@ -9980,10 +9977,14 @@
9980
9977
  DepreciationGroup.prototype.getClaimAmount = function () {
9981
9978
  return this.children.reduce(function (sum, child) { return sum + child.getClaimAmount(); }, 0);
9982
9979
  };
9980
+ DepreciationGroup.prototype.getAmount = function () {
9981
+ return this.children.reduce(function (sum, child) { return sum + child.getAmount(); }, 0);
9982
+ };
9983
9983
  return DepreciationGroup;
9984
9984
  }());
9985
9985
 
9986
9986
  /**
9987
+ * @TODO Alex useless class, use parent instead
9987
9988
  * Depreciation Tree node with depreciation details
9988
9989
  */
9989
9990
  var DepreciationGroupItem = /** @class */ (function (_super) {
@@ -9996,6 +9997,9 @@
9996
9997
  DepreciationGroupItem.prototype.getClaimAmount = function () {
9997
9998
  return this.depreciation.currentYearForecast.claimAmount;
9998
9999
  };
10000
+ DepreciationGroupItem.prototype.getAmount = function () {
10001
+ return this.depreciation.currentYearForecast.amount;
10002
+ };
9999
10003
  return DepreciationGroupItem;
10000
10004
  }(DepreciationGroup));
10001
10005