taxtank-core 1.0.57 → 1.0.59
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;
|
@@ -15640,7 +15641,8 @@ class TaxSummary {
|
|
15640
15641
|
get workTaxCredits() {
|
15641
15642
|
const taxWithheld = this.summary.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.work.taxWithheld, TaxSummarySectionEnum.WORK_TANK);
|
15642
15643
|
const taxInstallments = this.summary.items.sumByCategoriesAndSection([TaxReturnCategoryListEnum.WORK_TAX_INSTALMENTS], TaxSummarySectionEnum.SUMMARY);
|
15643
|
-
|
15644
|
+
const frankingCredits = this.summary.items.sumByCategoriesAndSection([TaxReturnCategoryListEnum.FRANKING_CREDITS], TaxSummarySectionEnum.WORK_TANK);
|
15645
|
+
return taxWithheld + taxInstallments + frankingCredits;
|
15644
15646
|
}
|
15645
15647
|
get soleTaxCredits() {
|
15646
15648
|
const taxOffsets = this.summary.items.sumByCategoriesAndSection([TaxReturnCategoryListEnum.TAX_OFFSETS_SOLE], TaxSummarySectionEnum.SOLE_TANK);
|
@@ -15664,9 +15666,8 @@ class TaxSummary {
|
|
15664
15666
|
...TAX_RETURN_CATEGORIES.property.depreciation,
|
15665
15667
|
...TAX_RETURN_CATEGORIES.sole.expenses,
|
15666
15668
|
...TAX_RETURN_CATEGORIES.sole.depreciation,
|
15667
|
-
...TAX_RETURN_CATEGORIES.sole.loss,
|
15668
15669
|
...TAX_RETURN_CATEGORIES.holdings.expenses,
|
15669
|
-
]);
|
15670
|
+
]) - this.soleLossesApplied;
|
15670
15671
|
}
|
15671
15672
|
get taxCredits() {
|
15672
15673
|
return this.summary.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.summary.taxCredits, TaxSummarySectionEnum.SUMMARY);
|
@@ -15677,10 +15678,10 @@ class TaxSummary {
|
|
15677
15678
|
+ this.workDepreciations;
|
15678
15679
|
}
|
15679
15680
|
get netCash() {
|
15680
|
-
return this.
|
15681
|
+
return this.netTotal + this.taxCredits;
|
15681
15682
|
}
|
15682
15683
|
get netTotal() {
|
15683
|
-
return this.
|
15684
|
+
return this.income + this.expense;
|
15684
15685
|
}
|
15685
15686
|
/**
|
15686
15687
|
* Work Net Total = Income - expenses - interest
|
@@ -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
|