taxtank-core 0.28.101 → 0.28.103
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 -6
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.js +4 -5
- package/esm2015/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.js +11 -3
- package/fesm2015/taxtank-core.js +12 -6
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.d.ts +2 -1
- package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts +5 -0
- package/package.json +1 -1
|
@@ -11454,7 +11454,7 @@
|
|
|
11454
11454
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form (section "Business income or losses")
|
|
11455
11455
|
*/
|
|
11456
11456
|
var MyTaxBusinessIncome = /** @class */ (function () {
|
|
11457
|
-
function MyTaxBusinessIncome(psiIncome, soleIncome) {
|
|
11457
|
+
function MyTaxBusinessIncome(psiIncome, soleIncome, taxSummary) {
|
|
11458
11458
|
this.psiIncomeAmount = psiIncome.filterBy('chartAccounts.heading.id', exports.ChartAccountsHeadingListEnum.PSI).amount;
|
|
11459
11459
|
this.psiVoluntaryAgreementAmount = psiIncome
|
|
11460
11460
|
.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.PSI_VOLUNTARY_AGREEMENT)
|
|
@@ -11504,9 +11504,7 @@
|
|
|
11504
11504
|
this.assessibleGovernmentPaymentsAmount = soleIncome
|
|
11505
11505
|
.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.ASSESSIBLE_GOVERNMENT_PAYMENTS)
|
|
11506
11506
|
.amount;
|
|
11507
|
-
this.otherBusinessIncomeAmount =
|
|
11508
|
-
.filterBy('chartAccounts.id', BUSINESS_INCOME_OR_LOSSES_CATEGORIES.otherBusinessIncome)
|
|
11509
|
-
.amount;
|
|
11507
|
+
this.otherBusinessIncomeAmount = taxSummary.sole.items.sumByCategories([exports.TaxReturnCategoryListEnum.OTHER_BUSINESS_INCOME]);
|
|
11510
11508
|
this.nonPrimaryProductionTotalAmount = soleIncome
|
|
11511
11509
|
.filterBy('chartAccounts.category', exports.ChartAccountsCategoryEnum.SOLE_INCOME)
|
|
11512
11510
|
.amount;
|
|
@@ -11739,7 +11737,7 @@
|
|
|
11739
11737
|
this.workRelatedClothingTotalAmount = this.workRelatedClothingExpenses.sumBy('claimAmount');
|
|
11740
11738
|
this.workRelatedSelfEducationType = this.workRelatedSelfEducationExpenses.length ?
|
|
11741
11739
|
exports.DeductionSelfEducationTypeEnum.IMPROVE_SKILLS_FOR_CURRENT_EARNINGS_K : null;
|
|
11742
|
-
this.workRelatedSelfEducationTotalAmount = this.
|
|
11740
|
+
this.workRelatedSelfEducationTotalAmount = this.calculateWorkRelatedSelfEducationTotalAmount();
|
|
11743
11741
|
this.lowValuePoolDeductionTotalAmount = this.depreciations.getByTankType(exports.TankTypeEnum.WORK)
|
|
11744
11742
|
.getLVPDepreciations().sumBy('claimAmount');
|
|
11745
11743
|
this.interestExpensesTotalAmount = this.transactions
|
|
@@ -11765,7 +11763,7 @@
|
|
|
11765
11763
|
.filterBy('chartAccounts.id', DEDUCTION_CATEGORIES.forestryManagedInvestmentSchemesDeductions)
|
|
11766
11764
|
.sumBy('claimAmount');
|
|
11767
11765
|
this.otherDeductionsTotalAmount = this.transactions
|
|
11768
|
-
.filterBy('chartAccounts.id', DEDUCTION_CATEGORIES.otherDeductions)
|
|
11766
|
+
.filterBy('chartAccounts.heading.id', DEDUCTION_CATEGORIES.otherDeductions)
|
|
11769
11767
|
.sumBy('claimAmount');
|
|
11770
11768
|
}
|
|
11771
11769
|
MyTaxDeductions.prototype.getVehicleExpensesTotalAmount = function () {
|
|
@@ -11787,8 +11785,16 @@
|
|
|
11787
11785
|
this.otherWorkRelatedExpensesTotalAmount = -Math.abs(otherIncomeRelatedExpenses.sumBy('claimAmount')) +
|
|
11788
11786
|
this.depreciations.filterBy('chartAccounts.heading.id', exports.ChartAccountsHeadingListEnum.TOOLS_EQUIPMENT).sumBy('claimAmount');
|
|
11789
11787
|
};
|
|
11788
|
+
MyTaxDeductions.prototype.calculateWorkRelatedSelfEducationTotalAmount = function () {
|
|
11789
|
+
return !this.workRelatedSelfEducationExpenses ? 0 :
|
|
11790
|
+
this.workRelatedSelfEducationExpenses.sumBy('claimAmount') - MyTaxDeductions.selfEducationNotDeductibleAmount;
|
|
11791
|
+
};
|
|
11790
11792
|
return MyTaxDeductions;
|
|
11791
11793
|
}());
|
|
11794
|
+
/**
|
|
11795
|
+
* can't claim the first $250 of self-education expenses (Item code D4)
|
|
11796
|
+
*/
|
|
11797
|
+
MyTaxDeductions.selfEducationNotDeductibleAmount = -250;
|
|
11792
11798
|
|
|
11793
11799
|
var MyTaxDividends = /** @class */ (function () {
|
|
11794
11800
|
function MyTaxDividends(transactions) {
|