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.
- package/bundles/taxtank-core.umd.js +3 -3
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/transaction/transaction-base.collection.js +2 -2
- package/esm2015/lib/models/report/my-tax/my-tax-estimate/my-tax-estimate.js +3 -3
- package/fesm2015/taxtank-core.js +3 -3
- package/fesm2015/taxtank-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
11252
|
-
var taxOffsetLowMiddleIncome = taxOffsetsReportItem.
|
|
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) {
|