taxtank-core 0.28.101 → 0.28.102
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 +10 -2
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.js +11 -3
- package/fesm2015/taxtank-core.js +10 -2
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts +5 -0
- package/package.json +1 -1
|
@@ -11739,7 +11739,7 @@
|
|
|
11739
11739
|
this.workRelatedClothingTotalAmount = this.workRelatedClothingExpenses.sumBy('claimAmount');
|
|
11740
11740
|
this.workRelatedSelfEducationType = this.workRelatedSelfEducationExpenses.length ?
|
|
11741
11741
|
exports.DeductionSelfEducationTypeEnum.IMPROVE_SKILLS_FOR_CURRENT_EARNINGS_K : null;
|
|
11742
|
-
this.workRelatedSelfEducationTotalAmount = this.
|
|
11742
|
+
this.workRelatedSelfEducationTotalAmount = this.calculateWorkRelatedSelfEducationTotalAmount();
|
|
11743
11743
|
this.lowValuePoolDeductionTotalAmount = this.depreciations.getByTankType(exports.TankTypeEnum.WORK)
|
|
11744
11744
|
.getLVPDepreciations().sumBy('claimAmount');
|
|
11745
11745
|
this.interestExpensesTotalAmount = this.transactions
|
|
@@ -11765,7 +11765,7 @@
|
|
|
11765
11765
|
.filterBy('chartAccounts.id', DEDUCTION_CATEGORIES.forestryManagedInvestmentSchemesDeductions)
|
|
11766
11766
|
.sumBy('claimAmount');
|
|
11767
11767
|
this.otherDeductionsTotalAmount = this.transactions
|
|
11768
|
-
.filterBy('chartAccounts.id', DEDUCTION_CATEGORIES.otherDeductions)
|
|
11768
|
+
.filterBy('chartAccounts.heading.id', DEDUCTION_CATEGORIES.otherDeductions)
|
|
11769
11769
|
.sumBy('claimAmount');
|
|
11770
11770
|
}
|
|
11771
11771
|
MyTaxDeductions.prototype.getVehicleExpensesTotalAmount = function () {
|
|
@@ -11787,8 +11787,16 @@
|
|
|
11787
11787
|
this.otherWorkRelatedExpensesTotalAmount = -Math.abs(otherIncomeRelatedExpenses.sumBy('claimAmount')) +
|
|
11788
11788
|
this.depreciations.filterBy('chartAccounts.heading.id', exports.ChartAccountsHeadingListEnum.TOOLS_EQUIPMENT).sumBy('claimAmount');
|
|
11789
11789
|
};
|
|
11790
|
+
MyTaxDeductions.prototype.calculateWorkRelatedSelfEducationTotalAmount = function () {
|
|
11791
|
+
return !this.workRelatedSelfEducationExpenses ? 0 :
|
|
11792
|
+
this.workRelatedSelfEducationExpenses.sumBy('claimAmount') - MyTaxDeductions.selfEducationNotDeductibleAmount;
|
|
11793
|
+
};
|
|
11790
11794
|
return MyTaxDeductions;
|
|
11791
11795
|
}());
|
|
11796
|
+
/**
|
|
11797
|
+
* can't claim the first $250 of self-education expenses (Item code D4)
|
|
11798
|
+
*/
|
|
11799
|
+
MyTaxDeductions.selfEducationNotDeductibleAmount = -250;
|
|
11792
11800
|
|
|
11793
11801
|
var MyTaxDividends = /** @class */ (function () {
|
|
11794
11802
|
function MyTaxDividends(transactions) {
|