taxtank-core 0.28.82 → 0.28.83
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 +17 -17
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.js +2 -2
- package/esm2015/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.js +5 -5
- package/esm2015/lib/models/report/my-tax/my-tax-interest/my-tax-interest.js +3 -3
- package/esm2015/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.js +11 -11
- package/fesm2015/taxtank-core.js +17 -17
- package/fesm2015/taxtank-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -11648,7 +11648,7 @@
|
|
|
11648
11648
|
MyTaxCgt.createFrom = function (propertySales, properties, clientCapitalLoss) {
|
|
11649
11649
|
return classTransformer.plainToClass(MyTaxCgt, {
|
|
11650
11650
|
hasCapitalGain: !!propertySales.grossCGT,
|
|
11651
|
-
hasExemption: this.isCGTApplicable(propertySales, properties),
|
|
11651
|
+
hasExemption: !!propertySales.grossCGT && this.isCGTApplicable(propertySales, properties),
|
|
11652
11652
|
netCapitalGain: propertySales.sumBy('netCGT'),
|
|
11653
11653
|
grossCapitalGain: propertySales.grossCGT,
|
|
11654
11654
|
netCapitalLoss: clientCapitalLoss
|
|
@@ -11930,7 +11930,7 @@
|
|
|
11930
11930
|
.groupBy('incomeSource.name');
|
|
11931
11931
|
this.allowanceTotalAmount = this.transactionsByChartAccountsHeadings
|
|
11932
11932
|
.get(exports.ChartAccountsHeadingListEnum.ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES)
|
|
11933
|
-
.sumBy('
|
|
11933
|
+
.sumBy('grossAmount');
|
|
11934
11934
|
this.allowanceTotalTax = this.transactionsByChartAccountsHeadings
|
|
11935
11935
|
.get(exports.ChartAccountsHeadingListEnum.ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES)
|
|
11936
11936
|
.sumBy('tax');
|
|
@@ -11946,13 +11946,13 @@
|
|
|
11946
11946
|
this.lumpBTransactionsTotalTax = this.transactionsByChartAccounts.get(exports.ChartAccountsListEnum.LUMP_SUM_B).sumBy('tax');
|
|
11947
11947
|
this.australianAllowancesAndPaymentsTotalAmount = this.transactionsByChartAccountsHeadings
|
|
11948
11948
|
.get(exports.ChartAccountsHeadingListEnum.AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS)
|
|
11949
|
-
.sumBy('
|
|
11949
|
+
.sumBy('grossAmount');
|
|
11950
11950
|
this.australianAllowancesAndPaymentsTotalTax = this.transactionsByChartAccountsHeadings
|
|
11951
11951
|
.get(exports.ChartAccountsHeadingListEnum.AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS)
|
|
11952
11952
|
.sumBy('tax');
|
|
11953
11953
|
this.australianPensionsAndAllowancesTotalAmount = this.transactionsByChartAccountsHeadings
|
|
11954
11954
|
.get(exports.ChartAccountsHeadingListEnum.AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES)
|
|
11955
|
-
.sumBy('
|
|
11955
|
+
.sumBy('grossAmount');
|
|
11956
11956
|
this.australianPensionsAndAllowancesTotalTax = this.transactionsByChartAccountsHeadings
|
|
11957
11957
|
.get(exports.ChartAccountsHeadingListEnum.AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES)
|
|
11958
11958
|
.sumBy('tax');
|
|
@@ -11974,7 +11974,7 @@
|
|
|
11974
11974
|
exports.ChartAccountsListEnum.CODE_A_SUPERANNUATION_INCOME_STREAMS_DEATH
|
|
11975
11975
|
]).sumBy('untaxedElement');
|
|
11976
11976
|
this.attributablePsiTransactionsTotalAmount = this.transactionsByChartAccounts
|
|
11977
|
-
.get(exports.ChartAccountsListEnum.ATTRIBUTABLE_PSI).sumBy('
|
|
11977
|
+
.get(exports.ChartAccountsListEnum.ATTRIBUTABLE_PSI).sumBy('grossAmount');
|
|
11978
11978
|
this.attributablePsiTransactionsTotalTax = this.transactionsByChartAccounts
|
|
11979
11979
|
.get(exports.ChartAccountsListEnum.ATTRIBUTABLE_PSI).sumBy('tax');
|
|
11980
11980
|
}
|
|
@@ -11994,9 +11994,9 @@
|
|
|
11994
11994
|
function MyTaxInterest(transactions) {
|
|
11995
11995
|
this.interestEarnedTransactions = transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.INTEREST_EARNED);
|
|
11996
11996
|
this.interestPaidTransactions = transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.ATO_INTEREST_PAID);
|
|
11997
|
-
this.interestEarnedTotalAmount = this.interestEarnedTransactions.sumBy('
|
|
11997
|
+
this.interestEarnedTotalAmount = this.interestEarnedTransactions.sumBy('grossAmount');
|
|
11998
11998
|
this.interestEarnedTotalTax = this.interestEarnedTransactions.sumBy('tax');
|
|
11999
|
-
this.interestPaidTotalAmount = this.interestPaidTransactions.sumBy('
|
|
11999
|
+
this.interestPaidTotalAmount = this.interestPaidTransactions.sumBy('grossAmount');
|
|
12000
12000
|
}
|
|
12001
12001
|
return MyTaxInterest;
|
|
12002
12002
|
}());
|
|
@@ -12031,22 +12031,22 @@
|
|
|
12031
12031
|
.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.LUMP_SUM_PAYMENTS_IN_ARREARS);
|
|
12032
12032
|
this.bonusesTotalAmount = this.transactions
|
|
12033
12033
|
.filterBy('chartAccounts.heading.id', exports.ChartAccountsHeadingListEnum.BONUSES)
|
|
12034
|
-
.sumBy('
|
|
12034
|
+
.sumBy('grossAmount');
|
|
12035
12035
|
this.forestryManagedInvestmentSchemesIncomeTotalAmount = this.transactions
|
|
12036
12036
|
.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.FORESTRY_MANAGED_INVESTMENT_SCHEMES_INCOME)
|
|
12037
|
-
.sumBy('
|
|
12037
|
+
.sumBy('grossAmount');
|
|
12038
12038
|
this.lumpSumPaymentsInArrearsTotalTax = this.lumpSumPaymentsInArrearsTransactions.sumBy('tax');
|
|
12039
12039
|
this.specialProfessionIncomeTotalAmount = this.transactions
|
|
12040
|
-
.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.SPECIAL_PROFESSION_INCOME).sumBy('
|
|
12041
|
-
this.category1TotalIncome = this.lumpSumPaymentsInArrearsTransactions.sumBy('
|
|
12042
|
-
this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.JURY_ATTENDANCE_FEES).sumBy('
|
|
12043
|
-
this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.FOREIGN_EXCHANGE_GAINS_NON_BUSINESS).sumBy('
|
|
12044
|
-
this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.ROYALTIES).sumBy('
|
|
12045
|
-
this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.TAXABLE_SCHOLARSHIPS_BURSARIES_GRANTS).sumBy('
|
|
12046
|
-
this.atoInterestPaidTotalAmount = this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.ATO_INTEREST_PAID).sumBy('
|
|
12040
|
+
.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.SPECIAL_PROFESSION_INCOME).sumBy('grossAmount');
|
|
12041
|
+
this.category1TotalIncome = this.lumpSumPaymentsInArrearsTransactions.sumBy('grossAmount') +
|
|
12042
|
+
this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.JURY_ATTENDANCE_FEES).sumBy('grossAmount') +
|
|
12043
|
+
this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.FOREIGN_EXCHANGE_GAINS_NON_BUSINESS).sumBy('grossAmount') +
|
|
12044
|
+
this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.ROYALTIES).sumBy('grossAmount') +
|
|
12045
|
+
this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.TAXABLE_SCHOLARSHIPS_BURSARIES_GRANTS).sumBy('grossAmount');
|
|
12046
|
+
this.atoInterestPaidTotalAmount = this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.ATO_INTEREST_PAID).sumBy('grossAmount');
|
|
12047
12047
|
this.gainOnSaleOfVehiclePreviouslyDepreciatedTotalAmount = this.transactions
|
|
12048
12048
|
.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.GAIN_ON_SALE_OF_VEHICLE_PREVIOUSLY_DEPRECIATED)
|
|
12049
|
-
.sumBy('
|
|
12049
|
+
.sumBy('grossAmount');
|
|
12050
12050
|
}
|
|
12051
12051
|
return MyTaxOtherIncome;
|
|
12052
12052
|
}());
|