taxtank-core 0.4.0 → 0.4.1

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.
@@ -1791,6 +1791,11 @@
1791
1791
  return sum + depreciation.getClaimAmountByYear(year);
1792
1792
  }, 0);
1793
1793
  };
1794
+ DepreciationCollection.prototype.getCurrentYearForecastAmount = function () {
1795
+ return this.items.reduce(function (sum, depreciation) {
1796
+ return sum + depreciation.getCurrentYearForecastAmount();
1797
+ }, 0);
1798
+ };
1794
1799
  Object.defineProperty(DepreciationCollection.prototype, "assetValue", {
1795
1800
  get: function () {
1796
1801
  return this.sumBy('assetValue');
@@ -5475,6 +5480,10 @@
5475
5480
  var _a;
5476
5481
  return (_a = this.currentYearForecast) === null || _a === void 0 ? void 0 : _a.claimPercent;
5477
5482
  };
5483
+ Depreciation.prototype.getCurrentYearForecastAmount = function () {
5484
+ var _a;
5485
+ return ((_a = this.currentYearForecast) === null || _a === void 0 ? void 0 : _a.amount) || 0;
5486
+ };
5478
5487
  Depreciation.prototype.isBuildingAtCost = function () {
5479
5488
  return this.chartAccounts.id === exports.ChartAccountsListEnum.BUILDING_AT_COST;
5480
5489
  };