taxtank-core 0.21.17 → 0.21.18
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 +7 -1
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/depreciation.collection.js +7 -2
- package/fesm2015/taxtank-core.js +6 -1
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/depreciation.collection.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4644,12 +4644,18 @@
|
|
|
4644
4644
|
enumerable: false,
|
|
4645
4645
|
configurable: true
|
|
4646
4646
|
});
|
|
4647
|
-
DepreciationCollection.prototype.
|
|
4647
|
+
DepreciationCollection.prototype.getClaimedAmountByYear = function (year) {
|
|
4648
4648
|
if (year === void 0) { year = +localStorage.getItem('financialYear'); }
|
|
4649
4649
|
return +Math.round(this.amount - this.items.reduce(function (sum, depreciation) {
|
|
4650
4650
|
return sum + depreciation.getCloseBalanceByYear(year);
|
|
4651
4651
|
}, 0)).toFixed(2);
|
|
4652
4652
|
};
|
|
4653
|
+
DepreciationCollection.prototype.getClaimAmountByYear = function (year) {
|
|
4654
|
+
if (year === void 0) { year = +localStorage.getItem('financialYear'); }
|
|
4655
|
+
return this.items.reduce(function (sum, depreciation) {
|
|
4656
|
+
return sum + depreciation.getClaimAmountByYear(year);
|
|
4657
|
+
}, 0);
|
|
4658
|
+
};
|
|
4653
4659
|
DepreciationCollection.prototype.getCloseBalanceByYear = function (year) {
|
|
4654
4660
|
if (year === void 0) { year = +localStorage.getItem('financialYear'); }
|
|
4655
4661
|
return this.items.reduce(function (sum, depreciation) {
|