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.
@@ -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 income = this.sole.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.sole.income, exports.TaxSummarySectionEnum.SOLE_TANK);
12204
- var expenses = this.sole.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.sole.expenses, exports.TaxSummarySectionEnum.SOLE_TANK);
12205
- return income + expenses;
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
- var income = this.sole.items.sumByCategories(TAX_RETURN_CATEGORIES.sole.income);
12217
- var expenses = this.sole.items.sumByCategories(TAX_RETURN_CATEGORIES.sole.expenses);
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 income + expenses + depreciation + loss + lossCurrent;
12220
+ return profit - lossCurrent;
12222
12221
  },
12223
12222
  enumerable: false,
12224
12223
  configurable: true