taxtank-core 0.28.46 → 0.28.47
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 +8 -9
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/db/Enums/tax-return-category-list.enum.js +2 -2
- package/esm2015/lib/models/tax-summary/tax-summary.js +8 -9
- package/fesm2015/taxtank-core.js +8 -9
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/db/Enums/tax-return-category-list.enum.d.ts +2 -2
- package/package.json +1 -1
|
@@ -9140,8 +9140,8 @@
|
|
|
9140
9140
|
TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["TAX_OFFSETS_SOLE"] = 63] = "TAX_OFFSETS_SOLE";
|
|
9141
9141
|
TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["TAX_PAYABLE"] = 28] = "TAX_PAYABLE";
|
|
9142
9142
|
TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["BUSINESS_INCOME_OR_LOSS"] = 59] = "BUSINESS_INCOME_OR_LOSS";
|
|
9143
|
-
TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["DEFERRED_BUSINESS_LOSSES_FROM_PRIOR_YEAR"] = 64] = "DEFERRED_BUSINESS_LOSSES_FROM_PRIOR_YEAR";
|
|
9144
9143
|
TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["DEFERRED_BUSINESS_LOSSES"] = 60] = "DEFERRED_BUSINESS_LOSSES";
|
|
9144
|
+
TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["DEFERRED_BUSINESS_LOSSES_FROM_PRIOR_YEAR"] = 64] = "DEFERRED_BUSINESS_LOSSES_FROM_PRIOR_YEAR";
|
|
9145
9145
|
})(exports.TaxReturnCategoryListEnum || (exports.TaxReturnCategoryListEnum = {}));
|
|
9146
9146
|
|
|
9147
9147
|
var TAX_RETURN_CATEGORIES = {
|
|
@@ -12200,9 +12200,10 @@
|
|
|
12200
12200
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
|
|
12201
12201
|
*/
|
|
12202
12202
|
get: function () {
|
|
12203
|
-
var
|
|
12204
|
-
var
|
|
12205
|
-
|
|
12203
|
+
var depreciation = this.sole.items.sumByCategories(TAX_RETURN_CATEGORIES.sole.depreciation);
|
|
12204
|
+
var loss = this.sole.items.sumByCategories(TAX_RETURN_CATEGORIES.sole.loss);
|
|
12205
|
+
var lossCurrent = this.sole.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.sole.lossCurrent, exports.TaxSummarySectionEnum.SOLE_TANK);
|
|
12206
|
+
return this.soleNetTotal - depreciation - loss + lossCurrent;
|
|
12206
12207
|
},
|
|
12207
12208
|
enumerable: false,
|
|
12208
12209
|
configurable: true
|
|
@@ -12213,12 +12214,10 @@
|
|
|
12213
12214
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
|
|
12214
12215
|
*/
|
|
12215
12216
|
get: function () {
|
|
12216
|
-
|
|
12217
|
-
var
|
|
12218
|
-
var depreciation = this.sole.items.sumByCategories(TAX_RETURN_CATEGORIES.sole.depreciation);
|
|
12219
|
-
var loss = this.sole.items.sumByCategories(TAX_RETURN_CATEGORIES.sole.loss);
|
|
12217
|
+
// income + expenses + depreciation + loss
|
|
12218
|
+
var profit = this.sole.items.sumByCategories([exports.TaxReturnCategoryListEnum.BUSINESS_INCOME_OR_LOSS]);
|
|
12220
12219
|
var lossCurrent = this.sole.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.sole.lossCurrent, exports.TaxSummarySectionEnum.SOLE_TANK);
|
|
12221
|
-
return
|
|
12220
|
+
return profit - lossCurrent;
|
|
12222
12221
|
},
|
|
12223
12222
|
enumerable: false,
|
|
12224
12223
|
configurable: true
|