taxtank-core 1.0.57 → 1.0.58
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.
@@ -1393,6 +1393,7 @@ var TaxReturnCategoryListEnum;
|
|
1393
1393
|
TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["tAX_OFFSET_MIDDLE"] = 62] = "tAX_OFFSET_MIDDLE";
|
1394
1394
|
TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["TAX_OFFSET_SOLE"] = 63] = "TAX_OFFSET_SOLE";
|
1395
1395
|
TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["DEFERRED_BUSINESS_LOSSES_FROM_PRIOR_YEAR"] = 64] = "DEFERRED_BUSINESS_LOSSES_FROM_PRIOR_YEAR";
|
1396
|
+
TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["BUSINESS_LOSSES_APPLIED"] = 88] = "BUSINESS_LOSSES_APPLIED";
|
1396
1397
|
})(TaxReturnCategoryListEnum || (TaxReturnCategoryListEnum = {}));
|
1397
1398
|
|
1398
1399
|
var TaxReturnCategorySectionEnum;
|
@@ -15743,20 +15744,19 @@ class TaxSummary {
|
|
15743
15744
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
|
15744
15745
|
*/
|
15745
15746
|
get soleNetCash() {
|
15746
|
-
const
|
15747
|
-
const
|
15748
|
-
|
15749
|
-
|
15747
|
+
const income = this.sole.items.sumByCategories(TAX_RETURN_CATEGORIES.sole.income);
|
15748
|
+
const expense = this.sole.items.sumByCategories(TAX_RETURN_CATEGORIES.sole.expenses);
|
15749
|
+
return income + expense + this.soleTaxCredits;
|
15750
|
+
}
|
15751
|
+
get soleLossesApplied() {
|
15752
|
+
return this.sole.items.sumByCategories([TaxReturnCategoryListEnum.BUSINESS_LOSSES_APPLIED]);
|
15750
15753
|
}
|
15751
15754
|
/**
|
15752
15755
|
* Sole Net Total = Gross income - expenses
|
15753
15756
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
|
15754
15757
|
*/
|
15755
15758
|
get soleNetTotal() {
|
15756
|
-
|
15757
|
-
const profit = this.sole.items.sumByCategories([TaxReturnCategoryListEnum.BUSINESS_INCOME_OR_LOSS]);
|
15758
|
-
const lossCurrent = this.sole.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.sole.lossCurrent, TaxSummarySectionEnum.SOLE_TANK);
|
15759
|
-
return profit - lossCurrent;
|
15759
|
+
return this.sole.netAmount;
|
15760
15760
|
}
|
15761
15761
|
getDeferredBusinessLoss(business) {
|
15762
15762
|
return this.sole.items
|