taxtank-core 0.28.45 → 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 +12 -9
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/tax-summary/tax-return-categories.const.js +4 -1
- package/esm2015/lib/db/Enums/tax-return-category-list.enum.js +2 -2
- package/esm2015/lib/models/tax-summary/tax-summary.js +9 -9
- package/fesm2015/taxtank-core.js +12 -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 = {
|
|
@@ -9236,6 +9236,9 @@
|
|
|
9236
9236
|
loss: [
|
|
9237
9237
|
exports.TaxReturnCategoryListEnum.DEFERRED_BUSINESS_LOSSES_FROM_PRIOR_YEAR,
|
|
9238
9238
|
],
|
|
9239
|
+
lossCurrent: [
|
|
9240
|
+
exports.TaxReturnCategoryListEnum.DEFERRED_BUSINESS_LOSSES,
|
|
9241
|
+
],
|
|
9239
9242
|
taxOffsets: [
|
|
9240
9243
|
exports.TaxReturnCategoryListEnum.TAX_OFFSETS_SOLE
|
|
9241
9244
|
],
|
|
@@ -12197,9 +12200,10 @@
|
|
|
12197
12200
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
|
|
12198
12201
|
*/
|
|
12199
12202
|
get: function () {
|
|
12200
|
-
var
|
|
12201
|
-
var
|
|
12202
|
-
|
|
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;
|
|
12203
12207
|
},
|
|
12204
12208
|
enumerable: false,
|
|
12205
12209
|
configurable: true
|
|
@@ -12210,11 +12214,10 @@
|
|
|
12210
12214
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
|
|
12211
12215
|
*/
|
|
12212
12216
|
get: function () {
|
|
12213
|
-
|
|
12214
|
-
var
|
|
12215
|
-
var
|
|
12216
|
-
|
|
12217
|
-
return income + expenses + depreciation - loss;
|
|
12217
|
+
// income + expenses + depreciation + loss
|
|
12218
|
+
var profit = this.sole.items.sumByCategories([exports.TaxReturnCategoryListEnum.BUSINESS_INCOME_OR_LOSS]);
|
|
12219
|
+
var lossCurrent = this.sole.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.sole.lossCurrent, exports.TaxSummarySectionEnum.SOLE_TANK);
|
|
12220
|
+
return profit - lossCurrent;
|
|
12218
12221
|
},
|
|
12219
12222
|
enumerable: false,
|
|
12220
12223
|
configurable: true
|