taxtank-core 0.21.5 → 0.21.6
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.
|
@@ -4545,9 +4545,9 @@
|
|
|
4545
4545
|
});
|
|
4546
4546
|
DepreciationCollection.prototype.getClaimAmountByYear = function (year) {
|
|
4547
4547
|
if (year === void 0) { year = +localStorage.getItem('financialYear'); }
|
|
4548
|
-
return this.amount - this.items.reduce(function (sum, depreciation) {
|
|
4548
|
+
return +Math.round(this.amount - this.items.reduce(function (sum, depreciation) {
|
|
4549
4549
|
return sum + depreciation.getCloseBalanceByYear(year);
|
|
4550
|
-
}, 0);
|
|
4550
|
+
}, 0)).toFixed(2);
|
|
4551
4551
|
};
|
|
4552
4552
|
DepreciationCollection.prototype.getCloseBalanceByYear = function (year) {
|
|
4553
4553
|
if (year === void 0) { year = +localStorage.getItem('financialYear'); }
|