taxtank-core 1.0.30 → 1.0.32
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.
@@ -7560,7 +7560,10 @@ class MyTaxBusinessLosses {
|
|
7560
7560
|
*/
|
7561
7561
|
class MyTaxCgt {
|
7562
7562
|
static createFrom(propertySales, holdingSales, clientCapitalLoss) {
|
7563
|
-
const assetSales = new AssetSaleCollection([
|
7563
|
+
const assetSales = new AssetSaleCollection([
|
7564
|
+
...propertySales.filterByFinancialYear('date').toArray(),
|
7565
|
+
...holdingSales.filterBy('isTaxFree', false).toArray()
|
7566
|
+
]);
|
7564
7567
|
const netCapitalGain = assetSales.calculateNetCapitalGain(clientCapitalLoss);
|
7565
7568
|
return plainToClass(MyTaxCgt, {
|
7566
7569
|
hasAssetSales: !!assetSales.length,
|
@@ -7858,6 +7861,8 @@ class MyTaxIncomeStatements {
|
|
7858
7861
|
this.australianPensionsAndAllowancesTotalTax = this.transactionsByChartAccountsHeadings
|
7859
7862
|
.get(ChartAccountsHeadingListEnum.AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES)
|
7860
7863
|
.sumBy('tax');
|
7864
|
+
this.foreignIncome = 0;
|
7865
|
+
this.foreignTaxWithheld = 0;
|
7861
7866
|
this.australianAnnuitiesSuperannuationIncomesTotalTax = this.transactionsByChartAccountsHeadings
|
7862
7867
|
.get(ChartAccountsHeadingTaxDeductibleEnum.ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS)
|
7863
7868
|
.sumBy('tax');
|
@@ -8011,7 +8016,7 @@ class MyTaxRent {
|
|
8011
8016
|
.getPropertyTransactions()
|
8012
8017
|
.getIncomeTransactions()
|
8013
8018
|
.filterBy('chartAccounts.id', [ChartAccountsListEnum.RENTAL_INCOME, ChartAccountsListEnum.OTHER_RENTAL_INCOME])
|
8014
|
-
.
|
8019
|
+
.getGrossClaimAmountWithoutGst();
|
8015
8020
|
this.interestDeductionsAmount = Math.abs(transactions.getInterestTransactions().sumBy('claimAmount'));
|
8016
8021
|
this.capitalWorksDeductionsAmount = Math.abs(depreciations.getCapitalDepreciations().sumBy('claimAmount'));
|
8017
8022
|
this.otherRentalDeductionsAmount = this.calculateOtherRentalDeductionsAmount();
|
@@ -9546,9 +9551,6 @@ class HoldingTradeCollection extends ExportableCollection {
|
|
9546
9551
|
}
|
9547
9552
|
|
9548
9553
|
class HoldingSaleCollection extends ExportableCollection {
|
9549
|
-
filterByTaxFree(holdings, isTaxFree = false) {
|
9550
|
-
return this.filterBy('holding.id', holdings.filterBy('isTaxFree', isTaxFree).getIds());
|
9551
|
-
}
|
9552
9554
|
getExportHeader() {
|
9553
9555
|
return ['Ticker', 'Asset type', 'Date of buy', 'Date of sale', 'Cost base', 'Net sale', 'Ownership', 'Total capital Gain/(Loss)', 'My Capital Gain/(Loss)', 'Exempt or Concession'];
|
9554
9556
|
}
|