taxtank-core 0.21.16 → 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.
- package/bundles/taxtank-core.umd.js +3 -1
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/models/depreciation/depreciation-group.js +4 -2
- package/fesm2015/taxtank-core.js +3 -1
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/models/depreciation/depreciation-group.d.ts +3 -1
- package/package.json +1 -1
|
@@ -8376,11 +8376,13 @@
|
|
|
8376
8376
|
* Depreciation Nested Tree node with depreciations group
|
|
8377
8377
|
*/
|
|
8378
8378
|
var DepreciationGroup = /** @class */ (function () {
|
|
8379
|
-
function DepreciationGroup(label, description, icon, children) {
|
|
8379
|
+
function DepreciationGroup(label, description, icon, children, totalCost, openingValue) {
|
|
8380
8380
|
this.label = label;
|
|
8381
8381
|
this.description = description;
|
|
8382
8382
|
this.icon = icon;
|
|
8383
8383
|
this.children = children;
|
|
8384
|
+
this.totalCost = totalCost;
|
|
8385
|
+
this.openingValue = openingValue;
|
|
8384
8386
|
}
|
|
8385
8387
|
DepreciationGroup.prototype.getClaimAmount = function () {
|
|
8386
8388
|
return this.children.reduce(function (sum, child) { return sum + child.getClaimAmount(); }, 0);
|