taxtank-core 0.21.14 → 0.21.17

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.
@@ -6031,6 +6031,9 @@
6031
6031
  enumerable: false,
6032
6032
  configurable: true
6033
6033
  });
6034
+ Transaction.prototype.isFindAndMatch = function () {
6035
+ return this.operation === exports.TransactionOperationEnum.FIND_AND_MATCH;
6036
+ };
6034
6037
  Object.defineProperty(Transaction.prototype, "debit", {
6035
6038
  get: function () {
6036
6039
  return this.isDebit() ? Math.abs(this.amount) : 0;
@@ -8373,11 +8376,13 @@
8373
8376
  * Depreciation Nested Tree node with depreciations group
8374
8377
  */
8375
8378
  var DepreciationGroup = /** @class */ (function () {
8376
- function DepreciationGroup(label, description, icon, children) {
8379
+ function DepreciationGroup(label, description, icon, children, totalCost, openingValue) {
8377
8380
  this.label = label;
8378
8381
  this.description = description;
8379
8382
  this.icon = icon;
8380
8383
  this.children = children;
8384
+ this.totalCost = totalCost;
8385
+ this.openingValue = openingValue;
8381
8386
  }
8382
8387
  DepreciationGroup.prototype.getClaimAmount = function () {
8383
8388
  return this.children.reduce(function (sum, child) { return sum + child.getClaimAmount(); }, 0);
@@ -9497,7 +9502,7 @@
9497
9502
  };
9498
9503
  MyTaxDeductions.prototype.setVehicleClaimData = function () {
9499
9504
  this.klmsMethodClaimAmount = this.vehicleClaim.getKLMsClaimAmount(this.vehicleClaimRate);
9500
- this.totalExpensesAmount = new VehicleExpenseCollection(this.transactions.getByTankType(this.vehicleClaim.tankType), this.depreciations.getByTankType(this.vehicleClaim.tankType), this.vehicleClaim).sumBy('amount');
9505
+ this.totalExpensesAmount = this.vehicleClaim.getLogbookClaimAmount(new TransactionCollection(__spreadArray(__spreadArray([], __read(this.transactions.getByTankType(this.vehicleClaim.tankType))), __read(this.depreciations.getByTankType(this.vehicleClaim.tankType).toTransactions().toArray()))));
9501
9506
  };
9502
9507
  /**
9503
9508
  * Total amount from Other work related expenses and Tools & equipment depreciations