taxtank-core 0.21.11 → 0.21.12
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 +11 -14
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/forms/bank/bank-account/bank-account-allocation.form.js +1 -1
- package/esm2015/lib/forms/report/my-tax/my-tax-deductions.form.js +2 -2
- package/esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.js +2 -3
- package/esm2015/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.js +3 -3
- package/esm2015/lib/models/report/my-tax/my-tax-rent/my-tax-rent.js +8 -10
- package/fesm2015/taxtank-core.js +11 -14
- package/fesm2015/taxtank-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -9365,8 +9365,7 @@
|
|
|
9365
9365
|
workRelatedClothingExpenses: [
|
|
9366
9366
|
exports.ChartAccountsHeadingListEnum.COMPULSORY_WORK_UNIFORM,
|
|
9367
9367
|
exports.ChartAccountsHeadingListEnum.PROTECTION_CLOTHING,
|
|
9368
|
-
exports.ChartAccountsHeadingListEnum.OCCUPATIONAL_SPECIFIC_CLOTHING
|
|
9369
|
-
exports.ChartAccountsHeadingListEnum.SELF_EDUCATIONAL_EXPENSES
|
|
9368
|
+
exports.ChartAccountsHeadingListEnum.OCCUPATIONAL_SPECIFIC_CLOTHING
|
|
9370
9369
|
],
|
|
9371
9370
|
otherIncomeRelatedExpenses: [
|
|
9372
9371
|
exports.ChartAccountsHeadingListEnum.OTHER_WORK_RELATED_EXPENSES,
|
|
@@ -9504,7 +9503,7 @@
|
|
|
9504
9503
|
};
|
|
9505
9504
|
MyTaxDeductions.prototype.setVehicleClaimData = function () {
|
|
9506
9505
|
this.klmsMethodClaimAmount = this.vehicleClaim.getKLMsClaimAmount(this.vehicleClaimRate);
|
|
9507
|
-
this.totalExpensesAmount = new VehicleExpenseCollection(this.transactions.getByTankType(this.vehicleClaim.tankType), this.depreciations.getByTankType(this.vehicleClaim.tankType), this.vehicleClaim).sumBy('
|
|
9506
|
+
this.totalExpensesAmount = new VehicleExpenseCollection(this.transactions.getByTankType(this.vehicleClaim.tankType), this.depreciations.getByTankType(this.vehicleClaim.tankType), this.vehicleClaim).sumBy('amount');
|
|
9508
9507
|
};
|
|
9509
9508
|
/**
|
|
9510
9509
|
* Total amount from Other work related expenses and Tools & equipment depreciations
|
|
@@ -9512,7 +9511,7 @@
|
|
|
9512
9511
|
MyTaxDeductions.prototype.setOtherWorkRelatedExpensesTotalAmount = function () {
|
|
9513
9512
|
var otherIncomeRelatedExpenses = this.transactions
|
|
9514
9513
|
.filterBy('chartAccounts.heading.id', DEDUCTION_CATEGORIES.otherIncomeRelatedExpenses);
|
|
9515
|
-
this.otherWorkRelatedExpensesTotalAmount = Math.abs(otherIncomeRelatedExpenses.sumBy('claimAmount')) +
|
|
9514
|
+
this.otherWorkRelatedExpensesTotalAmount = -Math.abs(otherIncomeRelatedExpenses.sumBy('claimAmount')) +
|
|
9516
9515
|
this.depreciations.filterBy('chartAccounts.heading.id', exports.ChartAccountsHeadingListEnum.TOOLS_EQUIPMENT).sumBy('claimAmount');
|
|
9517
9516
|
};
|
|
9518
9517
|
return MyTaxDeductions;
|
|
@@ -9813,15 +9812,13 @@
|
|
|
9813
9812
|
* property contract date, e.t.c.). Details in the TT-2009 task
|
|
9814
9813
|
*/
|
|
9815
9814
|
MyTaxRent.prototype.calculateOtherRentalDeductionsAmount = function () {
|
|
9816
|
-
var
|
|
9817
|
-
|
|
9818
|
-
.amount);
|
|
9819
|
-
var borrowingExpensesAmount = Math.abs(this.taxSummaryPropertySection.items
|
|
9820
|
-
.findBy('taxReturnCategory.id', exports.TaxReturnCategoryListEnum.BORROWING_EXPENSES)
|
|
9821
|
-
|
|
9822
|
-
|
|
9823
|
-
.findBy('taxReturnCategory.id', exports.TaxReturnCategoryListEnum.OTHER_RENTAL_DEDUCTIONS)
|
|
9824
|
-
.amount);
|
|
9815
|
+
var _a, _b, _c;
|
|
9816
|
+
var plantAndEquipmentAmount = Math.abs(((_a = this.taxSummaryPropertySection.items
|
|
9817
|
+
.findBy('taxReturnCategory.id', exports.TaxReturnCategoryListEnum.DEPRECIATION)) === null || _a === void 0 ? void 0 : _a.amount) || 0);
|
|
9818
|
+
var borrowingExpensesAmount = Math.abs(((_b = this.taxSummaryPropertySection.items
|
|
9819
|
+
.findBy('taxReturnCategory.id', exports.TaxReturnCategoryListEnum.BORROWING_EXPENSES)) === null || _b === void 0 ? void 0 : _b.amount) || 0);
|
|
9820
|
+
var otherRentalDeductionsAmount = Math.abs(((_c = this.taxSummaryPropertySection.items
|
|
9821
|
+
.findBy('taxReturnCategory.id', exports.TaxReturnCategoryListEnum.OTHER_RENTAL_DEDUCTIONS)) === null || _c === void 0 ? void 0 : _c.amount) || 0);
|
|
9825
9822
|
return +Math.floor(plantAndEquipmentAmount + borrowingExpensesAmount + otherRentalDeductionsAmount).toFixed(2);
|
|
9826
9823
|
};
|
|
9827
9824
|
return MyTaxRent;
|
|
@@ -15745,7 +15742,7 @@
|
|
|
15745
15742
|
disabled: true
|
|
15746
15743
|
}),
|
|
15747
15744
|
fundName: new forms.FormControl(''),
|
|
15748
|
-
hasFund: new forms.FormControl(
|
|
15745
|
+
hasFund: new forms.FormControl(true),
|
|
15749
15746
|
fundABN: new forms.FormControl(''),
|
|
15750
15747
|
fundTFN: new forms.FormControl(''),
|
|
15751
15748
|
fundAccountNumber: new forms.FormControl(''),
|