taxtank-core 0.28.37 → 0.28.38

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.
@@ -7853,7 +7853,7 @@
7853
7853
  return _super !== null && _super.apply(this, arguments) || this;
7854
7854
  }
7855
7855
  TransactionBaseCollection.prototype.getClaimAmountByBusiness = function (business) {
7856
- return +this.filterBy('business.id', business.id).items.map(function (transaction) { return transaction instanceof Depreciation ? -transaction.claimAmount : transaction['claimAmount']; }).reduce(function (sum, claimAmount) { return sum + claimAmount; }).toFixed(2);
7856
+ return +this.filterBy('business.id', business.id).items.map(function (transaction) { return transaction instanceof Depreciation ? -transaction.claimAmount : transaction['claimAmount']; }).reduce(function (sum, claimAmount) { return sum + claimAmount; }, 0).toFixed(2);
7857
7857
  };
7858
7858
  return TransactionBaseCollection;
7859
7859
  }(Collection));
@@ -11248,8 +11248,8 @@
11248
11248
  });
11249
11249
  };
11250
11250
  MyTaxEstimate.getLowMiddleIncomeTaxOffsets = function (taxOffsetsReportItem) {
11251
- var taxOffsetLowIncome = taxOffsetsReportItem.details.findBy('name', 'Tax Offset Low Income');
11252
- var taxOffsetLowMiddleIncome = taxOffsetsReportItem.details.findBy('name', 'Tax Offset Low and Middle Income');
11251
+ var taxOffsetLowIncome = taxOffsetsReportItem.items.findBy('title', 'Tax Offset Low Income');
11252
+ var taxOffsetLowMiddleIncome = taxOffsetsReportItem.items.findBy('title', 'Tax Offset Low and Middle Income');
11253
11253
  return taxOffsetLowIncome.amount + taxOffsetLowMiddleIncome.amount;
11254
11254
  };
11255
11255
  MyTaxEstimate.getTaxOffsets = function (taxOffsetsReportItemAmount, lowMiddleIncomeTaxOffsets) {