taxtank-core 0.21.7 → 0.21.10

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.
Files changed (36) hide show
  1. package/bundles/taxtank-core.umd.js +149 -38
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/collection.js +7 -1
  4. package/esm2015/lib/db/Enums/chart-accounts-heading-list.enum.js +8 -1
  5. package/esm2015/lib/db/Enums/income-source-forecast-trust-type.enum.js +15 -0
  6. package/esm2015/lib/db/Enums/income-source-type-list-other.enum.js +3 -2
  7. package/esm2015/lib/db/Models/incomeSource/income-source-forecast.js +1 -1
  8. package/esm2015/lib/forms/report/my-tax/my-tax-deductions.form.js +9 -3
  9. package/esm2015/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.js +5 -2
  10. package/esm2015/lib/interfaces/income-source-forecast.interface.js +1 -1
  11. package/esm2015/lib/models/income-source/income-source-type.js +3 -3
  12. package/esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.js +9 -2
  13. package/esm2015/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.js +16 -16
  14. package/esm2015/lib/models/report/my-tax/my-tax-estimate/my-tax-estimate.js +3 -3
  15. package/esm2015/lib/models/report/my-tax/my-tax-interest/my-tax-interest.js +2 -2
  16. package/esm2015/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.js +20 -2
  17. package/esm2015/lib/models/report/my-tax/my-tax-rent/my-tax-rent.js +35 -9
  18. package/esm2015/lib/validators/conditional.validator.js +26 -0
  19. package/esm2015/lib/validators/index.js +2 -1
  20. package/esm2015/public-api.js +2 -1
  21. package/fesm2015/taxtank-core.js +150 -40
  22. package/fesm2015/taxtank-core.js.map +1 -1
  23. package/lib/collections/collection.d.ts +2 -0
  24. package/lib/db/Enums/chart-accounts-heading-list.enum.d.ts +7 -0
  25. package/lib/db/Enums/income-source-forecast-trust-type.enum.d.ts +13 -0
  26. package/lib/db/Enums/income-source-type-list-other.enum.d.ts +3 -2
  27. package/lib/db/Models/incomeSource/income-source-forecast.d.ts +3 -1
  28. package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts +1 -1
  29. package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts +1 -1
  30. package/lib/interfaces/income-source-forecast.interface.d.ts +2 -0
  31. package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts +9 -1
  32. package/lib/models/report/my-tax/my-tax-rent/my-tax-rent.d.ts +11 -1
  33. package/lib/validators/conditional.validator.d.ts +2 -0
  34. package/lib/validators/index.d.ts +1 -0
  35. package/package.json +1 -1
  36. package/public-api.d.ts +1 -0
@@ -5,7 +5,7 @@ import { CommonModule } from '@angular/common';
5
5
  import * as i1 from '@angular/common/http';
6
6
  import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS } from '@angular/common/http';
7
7
  import { ReplaySubject, Subject, BehaviorSubject, throwError, combineLatest, of, Observable, forkJoin, from } from 'rxjs';
8
- import { map, filter, catchError, take, switchMap, finalize, mergeMap } from 'rxjs/operators';
8
+ import { map, filter, catchError, take, switchMap, finalize, mergeMap, distinctUntilChanged } from 'rxjs/operators';
9
9
  import { plainToClass, classToPlain, Type, Exclude, Transform, Expose } from 'class-transformer';
10
10
  import { JwtHelperService } from '@auth0/angular-jwt';
11
11
  import { __decorate, __awaiter } from 'tslib';
@@ -2107,6 +2107,12 @@ class Collection {
2107
2107
  removeBy(path, values) {
2108
2108
  return this.filter((item) => !(Array.isArray(values) ? values : [values]).includes(get(item, path)));
2109
2109
  }
2110
+ minBy(path) {
2111
+ return this.items.reduce((prev, current) => (get(prev, path) < get(current, path) ? prev : current));
2112
+ }
2113
+ maxBy(path) {
2114
+ return this.items.reduce((prev, current) => (get(prev, path) > get(current, path) ? prev : current));
2115
+ }
2110
2116
  }
2111
2117
 
2112
2118
  var TaxExemptionMetadataEnum;
@@ -4379,10 +4385,16 @@ var IncomeSourceTypeListOtherEnum;
4379
4385
  (function (IncomeSourceTypeListOtherEnum) {
4380
4386
  IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PSI"] = 6] = "PSI";
4381
4387
  IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
4382
- IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PARTNERSHIPS_AND_TRUSTS"] = 9] = "PARTNERSHIPS_AND_TRUSTS";
4388
+ IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["TRUSTS"] = 9] = "TRUSTS";
4383
4389
  IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["OTHER_INCOME"] = 10] = "OTHER_INCOME";
4390
+ IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PARTNERSHIPS"] = 12] = "PARTNERSHIPS";
4384
4391
  })(IncomeSourceTypeListOtherEnum || (IncomeSourceTypeListOtherEnum = {}));
4385
4392
 
4393
+ var IncomeSourceTypeListSoleEnum;
4394
+ (function (IncomeSourceTypeListSoleEnum) {
4395
+ IncomeSourceTypeListSoleEnum[IncomeSourceTypeListSoleEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
4396
+ })(IncomeSourceTypeListSoleEnum || (IncomeSourceTypeListSoleEnum = {}));
4397
+
4386
4398
  class IncomeSourceType extends IncomeSourceType$1 {
4387
4399
  isBonuses() {
4388
4400
  return this.id === IncomeSourceTypeListWorkEnum.BONUSES;
@@ -4394,8 +4406,7 @@ class IncomeSourceType extends IncomeSourceType$1 {
4394
4406
  return !!IncomeSourceTypeListOtherEnum[this.id];
4395
4407
  }
4396
4408
  isSole() {
4397
- // @TODO use IncomeSourceTypeListSoleEnum when sole tank ready
4398
- return !!IncomeSourceTypeListOtherEnum[this.id];
4409
+ return !!IncomeSourceTypeListSoleEnum[this.id];
4399
4410
  }
4400
4411
  get type() {
4401
4412
  switch (true) {
@@ -5557,6 +5568,13 @@ var ChartAccountsHeadingListEnum;
5557
5568
  ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_RUNNING"] = 17] = "HOME_OFFICE_RUNNING";
5558
5569
  ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TOOLS_EQUIPMENT"] = 18] = "TOOLS_EQUIPMENT";
5559
5570
  ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_OCCUPANCY"] = 19] = "HOME_OFFICE_OCCUPANCY";
5571
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE"] = 20] = "AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE";
5572
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["NEWSPAPER"] = 21] = "NEWSPAPER";
5573
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PRINTING_POSTAGE_STATIONERY"] = 22] = "PRINTING_POSTAGE_STATIONERY";
5574
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SEMINARS_ETC"] = 23] = "SEMINARS_ETC";
5575
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TELEPHONE"] = 24] = "TELEPHONE";
5576
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["UNION_FEES"] = 25] = "UNION_FEES";
5577
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER"] = 26] = "OTHER";
5560
5578
  ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DONATIONS"] = 27] = "DONATIONS";
5561
5579
  ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PSI"] = 30] = "PSI";
5562
5580
  ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BONUSES"] = 34] = "BONUSES";
@@ -5647,10 +5665,20 @@ var DepreciationWriteOffAmountEnum;
5647
5665
  DepreciationWriteOffAmountEnum[DepreciationWriteOffAmountEnum["BORROWING_EXPENSES"] = 100] = "BORROWING_EXPENSES";
5648
5666
  })(DepreciationWriteOffAmountEnum || (DepreciationWriteOffAmountEnum = {}));
5649
5667
 
5650
- var IncomeSourceTypeListSoleEnum;
5651
- (function (IncomeSourceTypeListSoleEnum) {
5652
- IncomeSourceTypeListSoleEnum[IncomeSourceTypeListSoleEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
5653
- })(IncomeSourceTypeListSoleEnum || (IncomeSourceTypeListSoleEnum = {}));
5668
+ var IncomeSourceForecastTrustTypeEnum;
5669
+ (function (IncomeSourceForecastTrustTypeEnum) {
5670
+ IncomeSourceForecastTrustTypeEnum[IncomeSourceForecastTrustTypeEnum["SPECIAL_DISABILITY_TRUST"] = 1] = "SPECIAL_DISABILITY_TRUST";
5671
+ IncomeSourceForecastTrustTypeEnum[IncomeSourceForecastTrustTypeEnum["DECEASED_ESTATE"] = 2] = "DECEASED_ESTATE";
5672
+ IncomeSourceForecastTrustTypeEnum[IncomeSourceForecastTrustTypeEnum["FIXED_TRUST"] = 3] = "FIXED_TRUST";
5673
+ IncomeSourceForecastTrustTypeEnum[IncomeSourceForecastTrustTypeEnum["HYBRID_TRUST"] = 4] = "HYBRID_TRUST";
5674
+ IncomeSourceForecastTrustTypeEnum[IncomeSourceForecastTrustTypeEnum["DISCRETIONARY_SERVICE_TRUST"] = 5] = "DISCRETIONARY_SERVICE_TRUST";
5675
+ IncomeSourceForecastTrustTypeEnum[IncomeSourceForecastTrustTypeEnum["DISCRETIONARY_TRADING_TRUST"] = 6] = "DISCRETIONARY_TRADING_TRUST";
5676
+ IncomeSourceForecastTrustTypeEnum[IncomeSourceForecastTrustTypeEnum["DISCRETIONARY_INVESTMENT_TRUST"] = 7] = "DISCRETIONARY_INVESTMENT_TRUST";
5677
+ IncomeSourceForecastTrustTypeEnum[IncomeSourceForecastTrustTypeEnum["CASH_MANAGEMENT_UNIT_TRUST"] = 8] = "CASH_MANAGEMENT_UNIT_TRUST";
5678
+ IncomeSourceForecastTrustTypeEnum[IncomeSourceForecastTrustTypeEnum["PUBLIC_UNIT_TRUST_LISTED"] = 9] = "PUBLIC_UNIT_TRUST_LISTED";
5679
+ IncomeSourceForecastTrustTypeEnum[IncomeSourceForecastTrustTypeEnum["PUBLIC_UNIT_TRUST_UNLISTED"] = 10] = "PUBLIC_UNIT_TRUST_UNLISTED";
5680
+ IncomeSourceForecastTrustTypeEnum[IncomeSourceForecastTrustTypeEnum["TESTAMENTARY_TRUST"] = 11] = "TESTAMENTARY_TRUST";
5681
+ })(IncomeSourceForecastTrustTypeEnum || (IncomeSourceForecastTrustTypeEnum = {}));
5654
5682
 
5655
5683
  var InviteStatusEnum;
5656
5684
  (function (InviteStatusEnum) {
@@ -7416,7 +7444,14 @@ const DEDUCTION_CATEGORIES = {
7416
7444
  ChartAccountsHeadingListEnum.OTHER_WORK_RELATED_EXPENSES,
7417
7445
  ChartAccountsHeadingListEnum.SUBSCRIPTIONS,
7418
7446
  ChartAccountsHeadingListEnum.HOME_OFFICE_RUNNING,
7419
- ChartAccountsHeadingListEnum.HOME_OFFICE_OCCUPANCY
7447
+ ChartAccountsHeadingListEnum.HOME_OFFICE_OCCUPANCY,
7448
+ ChartAccountsHeadingListEnum.AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE,
7449
+ ChartAccountsHeadingListEnum.NEWSPAPER,
7450
+ ChartAccountsHeadingListEnum.PRINTING_POSTAGE_STATIONERY,
7451
+ ChartAccountsHeadingListEnum.SEMINARS_ETC,
7452
+ ChartAccountsHeadingListEnum.TELEPHONE,
7453
+ ChartAccountsHeadingListEnum.UNION_FEES,
7454
+ ChartAccountsHeadingListEnum.OTHER
7420
7455
  ],
7421
7456
  workRelatedSelfEducationExpenses: [
7422
7457
  ChartAccountsHeadingListEnum.SELF_EDUCATIONAL_EXPENSES
@@ -7492,45 +7527,45 @@ class MyTaxDeductions {
7492
7527
  this.workRelatedClothingExpenses = this.transactions
7493
7528
  .filterBy('chartAccounts.heading.id', DEDUCTION_CATEGORIES.workRelatedClothingExpenses);
7494
7529
  this.personalSuperContributions = this.transactions
7495
- .filterBy('chartAccounts.heading.id', DEDUCTION_CATEGORIES.personalSuperContributions);
7530
+ .filterBy('chartAccounts.id', DEDUCTION_CATEGORIES.personalSuperContributions);
7496
7531
  this.workRelatedSelfEducationExpenses = this.transactions
7497
7532
  .filterBy('chartAccounts.heading.id', DEDUCTION_CATEGORIES.workRelatedSelfEducationExpenses);
7498
7533
  this.vehicleExpensesTotalAmount = this.getVehicleExpensesTotalAmount();
7499
7534
  this.workRelatedTravelExpensesTotalAmount = this.transactions
7500
7535
  .filterBy('chartAccounts.heading.id', ChartAccountsHeadingListEnum.WORK_RELATED_TRAVEL_EXPENSES)
7501
- .sumBy('amount');
7536
+ .sumBy('claimAmount');
7502
7537
  this.workRelatedClothingType = this.workRelatedClothingExpenses.length ? DeductionClothingTypeEnum.COMPULSORY_C : null;
7503
- this.workRelatedClothingTotalAmount = this.workRelatedClothingExpenses.sumBy('amount');
7538
+ this.workRelatedClothingTotalAmount = this.workRelatedClothingExpenses.sumBy('claimAmount');
7504
7539
  this.workRelatedSelfEducationType = this.workRelatedSelfEducationExpenses.length ?
7505
7540
  DeductionSelfEducationTypeEnum.IMPROVE_SKILLS_FOR_CURRENT_EARNINGS_K : null;
7506
- this.workRelatedSelfEducationTotalAmount = this.workRelatedSelfEducationExpenses.sumBy('amount');
7541
+ this.workRelatedSelfEducationTotalAmount = this.workRelatedSelfEducationExpenses.sumBy('claimAmount');
7507
7542
  this.lowValuePoolDeductionTotalAmount = this.depreciations.getByTankType(TankTypeEnum.WORK)
7508
7543
  .getLowValuePoolDepreciations().sumBy('claimAmount');
7509
7544
  this.interestExpensesTotalAmount = this.transactions
7510
7545
  .filterBy('chartAccounts.heading.id', DEDUCTION_CATEGORIES.interestExpenses)
7511
- .sumBy('amount');
7546
+ .sumBy('claimAmount');
7512
7547
  this.dividendExpensesTotalAmount = this.transactions
7513
7548
  .filterBy('chartAccounts.heading.id', DEDUCTION_CATEGORIES.dividendExpenses)
7514
- .sumBy('amount');
7549
+ .sumBy('claimAmount');
7515
7550
  this.donationsTotalAmount = this.transactions
7516
7551
  .filterBy('chartAccounts.heading.id', DEDUCTION_CATEGORIES.donations)
7517
- .sumBy('amount');
7552
+ .sumBy('claimAmount');
7518
7553
  this.interestsChargedByATOTotalAmount = this.transactions
7519
7554
  .filterBy('chartAccounts.id', DEDUCTION_CATEGORIES.interestsChargedByATO)
7520
- .sumBy('amount');
7555
+ .sumBy('claimAmount');
7521
7556
  this.litigationCostsTotalAmount = this.transactions
7522
7557
  .filterBy('chartAccounts.id', DEDUCTION_CATEGORIES.litigationCosts)
7523
- .sumBy('amount');
7558
+ .sumBy('claimAmount');
7524
7559
  this.otherManagingCostsTotalAmount = this.transactions
7525
7560
  .filterBy('chartAccounts.id', DEDUCTION_CATEGORIES.otherManagingCosts)
7526
- .sumBy('amount');
7527
- this.personalSuperContributionsTotalAmount = this.personalSuperContributions.sumBy('amount');
7561
+ .sumBy('claimAmount');
7562
+ this.personalSuperContributionsTotalAmount = this.personalSuperContributions.sumBy('claimAmount');
7528
7563
  this.forestryManagedInvestmentSchemesDeductionsTotalAmount = this.transactions
7529
7564
  .filterBy('chartAccounts.id', DEDUCTION_CATEGORIES.forestryManagedInvestmentSchemesDeductions)
7530
- .sumBy('amount');
7565
+ .sumBy('claimAmount');
7531
7566
  this.otherDeductionsTotalAmount = this.transactions
7532
7567
  .filterBy('chartAccounts.id', DEDUCTION_CATEGORIES.otherDeductions)
7533
- .sumBy('amount');
7568
+ .sumBy('claimAmount');
7534
7569
  }
7535
7570
  getVehicleExpensesTotalAmount() {
7536
7571
  var _a;
@@ -7541,7 +7576,7 @@ class MyTaxDeductions {
7541
7576
  }
7542
7577
  setVehicleClaimData() {
7543
7578
  this.klmsMethodClaimAmount = this.vehicleClaim.getKLMsClaimAmount(this.vehicleClaimRate);
7544
- this.totalExpensesAmount = new VehicleExpenseCollection(this.transactions.getByTankType(this.vehicleClaim.tankType), this.depreciations.getByTankType(this.vehicleClaim.tankType), this.vehicleClaim).sumBy('amount');
7579
+ this.totalExpensesAmount = new VehicleExpenseCollection(this.transactions.getByTankType(this.vehicleClaim.tankType), this.depreciations.getByTankType(this.vehicleClaim.tankType), this.vehicleClaim).sumBy('claimAmount');
7545
7580
  }
7546
7581
  /**
7547
7582
  * Total amount from Other work related expenses and Tools & equipment depreciations
@@ -7549,7 +7584,7 @@ class MyTaxDeductions {
7549
7584
  setOtherWorkRelatedExpensesTotalAmount() {
7550
7585
  const otherIncomeRelatedExpenses = this.transactions
7551
7586
  .filterBy('chartAccounts.heading.id', DEDUCTION_CATEGORIES.otherIncomeRelatedExpenses);
7552
- this.otherWorkRelatedExpensesTotalAmount = Math.abs(otherIncomeRelatedExpenses.sumBy('amount')) +
7587
+ this.otherWorkRelatedExpensesTotalAmount = Math.abs(otherIncomeRelatedExpenses.sumBy('claimAmount')) +
7553
7588
  this.depreciations.filterBy('chartAccounts.heading.id', ChartAccountsHeadingListEnum.TOOLS_EQUIPMENT).sumBy('claimAmount');
7554
7589
  }
7555
7590
  }
@@ -7603,8 +7638,8 @@ class MyTaxEstimate {
7603
7638
  const taxOffsetsReportItem = summarySection.items.findBy('taxReturnCategory.id', TaxReturnCategoryListEnum.TAX_OFFSETS);
7604
7639
  const lowMiddleIncomeTaxOffsets = this.getLowMiddleIncomeTaxOffsets(taxOffsetsReportItem);
7605
7640
  const taxPayable = grossTaxPayableReportItem.items.findBy('taxReturnCategory.id', TaxReturnCategoryListEnum.TAX_ON_TAXABLE_INCOME).amount;
7606
- const medicareLevy = medicareReportItem.details.findBy('name', 'Medicare Levy Surcharge').amount;
7607
- const medicareLevySurcharge = medicareReportItem.details.findBy('name', 'Medicare Levy (based on single)').amount;
7641
+ const medicareLevy = medicareReportItem.details.findBy('name', 'Medicare Levy (based on single)').amount;
7642
+ const medicareLevySurcharge = medicareReportItem.details.findBy('name', 'Medicare Levy Surcharge').amount;
7608
7643
  const taxCredits = summarySection.items.findBy('taxReturnCategory.id', TaxReturnCategoryListEnum.TAX_CREDITS).amount;
7609
7644
  const taxOffsets = this.getTaxOffsets(taxOffsetsReportItem.amount, lowMiddleIncomeTaxOffsets);
7610
7645
  return plainToClass(MyTaxEstimate, {
@@ -7709,7 +7744,7 @@ class MyTaxInterest {
7709
7744
  this.interestPaidTransactions = transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.ATO_INTEREST_PAID);
7710
7745
  this.interestEarnedTotalAmount = this.interestEarnedTransactions.sumBy('amount');
7711
7746
  this.interestEarnedTotalTax = this.interestEarnedTransactions.sumBy('tax');
7712
- this.interestPaidTotalAmount = this.interestEarnedTransactions.sumBy('amount');
7747
+ this.interestPaidTotalAmount = this.interestPaidTransactions.sumBy('amount');
7713
7748
  }
7714
7749
  }
7715
7750
 
@@ -7757,12 +7792,14 @@ class MyTaxOtherIncome {
7757
7792
  }
7758
7793
 
7759
7794
  class MyTaxPartnershipsAndTrusts {
7760
- constructor(transactions) {
7795
+ constructor(transactions, incomeSources) {
7761
7796
  this.transactions = transactions;
7797
+ this.incomeSources = incomeSources;
7762
7798
  this.partnershipIncomes = this.transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.PARTNERSHIP_INCOME);
7763
7799
  this.partnershipExpenses = this.transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.PARTNERSHIP_EXPENSES);
7764
7800
  this.trustsIncomes = this.transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.TRUST_INCOME);
7765
7801
  this.trustsExpenses = this.transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.TRUST_EXPENSES);
7802
+ this.trustType = this.getTrustType();
7766
7803
  this.netNonPrimaryProductionAmount = (this.partnershipIncomes.sumBy('amount') - this.partnershipExpenses.sumBy('amount')) +
7767
7804
  (this.trustsIncomes.sumBy('amount') - this.trustsExpenses.sumBy('amount'));
7768
7805
  this.partnershipsNetIncome = this.partnershipIncomes.sumBy('amount') -
@@ -7782,29 +7819,70 @@ class MyTaxPartnershipsAndTrusts {
7782
7819
  .sumBy('value');
7783
7820
  this.taxOffsetNRASTotalAmount = this.transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.TAX_OFFSETS_N_R_A_S).sumBy('amount');
7784
7821
  }
7822
+ /**
7823
+ * Get Income source forecast trust type, related to trust income with max amount
7824
+ */
7825
+ getTrustType() {
7826
+ const filteredTrustIncomes = this.trustsIncomes
7827
+ .filterBy('incomeSource.id', this.incomeSources
7828
+ .removeBy('actualForecast.trustType', null)
7829
+ .getIds());
7830
+ if (!filteredTrustIncomes.length) {
7831
+ return null;
7832
+ }
7833
+ return this.incomeSources
7834
+ .findBy('id', filteredTrustIncomes.maxBy('amount').incomeSource.id)
7835
+ .actualForecast
7836
+ .trustType;
7837
+ }
7785
7838
  }
7786
7839
 
7787
7840
  class MyTaxRent {
7788
- constructor(transactions, depreciations) {
7841
+ constructor(transactions, depreciations, taxSummary) {
7789
7842
  this.propertyExpenses = transactions.getPropertyTransactions().getExpenseTransactions();
7843
+ this.taxSummaryPropertySection = taxSummary.property;
7790
7844
  this.grossRentAmount = transactions
7845
+ .getPropertyTransactions()
7791
7846
  .getIncomeTransactions()
7792
7847
  .filterBy('chartAccounts.id', ChartAccountsListEnum.RENTAL_INCOME)
7793
- .sumBy('amount') +
7794
- transactions.
7795
- getIncomeTransactions()
7848
+ .sumBy('claimAmount') +
7849
+ transactions
7850
+ .getPropertyTransactions()
7851
+ .getIncomeTransactions()
7796
7852
  .filterBy('chartAccounts.id', ChartAccountsListEnum.OTHER_RENTAL_INCOME)
7797
- .sumBy('amount');
7853
+ .sumBy('claimAmount');
7798
7854
  this.interestDeductionsAmount = Math.abs(transactions.getInterestTransactions().sumBy('amount'));
7799
7855
  this.capitalWorksDeductionsAmount = Math.abs(depreciations.getCapitalDepreciations().sumBy('claimAmount'));
7800
- this.otherRentalDeductionsAmount = Math.abs(depreciations.getAssets().sumBy('claimAmount') +
7801
- depreciations.getBorrowingExpenseDepreciations().sumBy('claimAmount') +
7802
- this.propertyExpenses.sumBy('amount'));
7856
+ this.otherRentalDeductionsAmount = this.calculateOtherRentalDeductionsAmount();
7857
+ /**
7858
+ * @Todo Vik uncomment when task TT-2009 will be implemented
7859
+ */
7860
+ // this.otherRentalDeductionsAmount = depreciations.getByTankType(TankTypeEnum.PROPERTY).getAssets().claimAmount +
7861
+ // depreciations.getByTankType(TankTypeEnum.PROPERTY).getBorrowingExpenseDepreciations().claimAmount +
7862
+ // Math.abs(this.propertyExpenses.sumBy('claimAmount'));
7803
7863
  this.netRent = this.grossRentAmount -
7804
7864
  this.interestDeductionsAmount -
7805
7865
  this.capitalWorksDeductionsAmount -
7806
7866
  this.otherRentalDeductionsAmount;
7807
7867
  }
7868
+ /**
7869
+ * @Todo Vik remove when TT-2009 will be implemented.
7870
+ * We use tax summary data here because claim amount from depreciation is different
7871
+ * from the claim amount that we get from tax summary (depreciation claim amount is not affected by property share,
7872
+ * property contract date, e.t.c.). Details in the TT-2009 task
7873
+ */
7874
+ calculateOtherRentalDeductionsAmount() {
7875
+ const plantAndEquipmentAmount = Math.abs(this.taxSummaryPropertySection.items
7876
+ .findBy('taxReturnCategory.id', TaxReturnCategoryListEnum.DEPRECIATION)
7877
+ .amount);
7878
+ const borrowingExpensesAmount = Math.abs(this.taxSummaryPropertySection.items
7879
+ .findBy('taxReturnCategory.id', TaxReturnCategoryListEnum.BORROWING_EXPENSES)
7880
+ .amount);
7881
+ const otherRentalDeductionsAmount = Math.abs(this.taxSummaryPropertySection.items
7882
+ .findBy('taxReturnCategory.id', TaxReturnCategoryListEnum.OTHER_RENTAL_DEDUCTIONS)
7883
+ .amount);
7884
+ return +Math.floor(plantAndEquipmentAmount + borrowingExpensesAmount + otherRentalDeductionsAmount).toFixed(2);
7885
+ }
7808
7886
  }
7809
7887
 
7810
7888
  /**
@@ -12827,6 +12905,31 @@ function autocompleteValidator() {
12827
12905
  };
12828
12906
  }
12829
12907
 
12908
+ function conditionalValidator(condition, validator) {
12909
+ return function (control) {
12910
+ revalidateOnChanges(control);
12911
+ if (control && control.parent) {
12912
+ if (condition(control.parent)) {
12913
+ return validator(control);
12914
+ }
12915
+ }
12916
+ return null;
12917
+ };
12918
+ }
12919
+ /**
12920
+ * Conditional validator depends on other fields and should be updated on each form value change
12921
+ */
12922
+ function revalidateOnChanges(control) {
12923
+ if (control && control.parent && !control['_revalidateOnChanges']) {
12924
+ control['_revalidateOnChanges'] = true;
12925
+ control.parent.valueChanges.pipe(distinctUntilChanged((a, b) => JSON.stringify(a) === JSON.stringify(b)))
12926
+ .subscribe(() => {
12927
+ control.updateValueAndValidity({ emitEvent: false });
12928
+ });
12929
+ }
12930
+ return;
12931
+ }
12932
+
12830
12933
  /**
12831
12934
  * Regular expressions that are used to check password strength and valid values
12832
12935
  */
@@ -13085,12 +13188,12 @@ class MyTaxDeductionsForm extends AbstractForm {
13085
13188
  value: deductions.workRelatedTravelExpensesTotalAmount,
13086
13189
  disabled: true
13087
13190
  }),
13088
- workRelatedClothingType: new FormControl(deductions.workRelatedClothingType, Validators.required),
13191
+ workRelatedClothingType: new FormControl(deductions.workRelatedClothingType, conditionalValidator(() => !!deductions.workRelatedClothingTotalAmount, Validators.required)),
13089
13192
  workRelatedClothingTotalAmount: new FormControl({
13090
13193
  value: deductions.workRelatedClothingTotalAmount,
13091
13194
  disabled: true
13092
13195
  }),
13093
- workRelatedSelfEducationType: new FormControl(deductions.workRelatedSelfEducationType, Validators.required),
13196
+ workRelatedSelfEducationType: new FormControl(deductions.workRelatedSelfEducationType, conditionalValidator(() => !!deductions.workRelatedSelfEducationTotalAmount, Validators.required)),
13094
13197
  workRelatedSelfEducationTotalAmount: new FormControl({
13095
13198
  value: deductions.workRelatedSelfEducationTotalAmount,
13096
13199
  disabled: true
@@ -13127,6 +13230,11 @@ class MyTaxDeductionsForm extends AbstractForm {
13127
13230
  value: deductions.otherManagingCostsTotalAmount,
13128
13231
  disabled: true
13129
13232
  }),
13233
+ fundName: new FormControl(''),
13234
+ hasFund: new FormControl(false),
13235
+ fundABN: new FormControl(''),
13236
+ fundTFN: new FormControl(''),
13237
+ fundAccountNumber: new FormControl(''),
13130
13238
  personalSuperContributionsTotalAmount: new FormControl({
13131
13239
  value: deductions.personalSuperContributionsTotalAmount,
13132
13240
  disabled: true
@@ -13380,7 +13488,9 @@ class MyTaxPartnershipsAndTrustsForm extends AbstractForm {
13380
13488
  value: partnershipsAndTrusts.trustsNetIncome,
13381
13489
  disabled: true
13382
13490
  }),
13383
- trustType: new FormControl(1),
13491
+ trustType: new FormControl(partnershipsAndTrusts.trustType, conditionalValidator((control) => {
13492
+ return !!partnershipsAndTrusts.trustsIncomes.length;
13493
+ }, Validators.required)),
13384
13494
  partnershipsSmallBusinessNetIncome: new FormControl(partnershipsAndTrusts.partnershipsSmallBusinessNetIncome, Validators.required),
13385
13495
  trustsSmallBusinessNetIncome: new FormControl(partnershipsAndTrusts.trustsSmallBusinessNetIncome, Validators.required),
13386
13496
  taxPaidTotal: new FormControl({
@@ -13418,5 +13528,5 @@ class MyTaxRentForm extends AbstractForm {
13418
13528
  * Generated bundle index. Do not edit.
13419
13529
  */
13420
13530
 
13421
- export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountLoanForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, ChartAccounts, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEFAULT_VEHICLE_EXPENSE, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessOrLosses, MyTaxBusinessOrLossesForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEmployeeShareSchemes, MyTaxEmployeeShareSchemesForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleForecast, SoleForecastService, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, Vehicle, VehicleClaim, VehicleClaimForm, VehicleClaimMethodEnum, VehicleClaimService, VehicleCollection, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WORK_TANK_LOGBOOK_PURPOSE_OPTIONS, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, createDate, displayMatOptions, enumToList, getDocIcon, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
13531
+ export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountLoanForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, ChartAccounts, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEFAULT_VEHICLE_EXPENSE, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessOrLosses, MyTaxBusinessOrLossesForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEmployeeShareSchemes, MyTaxEmployeeShareSchemesForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleForecast, SoleForecastService, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, Vehicle, VehicleClaim, VehicleClaimForm, VehicleClaimMethodEnum, VehicleClaimService, VehicleCollection, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WORK_TANK_LOGBOOK_PURPOSE_OPTIONS, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, displayMatOptions, enumToList, getDocIcon, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
13422
13532
  //# sourceMappingURL=taxtank-core.js.map