taxtank-core 0.28.43 → 0.28.45

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 (47) hide show
  1. package/bundles/taxtank-core.umd.js +555 -57
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/sole/index.js +2 -1
  4. package/esm2015/lib/collections/sole/sole-business-losses.collection.js +28 -0
  5. package/esm2015/lib/collections/transaction/transaction-base.collection.js +9 -3
  6. package/esm2015/lib/db/Enums/chart-accounts-heading-list.enum.js +20 -1
  7. package/esm2015/lib/db/Enums/chart-accounts-list.enum.js +35 -2
  8. package/esm2015/lib/forms/report/my-tax/index.js +5 -2
  9. package/esm2015/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.form.js +33 -0
  10. package/esm2015/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.form.js +81 -0
  11. package/esm2015/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.js +17 -0
  12. package/esm2015/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.form.js +76 -0
  13. package/esm2015/lib/forms/report/my-tax/my-tax-losses.form.js +6 -5
  14. package/esm2015/lib/models/report/my-tax/index.js +6 -2
  15. package/esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.js +27 -0
  16. package/esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/business-type.enum.js +11 -0
  17. package/esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/loss-type.enum.js +16 -0
  18. package/esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.js +15 -0
  19. package/esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.js +77 -0
  20. package/esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.js +70 -0
  21. package/esm2015/lib/models/report/my-tax/my-tax-losses/my-tax-losses.js +8 -5
  22. package/fesm2015/taxtank-core.js +523 -50
  23. package/fesm2015/taxtank-core.js.map +1 -1
  24. package/lib/collections/sole/index.d.ts +1 -0
  25. package/lib/collections/sole/sole-business-losses.collection.d.ts +9 -0
  26. package/lib/collections/transaction/transaction-base.collection.d.ts +5 -2
  27. package/lib/db/Enums/chart-accounts-heading-list.enum.d.ts +20 -1
  28. package/lib/db/Enums/chart-accounts-list.enum.d.ts +35 -2
  29. package/lib/forms/report/my-tax/index.d.ts +4 -1
  30. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.form.d.ts +9 -0
  31. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.form.d.ts +5 -0
  32. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.d.ts +8 -0
  33. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.form.d.ts +5 -0
  34. package/lib/forms/report/my-tax/my-tax-losses.form.d.ts +0 -3
  35. package/lib/models/report/my-tax/index.d.ts +5 -1
  36. package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.d.ts +8 -0
  37. package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-type.enum.d.ts +9 -0
  38. package/lib/models/report/my-tax/my-tax-business-income-or-losses/loss-type.enum.d.ts +14 -0
  39. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.d.ts +16 -0
  40. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.d.ts +29 -0
  41. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.d.ts +30 -0
  42. package/lib/models/report/my-tax/my-tax-losses/my-tax-losses.d.ts +14 -4
  43. package/package.json +1 -1
  44. package/esm2015/lib/forms/report/my-tax/my-tax-business-or-losses.form.js +0 -10
  45. package/esm2015/lib/models/report/my-tax/my-tax-business-or-losses/my-tax-business-or-losses.js +0 -8
  46. package/lib/forms/report/my-tax/my-tax-business-or-losses.form.d.ts +0 -8
  47. package/lib/models/report/my-tax/my-tax-business-or-losses/my-tax-business-or-losses.d.ts +0 -7
@@ -2438,6 +2438,7 @@ var ChartAccountsListEnum;
2438
2438
  ChartAccountsListEnum[ChartAccountsListEnum["ADVISOR_FEES"] = 286] = "ADVISOR_FEES";
2439
2439
  ChartAccountsListEnum[ChartAccountsListEnum["INCOME_TAX_VARIATION"] = 292] = "INCOME_TAX_VARIATION";
2440
2440
  ChartAccountsListEnum[ChartAccountsListEnum["PSI_ABN_NOT_QUOTED"] = 294] = "PSI_ABN_NOT_QUOTED";
2441
+ ChartAccountsListEnum[ChartAccountsListEnum["PSI_LABOUR_HIRE_OR_OTHER"] = 294] = "PSI_LABOUR_HIRE_OR_OTHER";
2441
2442
  ChartAccountsListEnum[ChartAccountsListEnum["PSI_VOLUNTARY_AGREEMENT"] = 296] = "PSI_VOLUNTARY_AGREEMENT";
2442
2443
  ChartAccountsListEnum[ChartAccountsListEnum["RENTAL_INCOME"] = 298] = "RENTAL_INCOME";
2443
2444
  ChartAccountsListEnum[ChartAccountsListEnum["OTHER_RENTAL_INCOME"] = 300] = "OTHER_RENTAL_INCOME";
@@ -2447,7 +2448,6 @@ var ChartAccountsListEnum;
2447
2448
  ChartAccountsListEnum[ChartAccountsListEnum["TRANSFER"] = 615] = "TRANSFER";
2448
2449
  ChartAccountsListEnum[ChartAccountsListEnum["BUILDING_AT_COST"] = 304] = "BUILDING_AT_COST";
2449
2450
  ChartAccountsListEnum[ChartAccountsListEnum["KLMS_TRAVELLED_FOR_WORK"] = 24] = "KLMS_TRAVELLED_FOR_WORK";
2450
- ChartAccountsListEnum[ChartAccountsListEnum["KLMS_TRAVELLED"] = 683] = "KLMS_TRAVELLED";
2451
2451
  ChartAccountsListEnum[ChartAccountsListEnum["DIRECTOR_FEES"] = 6] = "DIRECTOR_FEES";
2452
2452
  ChartAccountsListEnum[ChartAccountsListEnum["SALARY_OR_WAGES"] = 2] = "SALARY_OR_WAGES";
2453
2453
  ChartAccountsListEnum[ChartAccountsListEnum["VEHICLES"] = 25] = "VEHICLES";
@@ -2481,9 +2481,42 @@ var ChartAccountsListEnum;
2481
2481
  ChartAccountsListEnum[ChartAccountsListEnum["ASSESSABLE_AMOUNT_CAPPED_DEFINED_BENEFIT"] = 639] = "ASSESSABLE_AMOUNT_CAPPED_DEFINED_BENEFIT";
2482
2482
  ChartAccountsListEnum[ChartAccountsListEnum["CODE_B_SUPERANNUATION_INCOME_STREAMS_DISABILITY"] = 558] = "CODE_B_SUPERANNUATION_INCOME_STREAMS_DISABILITY";
2483
2483
  ChartAccountsListEnum[ChartAccountsListEnum["CODE_A_SUPERANNUATION_INCOME_STREAMS_DEATH"] = 640] = "CODE_A_SUPERANNUATION_INCOME_STREAMS_DEATH";
2484
+ ChartAccountsListEnum[ChartAccountsListEnum["SALES"] = 665] = "SALES";
2485
+ ChartAccountsListEnum[ChartAccountsListEnum["LABOUR"] = 666] = "LABOUR";
2486
+ ChartAccountsListEnum[ChartAccountsListEnum["UBER_INCOME"] = 667] = "UBER_INCOME";
2487
+ ChartAccountsListEnum[ChartAccountsListEnum["COMMISSION"] = 668] = "COMMISSION";
2488
+ ChartAccountsListEnum[ChartAccountsListEnum["PARTS_CONSUMABLES"] = 669] = "PARTS_CONSUMABLES";
2489
+ ChartAccountsListEnum[ChartAccountsListEnum["OTHER_BUSINESS_INCOME"] = 670] = "OTHER_BUSINESS_INCOME";
2490
+ ChartAccountsListEnum[ChartAccountsListEnum["ASSESSIBLE_GOVERNMENT_PAYMENTS"] = 671] = "ASSESSIBLE_GOVERNMENT_PAYMENTS";
2491
+ ChartAccountsListEnum[ChartAccountsListEnum["GROSS_PAYMENTS_NO_ABN_GIVEN"] = 672] = "GROSS_PAYMENTS_NO_ABN_GIVEN";
2492
+ ChartAccountsListEnum[ChartAccountsListEnum["GROSS_PAYMENTS_VOLUNTARY_AGREEMENT"] = 673] = "GROSS_PAYMENTS_VOLUNTARY_AGREEMENT";
2493
+ ChartAccountsListEnum[ChartAccountsListEnum["GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS"] = 674] = "GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS";
2494
+ ChartAccountsListEnum[ChartAccountsListEnum["PURCHASES_STOCK_INVENTORY"] = 675] = "PURCHASES_STOCK_INVENTORY";
2495
+ ChartAccountsListEnum[ChartAccountsListEnum["CONTRACTORS_AND_COMMISSION"] = 676] = "CONTRACTORS_AND_COMMISSION";
2496
+ ChartAccountsListEnum[ChartAccountsListEnum["SUPERANNUATION"] = 677] = "SUPERANNUATION";
2497
+ ChartAccountsListEnum[ChartAccountsListEnum["BAD_DEBT"] = 678] = "BAD_DEBT";
2498
+ ChartAccountsListEnum[ChartAccountsListEnum["LEASE_EXPENSES_COMMERCIAL"] = 679] = "LEASE_EXPENSES_COMMERCIAL";
2499
+ ChartAccountsListEnum[ChartAccountsListEnum["RENT_EXPENSES_COMMERCIAL_PREMISES"] = 680] = "RENT_EXPENSES_COMMERCIAL_PREMISES";
2500
+ ChartAccountsListEnum[ChartAccountsListEnum["INTEREST_EXPENSES_AUSTRALIA"] = 681] = "INTEREST_EXPENSES_AUSTRALIA";
2501
+ ChartAccountsListEnum[ChartAccountsListEnum["INTEREST_EXPENSES_OVERSEAS"] = 682] = "INTEREST_EXPENSES_OVERSEAS";
2502
+ ChartAccountsListEnum[ChartAccountsListEnum["KLMS_TRAVELLED"] = 683] = "KLMS_TRAVELLED";
2503
+ ChartAccountsListEnum[ChartAccountsListEnum["FUEL_OIL"] = 684] = "FUEL_OIL";
2504
+ ChartAccountsListEnum[ChartAccountsListEnum["SERVICES_MAINTENANCE"] = 685] = "SERVICES_MAINTENANCE";
2505
+ ChartAccountsListEnum[ChartAccountsListEnum["REGISTRATION"] = 686] = "REGISTRATION";
2506
+ ChartAccountsListEnum[ChartAccountsListEnum["LEASE_INTEREST_PAYMENTS"] = 687] = "LEASE_INTEREST_PAYMENTS";
2507
+ ChartAccountsListEnum[ChartAccountsListEnum["SOLE_VEHICLE_LOAN_INTEREST"] = 688] = "SOLE_VEHICLE_LOAN_INTEREST";
2508
+ ChartAccountsListEnum[ChartAccountsListEnum["INSURANCE"] = 689] = "INSURANCE";
2509
+ ChartAccountsListEnum[ChartAccountsListEnum["TYRES"] = 690] = "TYRES";
2510
+ ChartAccountsListEnum[ChartAccountsListEnum["BATTERIES"] = 691] = "BATTERIES";
2511
+ ChartAccountsListEnum[ChartAccountsListEnum["CAR_WASH"] = 692] = "CAR_WASH";
2512
+ ChartAccountsListEnum[ChartAccountsListEnum["PARKING_TOLLS"] = 693] = "PARKING_TOLLS";
2513
+ ChartAccountsListEnum[ChartAccountsListEnum["OTHER_SOLE_EXPENSES"] = 694] = "OTHER_SOLE_EXPENSES";
2484
2514
  ChartAccountsListEnum[ChartAccountsListEnum["PERSONAL_EXPENSES"] = 628] = "PERSONAL_EXPENSES";
2485
2515
  ChartAccountsListEnum[ChartAccountsListEnum["PERSONAL_INCOME"] = 630] = "PERSONAL_INCOME";
2486
2516
  ChartAccountsListEnum[ChartAccountsListEnum["PLATFORM_FEES"] = 857] = "PLATFORM_FEES";
2517
+ ChartAccountsListEnum[ChartAccountsListEnum["PSI_OTHER"] = 858] = "PSI_OTHER";
2518
+ ChartAccountsListEnum[ChartAccountsListEnum["PSI_DEDUCTION_ASSOCIATES"] = 859] = "PSI_DEDUCTION_ASSOCIATES";
2519
+ ChartAccountsListEnum[ChartAccountsListEnum["PSI_DEDUCTION_OTHER"] = 860] = "PSI_DEDUCTION_OTHER";
2487
2520
  })(ChartAccountsListEnum || (ChartAccountsListEnum = {}));
2488
2521
 
2489
2522
  var ChartAccountsCategoryEnum;
@@ -5807,6 +5840,64 @@ class VehicleLogbookCollection extends Collection {
5807
5840
  }
5808
5841
  }
5809
5842
 
5843
+ /**
5844
+ * List of objects grouped by passed property
5845
+ */
5846
+ class Dictionary {
5847
+ constructor(items, path = 'id') {
5848
+ this.items = {};
5849
+ if (!items.length) {
5850
+ return;
5851
+ }
5852
+ // Do nothing if provided path was not found in the 1st item
5853
+ if (!hasIn(items[0], path.split('.')[0])) {
5854
+ return;
5855
+ }
5856
+ this.groupItems(items, path);
5857
+ }
5858
+ add(key, value) {
5859
+ this.items[key] = value;
5860
+ }
5861
+ get(key) {
5862
+ return this.items[key] !== undefined ? this.items[key] : null;
5863
+ }
5864
+ groupItems(items, path) {
5865
+ items.forEach((item) => {
5866
+ let key = get(item, path);
5867
+ // if object does not have property for grouping it will be grouped as 'other'
5868
+ if (key === undefined) {
5869
+ key = 'other';
5870
+ }
5871
+ this.items[key] = item;
5872
+ });
5873
+ }
5874
+ }
5875
+
5876
+ class SoleBusinessLossesCollection extends Collection {
5877
+ /**
5878
+ * Calculate business losses applied to the current year
5879
+ */
5880
+ calculateBusinessLossApplied(transactions) {
5881
+ const transactionsByBusinessIds = new CollectionDictionary(transactions, 'business.id');
5882
+ // Dictionary with pairs key = business id, value = business claim amount
5883
+ const claimAmountsByBusinessId = new Dictionary([]);
5884
+ transactionsByBusinessIds.keys.forEach((businessId) => {
5885
+ const businessClaimAmount = transactionsByBusinessIds
5886
+ .get(businessId)
5887
+ .getClaimAmountByBusinessId(+businessId);
5888
+ // only businesses with positive income are included in the calculation
5889
+ if (businessClaimAmount > 0) {
5890
+ claimAmountsByBusinessId.add(businessId, businessClaimAmount);
5891
+ }
5892
+ });
5893
+ return Object.keys(claimAmountsByBusinessId.items).reduce((sum, businessId) => {
5894
+ var _a;
5895
+ const lossOpenBalance = ((_a = this.findBy('business.id', +businessId)) === null || _a === void 0 ? void 0 : _a.openBalance) || 0;
5896
+ return sum + Math.min(lossOpenBalance, claimAmountsByBusinessId.get(businessId));
5897
+ }, 0);
5898
+ }
5899
+ }
5900
+
5810
5901
  class SoleInvoiceCollection extends Collection {
5811
5902
  getOverdue() {
5812
5903
  return this.filter((invoice) => invoice.isOverdue());
@@ -6228,8 +6319,14 @@ class TransactionAllocationCollection extends Collection {
6228
6319
  }
6229
6320
 
6230
6321
  class TransactionBaseCollection extends Collection {
6231
- getClaimAmountByBusiness(business) {
6232
- return +this.filterBy('business.id', business.id).items.map((transaction) => transaction instanceof Depreciation ? -transaction.claimAmount : transaction['claimAmount']).reduce((sum, claimAmount) => sum + claimAmount, 0).toFixed(2);
6322
+ getClaimAmountByBusinessId(businessId) {
6323
+ return +this.filterBy('business.id', businessId).items.map((transaction) => transaction instanceof Depreciation ? -transaction.claimAmount : transaction['claimAmount']).reduce((sum, claimAmount) => sum + claimAmount, 0).toFixed(2);
6324
+ }
6325
+ /**
6326
+ * Get business related transactions
6327
+ */
6328
+ getWithBusiness() {
6329
+ return this.filter((transaction) => !!transaction.business);
6233
6330
  }
6234
6331
  }
6235
6332
 
@@ -6401,39 +6498,6 @@ class MessageCollection extends Collection {
6401
6498
  }
6402
6499
  }
6403
6500
 
6404
- /**
6405
- * List of objects grouped by passed property
6406
- */
6407
- class Dictionary {
6408
- constructor(items, path = 'id') {
6409
- this.items = {};
6410
- if (!items.length) {
6411
- return;
6412
- }
6413
- // Do nothing if provided path was not found in the 1st item
6414
- if (!hasIn(items[0], path.split('.')[0])) {
6415
- return;
6416
- }
6417
- this.groupItems(items, path);
6418
- }
6419
- add(key, value) {
6420
- this.items[key] = value;
6421
- }
6422
- get(key) {
6423
- return this.items[key] !== undefined ? this.items[key] : null;
6424
- }
6425
- groupItems(items, path) {
6426
- items.forEach((item) => {
6427
- let key = get(item, path);
6428
- // if object does not have property for grouping it will be grouped as 'other'
6429
- if (key === undefined) {
6430
- key = 'other';
6431
- }
6432
- this.items[key] = item;
6433
- });
6434
- }
6435
- }
6436
-
6437
6501
  var ChatStatusEnum;
6438
6502
  (function (ChatStatusEnum) {
6439
6503
  ChatStatusEnum[ChatStatusEnum["ACTIVE"] = 1] = "ACTIVE";
@@ -7374,6 +7438,8 @@ var ChartAccountsHeadingListEnum;
7374
7438
  ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES"] = 2] = "ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES";
7375
7439
  ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS"] = 4] = "AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS";
7376
7440
  ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES"] = 5] = "AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES";
7441
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_CAR_EXPENSES"] = 8] = "WORK_RELATED_CAR_EXPENSES";
7442
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_VEHICLES"] = 9] = "DEPRECIATION_VEHICLES";
7377
7443
  ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_TRAVEL_EXPENSES"] = 10] = "WORK_RELATED_TRAVEL_EXPENSES";
7378
7444
  ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["COMPULSORY_WORK_UNIFORM"] = 11] = "COMPULSORY_WORK_UNIFORM";
7379
7445
  ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PROTECTION_CLOTHING"] = 12] = "PROTECTION_CLOTHING";
@@ -7398,6 +7464,23 @@ var ChartAccountsHeadingListEnum;
7398
7464
  ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ETP"] = 39] = "ETP";
7399
7465
  ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_DEDUCTIONS"] = 47] = "INTEREST_DEDUCTIONS";
7400
7466
  ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DIVIDEND_DEDUCTIONS"] = 48] = "DIVIDEND_DEDUCTIONS";
7467
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PURCHASES_STOCK_INVENTORY"] = 52] = "PURCHASES_STOCK_INVENTORY";
7468
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["CONTRACTORS_COMMISSION"] = 53] = "CONTRACTORS_COMMISSION";
7469
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUPERANNUATION"] = 54] = "SUPERANNUATION";
7470
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BAD_DEBT"] = 55] = "BAD_DEBT";
7471
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_EXPENSES"] = 56] = "LEASE_EXPENSES";
7472
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["RENT_EXPENSES"] = 57] = "RENT_EXPENSES";
7473
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_AUSTRALIA"] = 58] = "INTEREST_EXPENSES_AUSTRALIA";
7474
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_OVERSEAS"] = 59] = "INTEREST_EXPENSES_OVERSEAS";
7475
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["KLMS"] = 60] = "KLMS";
7476
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["FUEL_OIL"] = 61] = "FUEL_OIL";
7477
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SERVICES_MAINTENANCE"] = 62] = "SERVICES_MAINTENANCE";
7478
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["REGISTRATION"] = 63] = "REGISTRATION";
7479
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_INTEREST_PAYMENTS"] = 64] = "LEASE_INTEREST_PAYMENTS";
7480
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INSURANCE"] = 65] = "INSURANCE";
7481
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TYRES_BATTERIES"] = 66] = "TYRES_BATTERIES";
7482
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_EXPENSES"] = 67] = "OTHER_EXPENSES";
7483
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_EXPENSES"] = 68] = "DEPRECIATION_EXPENSES";
7401
7484
  })(ChartAccountsHeadingListEnum || (ChartAccountsHeadingListEnum = {}));
7402
7485
 
7403
7486
  var ChartAccountsHeadingTaxableEnum;
@@ -8829,10 +8912,209 @@ class TaxExemptionMetadata extends TaxExemptionMetadata$1 {
8829
8912
  }
8830
8913
 
8831
8914
  /**
8832
- * @Todo waiting for the Sole tank implementation
8915
+ * Enum with type of business for My Tax report
8916
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form
8917
+ * ("Business income or losses" section, "F. Type of business" field)
8833
8918
  */
8834
- class MyTaxBusinessOrLosses {
8835
- constructor(transactions) {
8919
+ var BusinessTypeEnum;
8920
+ (function (BusinessTypeEnum) {
8921
+ BusinessTypeEnum[BusinessTypeEnum["PARTNERSHIP"] = 0] = "PARTNERSHIP";
8922
+ BusinessTypeEnum[BusinessTypeEnum["SOLE_TRADER"] = 1] = "SOLE_TRADER";
8923
+ })(BusinessTypeEnum || (BusinessTypeEnum = {}));
8924
+
8925
+ /**
8926
+ * Enum with business loss types
8927
+ * Values are related to SoleBusinessLossOffsetRule ids
8928
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form
8929
+ * ("Business income or losses" section, "G. Type of loss" field)
8930
+ */
8931
+ var LossTypeEnum;
8932
+ (function (LossTypeEnum) {
8933
+ LossTypeEnum[LossTypeEnum["ASSESSABLE_INCOME_TEST"] = 2] = "ASSESSABLE_INCOME_TEST";
8934
+ LossTypeEnum[LossTypeEnum["PROFIT_TEST"] = 3] = "PROFIT_TEST";
8935
+ LossTypeEnum[LossTypeEnum["REAL_PROPERTY_TEST"] = 4] = "REAL_PROPERTY_TEST";
8936
+ LossTypeEnum[LossTypeEnum["OTHER_ASSETS_TEST"] = 5] = "OTHER_ASSETS_TEST";
8937
+ LossTypeEnum[LossTypeEnum["COMMISSIONERS_DISCRETION"] = 8] = "COMMISSIONERS_DISCRETION";
8938
+ LossTypeEnum[LossTypeEnum["PRIMARY_PRODUCTION_AND_ARTS_BUSINESS"] = 7] = "PRIMARY_PRODUCTION_AND_ARTS_BUSINESS";
8939
+ })(LossTypeEnum || (LossTypeEnum = {}));
8940
+
8941
+ /**
8942
+ * Main information of Sole businesses
8943
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form (section "Business income or losses")
8944
+ */
8945
+ class MyTaxBusinessDetails {
8946
+ constructor(vehicleClaimDetails, businesses, soleDetails, user) {
8947
+ var _a;
8948
+ this.businessActivities = uniqBy(businesses.mapBy('activity'), 'id');
8949
+ this.businessABN = soleDetails === null || soleDetails === void 0 ? void 0 : soleDetails.abn;
8950
+ this.businessAddress = (_a = user.address) === null || _a === void 0 ? void 0 : _a.name;
8951
+ this.vehicleClaimDetails = vehicleClaimDetails;
8952
+ }
8953
+ }
8954
+
8955
+ /**
8956
+ * Const with the categories for my-tax 'Business income or losses' report.
8957
+ * Grouped by ChartAccountsHeadingListEnum / ChartAccountsListEnum based on rules from documentation
8958
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form (section "Business income or losses")
8959
+ */
8960
+ const BUSINESS_INCOME_OR_LOSSES_CATEGORIES = {
8961
+ psiIncomes: [
8962
+ ChartAccountsListEnum.PSI_VOLUNTARY_AGREEMENT,
8963
+ ChartAccountsListEnum.PSI_ABN_NOT_QUOTED,
8964
+ ChartAccountsListEnum.PSI_LABOUR_HIRE_OR_OTHER,
8965
+ ChartAccountsListEnum.PSI_OTHER,
8966
+ ],
8967
+ psiDeductions: [
8968
+ ChartAccountsListEnum.PSI_DEDUCTION_ASSOCIATES,
8969
+ ChartAccountsListEnum.PSI_DEDUCTION_OTHER
8970
+ ],
8971
+ otherBusinessIncome: [
8972
+ ChartAccountsListEnum.SALES,
8973
+ ChartAccountsListEnum.LABOUR,
8974
+ ChartAccountsListEnum.UBER_INCOME,
8975
+ ChartAccountsListEnum.COMMISSION,
8976
+ ChartAccountsListEnum.PARTS_CONSUMABLES,
8977
+ ChartAccountsListEnum.OTHER_BUSINESS_INCOME
8978
+ ]
8979
+ };
8980
+
8981
+ /**
8982
+ * Sole business information related to income transactions
8983
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form (section "Business income or losses")
8984
+ */
8985
+ class MyTaxBusinessIncome {
8986
+ constructor(psiIncome, soleIncome) {
8987
+ this.psiIncomeAmount = psiIncome.filterBy('chartAccounts.heading.id', ChartAccountsHeadingListEnum.PSI).amount;
8988
+ this.psiVoluntaryAgreementAmount = psiIncome
8989
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_VOLUNTARY_AGREEMENT)
8990
+ .amount;
8991
+ this.psiABNNotQuotedAmount = psiIncome
8992
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_ABN_NOT_QUOTED)
8993
+ .amount;
8994
+ this.psiLabourHireOrOtherAmount = psiIncome
8995
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_LABOUR_HIRE_OR_OTHER)
8996
+ .amount;
8997
+ this.psiOtherAmount = psiIncome
8998
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_OTHER)
8999
+ .amount;
9000
+ this.psiDeductionAssociatesAmount = psiIncome
9001
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_DEDUCTION_ASSOCIATES)
9002
+ .amount;
9003
+ this.psiDeductionOtherAmount = psiIncome
9004
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_DEDUCTION_OTHER)
9005
+ .amount;
9006
+ this.netPSIAmount = psiIncome
9007
+ .filterBy('chartAccounts.id', BUSINESS_INCOME_OR_LOSSES_CATEGORIES.psiIncomes)
9008
+ .amount -
9009
+ psiIncome
9010
+ .filterBy('chartAccounts.id', BUSINESS_INCOME_OR_LOSSES_CATEGORIES.psiDeductions)
9011
+ .amount;
9012
+ this.psiVoluntaryAgreementTax = psiIncome
9013
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_VOLUNTARY_AGREEMENT)
9014
+ .sumBy('tax');
9015
+ this.psiABNNotQuotedTax = psiIncome
9016
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_ABN_NOT_QUOTED)
9017
+ .sumBy('tax');
9018
+ this.psiLabourHireOrOtherTax = psiIncome
9019
+ .filterBy('chartAccounts.id', [ChartAccountsListEnum.PSI_LABOUR_HIRE_OR_OTHER, ChartAccountsListEnum.PSI_OTHER])
9020
+ .sumBy('tax');
9021
+ this.netPSITax = psiIncome
9022
+ .filterBy('chartAccounts.id', BUSINESS_INCOME_OR_LOSSES_CATEGORIES.psiIncomes)
9023
+ .sumBy('tax');
9024
+ this.grossPaymentsNoAbsGivenAmount = soleIncome
9025
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.GROSS_PAYMENTS_NO_ABN_GIVEN)
9026
+ .amount;
9027
+ this.grossPaymentsVoluntaryAgreementAmount = soleIncome
9028
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.GROSS_PAYMENTS_VOLUNTARY_AGREEMENT)
9029
+ .amount;
9030
+ this.grossPaymentsLabourHireAmount = soleIncome
9031
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS)
9032
+ .amount;
9033
+ this.assessibleGovernmentPaymentsAmount = soleIncome
9034
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.ASSESSIBLE_GOVERNMENT_PAYMENTS)
9035
+ .amount;
9036
+ this.otherBusinessIncomeAmount = soleIncome
9037
+ .filterBy('chartAccounts.id', BUSINESS_INCOME_OR_LOSSES_CATEGORIES.otherBusinessIncome)
9038
+ .amount;
9039
+ this.nonPrimaryProductionTotalAmount = soleIncome
9040
+ .filterBy('chartAccounts.category', ChartAccountsCategoryEnum.SOLE_INCOME)
9041
+ .amount;
9042
+ this.grossPaymentsNoAbsGivenTax = soleIncome
9043
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.GROSS_PAYMENTS_NO_ABN_GIVEN)
9044
+ .sumBy('tax');
9045
+ this.grossPaymentsVoluntaryAgreementTax = soleIncome
9046
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.GROSS_PAYMENTS_VOLUNTARY_AGREEMENT)
9047
+ .sumBy('tax');
9048
+ this.grossPaymentsLabourHireTax = soleIncome
9049
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS)
9050
+ .sumBy('tax');
9051
+ }
9052
+ }
9053
+
9054
+ /**
9055
+ * Sole business information related to expense transactions (losses)
9056
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form (section "Business income or losses")
9057
+ */
9058
+ class MyTaxBusinessLosses {
9059
+ constructor(transactions, depreciations, businessLosses, currentLoss) {
9060
+ this.currentLoss = currentLoss;
9061
+ this.purchasesAndOtherCostsAmount = Math.abs(transactions.getExpenseTransactions()
9062
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.PURCHASES_STOCK_INVENTORY)
9063
+ .sumBy('claimAmount'));
9064
+ this.contractorsAndCommissionAmount = Math.abs(transactions.getExpenseTransactions()
9065
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.CONTRACTORS_AND_COMMISSION)
9066
+ .sumBy('claimAmount'));
9067
+ this.superannuationAmount = Math.abs(transactions.getExpenseTransactions()
9068
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.SUPERANNUATION)
9069
+ .sumBy('claimAmount'));
9070
+ this.badDebtAmount = Math.abs(transactions.getExpenseTransactions()
9071
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.BAD_DEBT)
9072
+ .sumBy('claimAmount'));
9073
+ this.leaseExpensesCommercialAmount = Math.abs(transactions.getExpenseTransactions()
9074
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.LEASE_EXPENSES_COMMERCIAL)
9075
+ .sumBy('claimAmount'));
9076
+ this.rentExpensesCommercialPremisesAmount = Math.abs(transactions.getExpenseTransactions()
9077
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.RENT_EXPENSES_COMMERCIAL_PREMISES)
9078
+ .sumBy('claimAmount'));
9079
+ this.interestExpensesAustraliaAmount = Math.abs(transactions.getExpenseTransactions()
9080
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.INTEREST_EXPENSES_AUSTRALIA)
9081
+ .sumBy('claimAmount'));
9082
+ this.interestExpensesOverseasAmount = Math.abs(transactions.getExpenseTransactions()
9083
+ .filterBy('chartAccounts.id', ChartAccountsListEnum.INTEREST_EXPENSES_OVERSEAS)
9084
+ .sumBy('claimAmount'));
9085
+ this.kmsTravelledExpensesAmount = Math.abs(transactions
9086
+ .filterBy('chartAccounts.heading.id', [ChartAccountsHeadingListEnum.WORK_RELATED_CAR_EXPENSES, ChartAccountsHeadingListEnum.DEPRECIATION_VEHICLES])
9087
+ .sumBy('claimAmount'));
9088
+ this.otherExpensesAmount = Math.abs(transactions
9089
+ .filterBy('chartAccounts.heading.id', ChartAccountsHeadingListEnum.OTHER_EXPENSES)
9090
+ .sumBy('claimAmount'));
9091
+ this.totalNonPrimaryProductionExpensesAmount = Math.abs(transactions
9092
+ .filterBy('chartAccounts.category', [ChartAccountsCategoryEnum.SOLE_EXPENSE, ChartAccountsCategoryEnum.SOLE_DEPRECIATION])
9093
+ .sumBy('claimAmount'));
9094
+ // depreciations
9095
+ this.depreciationExpensesAmount = depreciations
9096
+ .filterBy('chartAccounts.heading.id', ChartAccountsHeadingListEnum.DEPRECIATION_EXPENSES)
9097
+ .sumBy('claimAmount');
9098
+ this.deductionsForCertainAssetsAmount = depreciations
9099
+ .getWrittenOffDepreciations()
9100
+ .sumBy('claimAmount');
9101
+ this.deductionsForGeneralSmallBusinessPoolAmount = depreciations
9102
+ .getSBPDepreciations()
9103
+ .sumBy('claimAmount');
9104
+ this.currentYearNetNonPrimaryIncomeOrLossesAmount = transactions.getIncomeTransactions()
9105
+ .filterBy('chartAccounts.category', ChartAccountsCategoryEnum.SOLE_INCOME)
9106
+ .amount -
9107
+ Math.abs(transactions
9108
+ .filterBy('chartAccounts.category', [ChartAccountsCategoryEnum.SOLE_EXPENSE, ChartAccountsCategoryEnum.SOLE_DEPRECIATION])
9109
+ .sumBy('claimAmount'));
9110
+ this.priorYearsNonPrimaryLossesAmount = this.calculatePriorYearsOpenBalance(businessLosses);
9111
+ this.netNonPrimaryIncomeOrLossesAmount = transactions.getIncomeTransactions()
9112
+ .filterBy('chartAccounts.category', ChartAccountsCategoryEnum.SOLE_INCOME)
9113
+ .amount -
9114
+ this.priorYearsNonPrimaryLossesAmount;
9115
+ }
9116
+ calculatePriorYearsOpenBalance(businessLosses) {
9117
+ return businessLosses ? businessLosses.sumBy('openBalance') : 0;
8836
9118
  }
8837
9119
  }
8838
9120
 
@@ -9193,11 +9475,15 @@ class MyTaxInterest {
9193
9475
  }
9194
9476
 
9195
9477
  /**
9196
- * @Todo waiting for Sole tank implementation
9478
+ * Sole business losses report
9479
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form ("Losses" section)
9197
9480
  */
9198
9481
  class MyTaxLosses {
9199
- constructor(transactions) {
9200
- this.transactions = transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.DIVIDENDS);
9482
+ constructor(transactions, businessLosses) {
9483
+ this.transactions = transactions;
9484
+ this.businessLosses = businessLosses;
9485
+ this.businessLossDeferred = businessLosses.sumBy('openBalance');
9486
+ this.businessLossApplied = businessLosses.calculateBusinessLossApplied(transactions);
9201
9487
  }
9202
9488
  }
9203
9489
 
@@ -16039,12 +16325,199 @@ class PropertySaleExemptionsForm extends AbstractForm {
16039
16325
  }
16040
16326
  }
16041
16327
 
16328
+ class MyTaxBusinessDetailsForm extends AbstractForm {
16329
+ constructor(businessDetails) {
16330
+ var _a, _b;
16331
+ super({
16332
+ vehicleClaimMethod: new FormControl({
16333
+ value: (_a = businessDetails.vehicleClaimDetails) === null || _a === void 0 ? void 0 : _a.method,
16334
+ disabled: true
16335
+ }),
16336
+ businessType: new FormControl({ value: BusinessTypeEnum.SOLE_TRADER, disabled: true }),
16337
+ // business details
16338
+ mainBusinessActivity: new FormControl(businessDetails.businessActivities[0]),
16339
+ mainBusinessName: new FormControl({ value: (_b = businessDetails.businesses) === null || _b === void 0 ? void 0 : _b.first.name, disabled: true }),
16340
+ mainBusinessABN: new FormControl({ value: businessDetails.businessABN, disabled: true }),
16341
+ mainBusinessAddress: new FormControl({ value: businessDetails.businessAddress, disabled: true }),
16342
+ // By default, we show it as 1, but user can change it
16343
+ numberOfBusinessActivities: new FormControl(1)
16344
+ });
16345
+ this.businessDetails = businessDetails;
16346
+ this.listenEvents();
16347
+ }
16348
+ listenEvents() {
16349
+ this.listenMainBusinessActivityChanged();
16350
+ }
16351
+ listenMainBusinessActivityChanged() {
16352
+ this.get('mainBusinessActivity').valueChanges.subscribe((activity) => {
16353
+ this.get('mainBusinessName').setValue(this.businessDetails.businesses.findBy('activity.id', activity.id).name);
16354
+ });
16355
+ }
16356
+ }
16357
+
16358
+ class MyTaxBusinessIncomeForm extends AbstractForm {
16359
+ constructor(businessIncome) {
16360
+ super({
16361
+ // Set in "false" if user has PSI income
16362
+ // https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form
16363
+ // ("Business income or losses" section, "P1. Did you satisfy the results test?" field)
16364
+ isTestResultsSatisfied: new FormControl(!businessIncome.psiIncomeAmount),
16365
+ psiVoluntaryAgreementAmount: new FormControl({
16366
+ value: businessIncome.psiVoluntaryAgreementAmount,
16367
+ disabled: true
16368
+ }),
16369
+ psiABNNotQuotedAmount: new FormControl({
16370
+ value: businessIncome.psiABNNotQuotedAmount,
16371
+ disabled: true
16372
+ }),
16373
+ psiLabourHireOrOtherAmount: new FormControl({
16374
+ value: businessIncome.psiLabourHireOrOtherAmount,
16375
+ disabled: true
16376
+ }),
16377
+ psiOtherAmount: new FormControl({
16378
+ value: businessIncome.psiOtherAmount,
16379
+ disabled: true
16380
+ }),
16381
+ psiDeductionAssociatesAmount: new FormControl({
16382
+ value: businessIncome.psiDeductionAssociatesAmount,
16383
+ disabled: true
16384
+ }),
16385
+ psiDeductionOtherAmount: new FormControl({
16386
+ value: businessIncome.psiDeductionOtherAmount,
16387
+ disabled: true
16388
+ }),
16389
+ psiVoluntaryAgreementTax: new FormControl({
16390
+ value: businessIncome.psiVoluntaryAgreementTax,
16391
+ disabled: true
16392
+ }),
16393
+ psiABNNotQuotedTax: new FormControl({
16394
+ value: businessIncome.psiABNNotQuotedTax,
16395
+ disabled: true
16396
+ }),
16397
+ psiLabourHireOrOtherTax: new FormControl({
16398
+ value: businessIncome.psiLabourHireOrOtherTax,
16399
+ disabled: true
16400
+ }),
16401
+ grossPaymentsNoAbsGivenAmount: new FormControl({
16402
+ value: businessIncome.grossPaymentsNoAbsGivenAmount,
16403
+ disabled: true
16404
+ }),
16405
+ grossPaymentsVoluntaryAgreementAmount: new FormControl({
16406
+ value: businessIncome.grossPaymentsVoluntaryAgreementAmount,
16407
+ disabled: true
16408
+ }),
16409
+ grossPaymentsLabourHireAmount: new FormControl({
16410
+ value: businessIncome.grossPaymentsLabourHireAmount,
16411
+ disabled: true
16412
+ }),
16413
+ assessibleGovernmentPaymentsAmount: new FormControl({
16414
+ value: businessIncome.assessibleGovernmentPaymentsAmount,
16415
+ disabled: true
16416
+ }),
16417
+ otherBusinessIncomeAmount: new FormControl({
16418
+ value: businessIncome.otherBusinessIncomeAmount,
16419
+ disabled: true
16420
+ }),
16421
+ grossPaymentsNoAbsGivenTax: new FormControl({
16422
+ value: businessIncome.grossPaymentsNoAbsGivenTax,
16423
+ disabled: true
16424
+ }),
16425
+ grossPaymentsVoluntaryAgreementTax: new FormControl({
16426
+ value: businessIncome.grossPaymentsVoluntaryAgreementTax,
16427
+ disabled: true
16428
+ }),
16429
+ grossPaymentsLabourHireTax: new FormControl({
16430
+ value: businessIncome.grossPaymentsLabourHireTax,
16431
+ disabled: true
16432
+ }),
16433
+ });
16434
+ }
16435
+ }
16436
+
16437
+ class MyTaxBusinessLossesForm extends AbstractForm {
16438
+ constructor(businessLosses) {
16439
+ var _a, _b;
16440
+ super({
16441
+ purchasesAndOtherCostsAmount: new FormControl({
16442
+ value: businessLosses.purchasesAndOtherCostsAmount,
16443
+ disabled: true
16444
+ }),
16445
+ contractorsAndCommissionAmount: new FormControl({
16446
+ value: businessLosses.contractorsAndCommissionAmount,
16447
+ disabled: true
16448
+ }),
16449
+ superannuationAmount: new FormControl({
16450
+ value: businessLosses.superannuationAmount,
16451
+ disabled: true
16452
+ }),
16453
+ badDebtAmount: new FormControl({
16454
+ value: businessLosses.badDebtAmount,
16455
+ disabled: true
16456
+ }),
16457
+ leaseExpensesCommercialAmount: new FormControl({
16458
+ value: businessLosses.leaseExpensesCommercialAmount,
16459
+ disabled: true
16460
+ }),
16461
+ rentExpensesCommercialPremisesAmount: new FormControl({
16462
+ value: businessLosses.rentExpensesCommercialPremisesAmount,
16463
+ disabled: true
16464
+ }),
16465
+ interestExpensesAustraliaAmount: new FormControl({
16466
+ value: businessLosses.interestExpensesAustraliaAmount,
16467
+ disabled: true
16468
+ }),
16469
+ interestExpensesOverseasAmount: new FormControl({
16470
+ value: businessLosses.interestExpensesOverseasAmount,
16471
+ disabled: true
16472
+ }),
16473
+ kmsTravelledExpensesAmount: new FormControl({
16474
+ value: businessLosses.kmsTravelledExpensesAmount,
16475
+ disabled: true
16476
+ }),
16477
+ otherExpensesAmount: new FormControl({
16478
+ value: businessLosses.otherExpensesAmount,
16479
+ disabled: true
16480
+ }),
16481
+ totalNonPrimaryProductionExpensesAmount: new FormControl({
16482
+ value: businessLosses.totalNonPrimaryProductionExpensesAmount,
16483
+ disabled: true
16484
+ }),
16485
+ // depreciations
16486
+ depreciationExpensesAmount: new FormControl({
16487
+ value: businessLosses.depreciationExpensesAmount,
16488
+ disabled: true
16489
+ }),
16490
+ deductionsForCertainAssetsAmount: new FormControl({
16491
+ value: businessLosses.deductionsForCertainAssetsAmount,
16492
+ disabled: true
16493
+ }),
16494
+ deductionsForGeneralSmallBusinessPoolAmount: new FormControl({
16495
+ value: businessLosses.deductionsForGeneralSmallBusinessPoolAmount,
16496
+ disabled: true
16497
+ }),
16498
+ currentYearNetNonPrimaryIncomeOrLossesAmount: new FormControl({
16499
+ value: businessLosses.currentYearNetNonPrimaryIncomeOrLossesAmount,
16500
+ disabled: true
16501
+ }),
16502
+ priorYearsNonPrimaryLossesAmount: new FormControl({
16503
+ value: businessLosses.priorYearsNonPrimaryLossesAmount,
16504
+ disabled: true
16505
+ }),
16506
+ lossType: new FormControl((_b = (_a = businessLosses.currentLoss) === null || _a === void 0 ? void 0 : _a.offsetRule) === null || _b === void 0 ? void 0 : _b.id, Validators.required),
16507
+ });
16508
+ }
16509
+ }
16510
+
16042
16511
  /**
16043
16512
  * @Todo waiting for the Sole tank implementation
16044
16513
  */
16045
- class MyTaxBusinessOrLossesForm extends AbstractForm {
16046
- constructor(businessOrLosses) {
16047
- super({});
16514
+ class MyTaxBusinessIncomeOrLossesForm extends AbstractForm {
16515
+ constructor(businessDetails, businessIncome, businessLosses) {
16516
+ super({
16517
+ businessDetails: new MyTaxBusinessDetailsForm(businessDetails),
16518
+ businessIncome: new MyTaxBusinessIncomeForm(businessIncome),
16519
+ businessLosses: new MyTaxBusinessLossesForm(businessLosses),
16520
+ });
16048
16521
  }
16049
16522
  }
16050
16523
 
@@ -16290,12 +16763,12 @@ class MyTaxInterestForm extends AbstractForm {
16290
16763
  }
16291
16764
  }
16292
16765
 
16293
- /**
16294
- * @Todo waiting for Sole tank implementation
16295
- */
16296
16766
  class MyTaxLossesForm extends AbstractForm {
16297
16767
  constructor(losses) {
16298
- super({});
16768
+ super({
16769
+ businessLossDeferred: new FormControl(losses.businessLossDeferred),
16770
+ businessLossApplied: new FormControl(losses.businessLossApplied)
16771
+ });
16299
16772
  }
16300
16773
  }
16301
16774
 
@@ -16538,5 +17011,5 @@ VehicleLogbookForm.maxDescriptionLength = 60;
16538
17011
  * Generated bundle index. Do not edit.
16539
17012
  */
16540
17013
 
16541
- export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, 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, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessOrLosses, MyTaxBusinessOrLossesForm, MyTaxCgt, MyTaxCgtForm, 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, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertySaleTaxExemptionMetadataCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RewardfulService, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, 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, TransactionBaseCollection, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
17014
+ export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, 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, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, 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, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertySaleTaxExemptionMetadataCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RewardfulService, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, 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, TransactionBaseCollection, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
16542
17015
  //# sourceMappingURL=taxtank-core.js.map