taxtank-core 0.33.46 → 0.33.48

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. package/esm2022/src/lib/collections/chart-accounts/chart-accounts-value.collection.mjs +20 -0
  2. package/esm2022/src/lib/collections/chart-accounts/index.mjs +2 -0
  3. package/esm2022/src/lib/collections/chart-accounts.collection.mjs +2 -2
  4. package/esm2022/src/lib/collections/collection.mjs +2 -2
  5. package/esm2022/src/lib/collections/home-office/home-office-claim.collection.mjs +7 -0
  6. package/esm2022/src/lib/collections/home-office/index.mjs +2 -0
  7. package/esm2022/src/lib/collections/index.mjs +3 -1
  8. package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +3 -3
  9. package/esm2022/src/lib/db/Enums/{allocation-rule-condition-comparison-operator.enum.mjs → bank/allocation-rule/allocation-rule-condition-comparison-operator.enum.mjs} +1 -1
  10. package/esm2022/src/lib/db/Enums/{allocation-rule-condition-field.enum.mjs → bank/allocation-rule/allocation-rule-condition-field.enum.mjs} +1 -1
  11. package/esm2022/src/lib/db/Enums/{allocation-rule-condition-operator.enum.mjs → bank/allocation-rule/allocation-rule-condition-operator.enum.mjs} +1 -1
  12. package/esm2022/src/lib/db/Enums/bank/allocation-rule/allocation-rule-type.enum.mjs +7 -0
  13. package/esm2022/src/lib/db/Enums/bank/allocation-rule/index.mjs +5 -0
  14. package/esm2022/src/lib/db/Enums/bank/index.mjs +2 -1
  15. package/esm2022/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.mjs +48 -0
  16. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.mjs +25 -66
  17. package/esm2022/src/lib/db/Enums/chart-accounts/index.mjs +2 -3
  18. package/esm2022/src/lib/db/Enums/home-office/home-office-claim-method.enum.mjs +7 -0
  19. package/esm2022/src/lib/db/Enums/home-office/index.mjs +2 -0
  20. package/esm2022/src/lib/db/Enums/index.mjs +2 -6
  21. package/esm2022/src/lib/db/Models/bank/bank-transaction.mjs +2 -2
  22. package/esm2022/src/lib/db/Models/depreciation/depreciation.mjs +1 -2
  23. package/esm2022/src/lib/db/Models/sole/sole-business.mjs +2 -1
  24. package/esm2022/src/lib/db/Models/sole/sole-details.mjs +2 -1
  25. package/esm2022/src/lib/db/Models/user/user.mjs +1 -1
  26. package/esm2022/src/lib/db/Models/vehicle/vehicle-claim.mjs +2 -1
  27. package/esm2022/src/lib/forms/abstract.form.mjs +36 -4
  28. package/esm2022/src/lib/forms/address/address.form.mjs +1 -1
  29. package/esm2022/src/lib/forms/home-office/home-office-calculator.form.mjs +25 -0
  30. package/esm2022/src/lib/forms/home-office/home-office-claim.form.mjs +47 -0
  31. package/esm2022/src/lib/forms/home-office/home-office-log.form.mjs +15 -0
  32. package/esm2022/src/lib/forms/home-office/index.mjs +4 -0
  33. package/esm2022/src/lib/forms/index.mjs +2 -1
  34. package/esm2022/src/lib/forms/transaction/work/work-expense.form.mjs +15 -2
  35. package/esm2022/src/lib/models/bank/bank-transaction-chart-data.mjs +2 -3
  36. package/esm2022/src/lib/models/chart-accounts/chart-accounts.mjs +36 -11
  37. package/esm2022/src/lib/models/dictionary/dictionary.mjs +3 -2
  38. package/esm2022/src/lib/models/endpoint/endpoint.mjs +1 -1
  39. package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +8 -1
  40. package/esm2022/src/lib/models/home-office/home-office-claim.interface.mjs +2 -0
  41. package/esm2022/src/lib/models/home-office/home-office-claim.mjs +46 -0
  42. package/esm2022/src/lib/models/home-office/home-office-log.interface.mjs +2 -0
  43. package/esm2022/src/lib/models/home-office/home-office-log.mjs +14 -0
  44. package/esm2022/src/lib/models/home-office/index.mjs +5 -0
  45. package/esm2022/src/lib/models/index.mjs +2 -1
  46. package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.mjs +14 -14
  47. package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.mjs +18 -18
  48. package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.mjs +12 -12
  49. package/esm2022/src/lib/models/sole/sole-invoice-item.mjs +25 -2
  50. package/esm2022/src/lib/models/transaction/transaction.mjs +10 -4
  51. package/esm2022/src/lib/services/data.service.mjs +2 -2
  52. package/esm2022/src/lib/services/http/home-office/home-office-claim-messages.enum.mjs +8 -0
  53. package/esm2022/src/lib/services/http/home-office/home-office-claim.service.mjs +23 -0
  54. package/esm2022/src/lib/services/http/home-office/home-office-log-messages.enum.mjs +8 -0
  55. package/esm2022/src/lib/services/http/home-office/home-office-log.service.mjs +23 -0
  56. package/esm2022/src/lib/services/http/home-office/index.mjs +5 -0
  57. package/esm2022/src/lib/services/http/index.mjs +3 -1
  58. package/esm2022/src/lib/services/http/rest/rest-old.service.mjs +8 -1
  59. package/esm2022/src/lib/services/http/rest/rest.service.mjs +24 -5
  60. package/esm2022/src/lib/services/http/rest-messages.enum.mjs +7 -0
  61. package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +9 -5
  62. package/esm2022/src/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +4 -12
  63. package/esm2022/src/lib/validators/current-fin-year.validator.mjs +3 -2
  64. package/fesm2022/taxtank-core.mjs +485 -170
  65. package/fesm2022/taxtank-core.mjs.map +1 -1
  66. package/package.json +1 -1
  67. package/src/lib/collections/chart-accounts/chart-accounts-value.collection.d.ts +12 -0
  68. package/src/lib/collections/chart-accounts/index.d.ts +1 -0
  69. package/src/lib/collections/collection.d.ts +1 -1
  70. package/src/lib/collections/home-office/home-office-claim.collection.d.ts +5 -0
  71. package/src/lib/collections/home-office/index.d.ts +1 -0
  72. package/src/lib/collections/index.d.ts +2 -0
  73. package/src/lib/db/Enums/bank/allocation-rule/index.d.ts +4 -0
  74. package/src/lib/db/Enums/bank/index.d.ts +1 -0
  75. package/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.d.ts +46 -0
  76. package/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts +24 -65
  77. package/src/lib/db/Enums/chart-accounts/index.d.ts +1 -2
  78. package/src/lib/db/Enums/home-office/home-office-claim-method.enum.d.ts +5 -0
  79. package/src/lib/db/Enums/home-office/index.d.ts +1 -0
  80. package/src/lib/db/Enums/index.d.ts +1 -4
  81. package/src/lib/db/Models/depreciation/depreciation.d.ts +0 -1
  82. package/src/lib/db/Models/sole/sole-business.d.ts +1 -0
  83. package/src/lib/db/Models/sole/sole-details.d.ts +1 -0
  84. package/src/lib/db/Models/user/user.d.ts +1 -1
  85. package/src/lib/db/Models/vehicle/vehicle-claim.d.ts +1 -0
  86. package/src/lib/forms/abstract.form.d.ts +11 -1
  87. package/src/lib/forms/home-office/home-office-calculator.form.d.ts +8 -0
  88. package/src/lib/forms/home-office/home-office-claim.form.d.ts +12 -0
  89. package/src/lib/forms/home-office/home-office-log.form.d.ts +5 -0
  90. package/src/lib/forms/home-office/index.d.ts +3 -0
  91. package/src/lib/forms/index.d.ts +1 -0
  92. package/src/lib/forms/transaction/work/work-expense.form.d.ts +4 -2
  93. package/src/lib/models/bank/bank-transaction-chart-data.d.ts +2 -2
  94. package/src/lib/models/chart-accounts/chart-accounts.d.ts +5 -1
  95. package/src/lib/models/dictionary/dictionary.d.ts +2 -2
  96. package/src/lib/models/home-office/home-office-claim.d.ts +26 -0
  97. package/src/lib/models/home-office/home-office-claim.interface.d.ts +20 -0
  98. package/src/lib/models/home-office/home-office-log.d.ts +11 -0
  99. package/src/lib/models/home-office/home-office-log.interface.d.ts +9 -0
  100. package/src/lib/models/home-office/index.d.ts +4 -0
  101. package/src/lib/models/index.d.ts +1 -0
  102. package/src/lib/models/sole/sole-invoice-item.d.ts +2 -1
  103. package/src/lib/models/transaction/transaction.d.ts +3 -1
  104. package/src/lib/services/http/home-office/home-office-claim-messages.enum.d.ts +6 -0
  105. package/src/lib/services/http/home-office/home-office-claim.service.d.ts +12 -0
  106. package/src/lib/services/http/home-office/home-office-log-messages.enum.d.ts +6 -0
  107. package/src/lib/services/http/home-office/home-office-log.service.d.ts +12 -0
  108. package/src/lib/services/http/home-office/index.d.ts +4 -0
  109. package/src/lib/services/http/index.d.ts +2 -0
  110. package/src/lib/services/http/rest/rest-old.service.d.ts +4 -0
  111. package/src/lib/services/http/rest/rest.service.d.ts +1 -0
  112. package/src/lib/services/http/rest-messages.enum.d.ts +5 -0
  113. package/src/lib/services/http/transaction/transaction.service.d.ts +1 -0
  114. package/src/lib/services/json/chart-accounts/chart-accounts-value.service.d.ts +3 -7
  115. package/esm2022/src/lib/db/Enums/allocation-rule-type.enum.mjs +0 -7
  116. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-invoice.enum.mjs +0 -25
  117. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-unallocatable-list.enum.mjs +0 -6
  118. package/esm2022/src/lib/validators/address-corelogic.validator.mjs +0 -19
  119. package/src/lib/db/Enums/chart-accounts/chart-accounts-invoice.enum.d.ts +0 -23
  120. package/src/lib/db/Enums/chart-accounts/chart-accounts-unallocatable-list.enum.d.ts +0 -4
  121. package/src/lib/validators/address-corelogic.validator.d.ts +0 -6
  122. /package/src/lib/db/Enums/{allocation-rule-condition-comparison-operator.enum.d.ts → bank/allocation-rule/allocation-rule-condition-comparison-operator.enum.d.ts} +0 -0
  123. /package/src/lib/db/Enums/{allocation-rule-condition-field.enum.d.ts → bank/allocation-rule/allocation-rule-condition-field.enum.d.ts} +0 -0
  124. /package/src/lib/db/Enums/{allocation-rule-condition-operator.enum.d.ts → bank/allocation-rule/allocation-rule-condition-operator.enum.d.ts} +0 -0
  125. /package/src/lib/db/Enums/{allocation-rule-type.enum.d.ts → bank/allocation-rule/allocation-rule-type.enum.d.ts} +0 -0
@@ -4,8 +4,8 @@ import * as i1$1 from '@angular/common';
4
4
  import { formatDate, CommonModule, CurrencyPipe, DatePipe } from '@angular/common';
5
5
  import * as i1 from '@angular/common/http';
6
6
  import { HttpParams, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
7
- import { map, mergeMap, filter, first as first$1, catchError, finalize, debounceTime, distinctUntilChanged, startWith } from 'rxjs/operators';
8
- import { ReplaySubject, Subject, Observable, throwError, combineLatest, BehaviorSubject, forkJoin, of, from, merge as merge$1 } from 'rxjs';
7
+ import { map, mergeMap, filter, catchError, first as first$1, finalize, debounceTime, distinctUntilChanged, startWith } from 'rxjs/operators';
8
+ import { ReplaySubject, Subject, Observable, of, throwError, combineLatest, BehaviorSubject, forkJoin, from, merge as merge$1 } from 'rxjs';
9
9
  import { plainToClass, Type, Transform, Exclude, Expose, classToPlain } from 'class-transformer';
10
10
  import { __decorate } from 'tslib';
11
11
  import get from 'lodash/get';
@@ -229,7 +229,7 @@ class BankTransactionImport extends AbstractModel {
229
229
  }
230
230
 
231
231
  let BankTransaction$1 = class BankTransaction extends ObservableModel {
232
- static { this.className = 'BankTransaction'; }
232
+ static { this.className = 'BankConnection'; }
233
233
  };
234
234
 
235
235
  let Bank$1 = class Bank extends AbstractModel {
@@ -350,7 +350,6 @@ __decorate([
350
350
  ], TransactionBase.prototype, "gstClaimAmount", null);
351
351
 
352
352
  let Depreciation$1 = class Depreciation extends TransactionBase {
353
- static { this.className = 'Depreciation'; }
354
353
  };
355
354
 
356
355
  let DocumentFolder$1 = class DocumentFolder extends AbstractModel {
@@ -515,6 +514,7 @@ let SoleBusinessLoss$1 = class SoleBusinessLoss extends AbstractModel {
515
514
  };
516
515
 
517
516
  let SoleBusiness$1 = class SoleBusiness extends ObservableModel {
517
+ static { this.className = 'SoleBusiness'; }
518
518
  };
519
519
 
520
520
  let SoleContact$1 = class SoleContact extends AbstractModel {
@@ -524,6 +524,7 @@ let SoleDepreciationMethod$1 = class SoleDepreciationMethod extends AbstractMode
524
524
  };
525
525
 
526
526
  let SoleDetails$1 = class SoleDetails extends ObservableModel {
527
+ static { this.className = 'SoleDetails'; }
527
528
  };
528
529
 
529
530
  let SoleForecast$1 = class SoleForecast extends AbstractModel {
@@ -614,6 +615,7 @@ let VehicleClaimDetails$1 = class VehicleClaimDetails extends AbstractModel {
614
615
  };
615
616
 
616
617
  let VehicleClaim$1 = class VehicleClaim extends ObservableModel {
618
+ static { this.className = 'VehicleClaim'; }
617
619
  };
618
620
 
619
621
  let VehicleLogbook$1 = class VehicleLogbook extends AbstractModel {
@@ -978,7 +980,18 @@ var ChartAccountsHeadingVehicleListEnum;
978
980
 
979
981
  var ChartAccountsListEnum;
980
982
  (function (ChartAccountsListEnum) {
981
- ChartAccountsListEnum[ChartAccountsListEnum["HOME_OFFICE_WORK_HOURS"] = 103] = "HOME_OFFICE_WORK_HOURS";
983
+ ChartAccountsListEnum[ChartAccountsListEnum["SALARY_OR_WAGES"] = 2] = "SALARY_OR_WAGES";
984
+ ChartAccountsListEnum[ChartAccountsListEnum["LUMP_SUM_A_GENUINE_REDUNDANCY"] = 9] = "LUMP_SUM_A_GENUINE_REDUNDANCY";
985
+ ChartAccountsListEnum[ChartAccountsListEnum["LUMP_SUM_A_ALL_OTHER_PAYMENTS"] = 10] = "LUMP_SUM_A_ALL_OTHER_PAYMENTS";
986
+ ChartAccountsListEnum[ChartAccountsListEnum["LUMP_SUM_B"] = 11] = "LUMP_SUM_B";
987
+ ChartAccountsListEnum[ChartAccountsListEnum["ATTRIBUTABLE_PSI"] = 20] = "ATTRIBUTABLE_PSI";
988
+ ChartAccountsListEnum[ChartAccountsListEnum["INTEREST_EARNED"] = 22] = "INTEREST_EARNED";
989
+ ChartAccountsListEnum[ChartAccountsListEnum["KMS_TRAVELLED"] = 24] = "KMS_TRAVELLED";
990
+ ChartAccountsListEnum[ChartAccountsListEnum["VEHICLES"] = 25] = "VEHICLES";
991
+ ChartAccountsListEnum[ChartAccountsListEnum["COMMERCIAL_VEHICLES"] = 26] = "COMMERCIAL_VEHICLES";
992
+ ChartAccountsListEnum[ChartAccountsListEnum["VEHICLE_LOAN_INTEREST"] = 37] = "VEHICLE_LOAN_INTEREST";
993
+ ChartAccountsListEnum[ChartAccountsListEnum["VEHICLE_LOAN_PRINCIPAL"] = 38] = "VEHICLE_LOAN_PRINCIPAL";
994
+ ChartAccountsListEnum[ChartAccountsListEnum["HOME_OFFICE_HOURS"] = 103] = "HOME_OFFICE_HOURS";
982
995
  ChartAccountsListEnum[ChartAccountsListEnum["PARTNERSHIP_EXPENSES"] = 156] = "PARTNERSHIP_EXPENSES";
983
996
  ChartAccountsListEnum[ChartAccountsListEnum["TRUST_EXPENSES"] = 157] = "TRUST_EXPENSES";
984
997
  ChartAccountsListEnum[ChartAccountsListEnum["INTEREST_CHARGED_BY_ATO"] = 278] = "INTEREST_CHARGED_BY_ATO";
@@ -988,35 +1001,12 @@ var ChartAccountsListEnum;
988
1001
  ChartAccountsListEnum[ChartAccountsListEnum["ACCOUNTING_SOFTWARE_FEES"] = 285] = "ACCOUNTING_SOFTWARE_FEES";
989
1002
  ChartAccountsListEnum[ChartAccountsListEnum["ADVISOR_FEES"] = 286] = "ADVISOR_FEES";
990
1003
  ChartAccountsListEnum[ChartAccountsListEnum["INCOME_TAX_VARIATION"] = 292] = "INCOME_TAX_VARIATION";
991
- ChartAccountsListEnum[ChartAccountsListEnum["PSI_ABN_NOT_QUOTED"] = 294] = "PSI_ABN_NOT_QUOTED";
992
- ChartAccountsListEnum[ChartAccountsListEnum["PSI_LABOUR_HIRE_OR_OTHER"] = 294] = "PSI_LABOUR_HIRE_OR_OTHER";
993
- ChartAccountsListEnum[ChartAccountsListEnum["PSI_VOLUNTARY_AGREEMENT"] = 296] = "PSI_VOLUNTARY_AGREEMENT";
994
1004
  ChartAccountsListEnum[ChartAccountsListEnum["RENTAL_INCOME"] = 298] = "RENTAL_INCOME";
995
1005
  ChartAccountsListEnum[ChartAccountsListEnum["OTHER_RENTAL_INCOME"] = 300] = "OTHER_RENTAL_INCOME";
996
1006
  ChartAccountsListEnum[ChartAccountsListEnum["INTEREST_ON_LOAN"] = 302] = "INTEREST_ON_LOAN";
997
- ChartAccountsListEnum[ChartAccountsListEnum["BORROWING_EXPENSES"] = 315] = "BORROWING_EXPENSES";
998
- ChartAccountsListEnum[ChartAccountsListEnum["DIVIDENDS"] = 542] = "DIVIDENDS";
999
- ChartAccountsListEnum[ChartAccountsListEnum["TRANSFER"] = 615] = "TRANSFER";
1000
1007
  ChartAccountsListEnum[ChartAccountsListEnum["BUILDING_AT_COST"] = 304] = "BUILDING_AT_COST";
1001
- ChartAccountsListEnum[ChartAccountsListEnum["KLMS_TRAVELLED_FOR_WORK"] = 24] = "KLMS_TRAVELLED_FOR_WORK";
1002
- ChartAccountsListEnum[ChartAccountsListEnum["DIRECTOR_FEES"] = 6] = "DIRECTOR_FEES";
1003
- ChartAccountsListEnum[ChartAccountsListEnum["SALARY_OR_WAGES"] = 2] = "SALARY_OR_WAGES";
1004
- ChartAccountsListEnum[ChartAccountsListEnum["WORK_VEHICLES"] = 25] = "WORK_VEHICLES";
1005
- ChartAccountsListEnum[ChartAccountsListEnum["SOLE_VEHICLES"] = 721] = "SOLE_VEHICLES";
1006
- ChartAccountsListEnum[ChartAccountsListEnum["COMMERCIAL_VEHICLES"] = 26] = "COMMERCIAL_VEHICLES";
1007
- ChartAccountsListEnum[ChartAccountsListEnum["VEHICLE_LOAN_INTEREST"] = 37] = "VEHICLE_LOAN_INTEREST";
1008
- ChartAccountsListEnum[ChartAccountsListEnum["VEHICLE_LOAN_PRINCIPAL"] = 38] = "VEHICLE_LOAN_PRINCIPAL";
1009
- ChartAccountsListEnum[ChartAccountsListEnum["TAX_INSTALMENTS"] = 662] = "TAX_INSTALMENTS";
1010
- ChartAccountsListEnum[ChartAccountsListEnum["INTEREST_EARNED"] = 22] = "INTEREST_EARNED";
1011
- ChartAccountsListEnum[ChartAccountsListEnum["PARTNERSHIP_INCOME"] = 566] = "PARTNERSHIP_INCOME";
1012
- ChartAccountsListEnum[ChartAccountsListEnum["TRUST_INCOME"] = 567] = "TRUST_INCOME";
1013
- ChartAccountsListEnum[ChartAccountsListEnum["TAX_OFFSETS_N_R_A_S"] = 571] = "TAX_OFFSETS_N_R_A_S";
1014
- ChartAccountsListEnum[ChartAccountsListEnum["LUMP_SUM_A_GENUINE_REDUNDANCY"] = 9] = "LUMP_SUM_A_GENUINE_REDUNDANCY";
1015
- ChartAccountsListEnum[ChartAccountsListEnum["LUMP_SUM_A_ALL_OTHER_PAYMENTS"] = 10] = "LUMP_SUM_A_ALL_OTHER_PAYMENTS";
1016
- ChartAccountsListEnum[ChartAccountsListEnum["LUMP_SUM_B"] = 11] = "LUMP_SUM_B";
1017
- ChartAccountsListEnum[ChartAccountsListEnum["ATTRIBUTABLE_PSI"] = 20] = "ATTRIBUTABLE_PSI";
1018
1008
  ChartAccountsListEnum[ChartAccountsListEnum["LUMP_SUM_PAYMENTS_IN_ARREARS"] = 519] = "LUMP_SUM_PAYMENTS_IN_ARREARS";
1019
- ChartAccountsListEnum[ChartAccountsListEnum["JURY_ATTENDANCE_FEES"] = 519] = "JURY_ATTENDANCE_FEES";
1009
+ ChartAccountsListEnum[ChartAccountsListEnum["JURY_ATTENDANCE_FEES"] = 521] = "JURY_ATTENDANCE_FEES";
1020
1010
  ChartAccountsListEnum[ChartAccountsListEnum["FOREIGN_EXCHANGE_GAINS_NON_BUSINESS"] = 523] = "FOREIGN_EXCHANGE_GAINS_NON_BUSINESS";
1021
1011
  ChartAccountsListEnum[ChartAccountsListEnum["ROYALTIES"] = 525] = "ROYALTIES";
1022
1012
  ChartAccountsListEnum[ChartAccountsListEnum["TAXABLE_SCHOLARSHIPS_BURSARIES_GRANTS"] = 527] = "TAXABLE_SCHOLARSHIPS_BURSARIES_GRANTS";
@@ -1025,64 +1015,77 @@ var ChartAccountsListEnum;
1025
1015
  ChartAccountsListEnum[ChartAccountsListEnum["ATO_INTEREST_PAID"] = 533] = "ATO_INTEREST_PAID";
1026
1016
  ChartAccountsListEnum[ChartAccountsListEnum["PERSONAL_SUPER_CONTRIBUTIONS_DEDUCTIBLE"] = 536] = "PERSONAL_SUPER_CONTRIBUTIONS_DEDUCTIBLE";
1027
1017
  ChartAccountsListEnum[ChartAccountsListEnum["SOFTWARE_FEES_TAXTANK"] = 541] = "SOFTWARE_FEES_TAXTANK";
1018
+ ChartAccountsListEnum[ChartAccountsListEnum["DIVIDENDS"] = 542] = "DIVIDENDS";
1019
+ ChartAccountsListEnum[ChartAccountsListEnum["CODE_B_SUPERANNUATION_INCOME_STREAMS_DISABILITY"] = 558] = "CODE_B_SUPERANNUATION_INCOME_STREAMS_DISABILITY";
1028
1020
  ChartAccountsListEnum[ChartAccountsListEnum["AUSTRALIAN_ANNUITY_PAYMENTS"] = 559] = "AUSTRALIAN_ANNUITY_PAYMENTS";
1029
- ChartAccountsListEnum[ChartAccountsListEnum["CODE_M_SUPERANNUATION_LUMP_SUM"] = 561] = "CODE_M_SUPERANNUATION_LUMP_SUM";
1030
1021
  ChartAccountsListEnum[ChartAccountsListEnum["EMPLOYEE_SHARE_SCHEME_INCOME"] = 564] = "EMPLOYEE_SHARE_SCHEME_INCOME";
1022
+ ChartAccountsListEnum[ChartAccountsListEnum["PARTNERSHIP_INCOME"] = 566] = "PARTNERSHIP_INCOME";
1023
+ ChartAccountsListEnum[ChartAccountsListEnum["TRUST_INCOME"] = 567] = "TRUST_INCOME";
1024
+ ChartAccountsListEnum[ChartAccountsListEnum["TAX_OFFSETS_N_R_A_S"] = 571] = "TAX_OFFSETS_N_R_A_S";
1031
1025
  ChartAccountsListEnum[ChartAccountsListEnum["FORESTRY_MANAGED_INVESTMENT_SCHEMES_INCOME"] = 590] = "FORESTRY_MANAGED_INVESTMENT_SCHEMES_INCOME";
1032
1026
  ChartAccountsListEnum[ChartAccountsListEnum["FORESTRY_MANAGED_INVESTMENT_SCHEMES_DEDUCTION"] = 593] = "FORESTRY_MANAGED_INVESTMENT_SCHEMES_DEDUCTION";
1033
1027
  ChartAccountsListEnum[ChartAccountsListEnum["ASSESSABLE_AMOUNT_CAPPED_DEFINED_BENEFIT"] = 639] = "ASSESSABLE_AMOUNT_CAPPED_DEFINED_BENEFIT";
1034
- ChartAccountsListEnum[ChartAccountsListEnum["CODE_B_SUPERANNUATION_INCOME_STREAMS_DISABILITY"] = 558] = "CODE_B_SUPERANNUATION_INCOME_STREAMS_DISABILITY";
1035
1028
  ChartAccountsListEnum[ChartAccountsListEnum["CODE_A_SUPERANNUATION_INCOME_STREAMS_DEATH"] = 640] = "CODE_A_SUPERANNUATION_INCOME_STREAMS_DEATH";
1036
- ChartAccountsListEnum[ChartAccountsListEnum["SALES"] = 665] = "SALES";
1037
- ChartAccountsListEnum[ChartAccountsListEnum["LABOUR"] = 666] = "LABOUR";
1038
- ChartAccountsListEnum[ChartAccountsListEnum["UBER_INCOME"] = 667] = "UBER_INCOME";
1039
- ChartAccountsListEnum[ChartAccountsListEnum["COMMISSION"] = 668] = "COMMISSION";
1040
- ChartAccountsListEnum[ChartAccountsListEnum["PARTS_CONSUMABLES"] = 669] = "PARTS_CONSUMABLES";
1041
- ChartAccountsListEnum[ChartAccountsListEnum["OTHER_BUSINESS_INCOME"] = 670] = "OTHER_BUSINESS_INCOME";
1042
- ChartAccountsListEnum[ChartAccountsListEnum["ASSESSIBLE_GOVERNMENT_PAYMENTS"] = 671] = "ASSESSIBLE_GOVERNMENT_PAYMENTS";
1043
- ChartAccountsListEnum[ChartAccountsListEnum["GROSS_PAYMENTS_NO_ABN_GIVEN"] = 672] = "GROSS_PAYMENTS_NO_ABN_GIVEN";
1044
- ChartAccountsListEnum[ChartAccountsListEnum["GROSS_PAYMENTS_VOLUNTARY_AGREEMENT"] = 673] = "GROSS_PAYMENTS_VOLUNTARY_AGREEMENT";
1045
- ChartAccountsListEnum[ChartAccountsListEnum["GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS"] = 674] = "GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS";
1046
- ChartAccountsListEnum[ChartAccountsListEnum["PURCHASES_STOCK_INVENTORY"] = 675] = "PURCHASES_STOCK_INVENTORY";
1047
- ChartAccountsListEnum[ChartAccountsListEnum["CONTRACTORS_AND_COMMISSION"] = 676] = "CONTRACTORS_AND_COMMISSION";
1048
- ChartAccountsListEnum[ChartAccountsListEnum["SUPERANNUATION"] = 677] = "SUPERANNUATION";
1049
- ChartAccountsListEnum[ChartAccountsListEnum["BAD_DEBT"] = 678] = "BAD_DEBT";
1050
- ChartAccountsListEnum[ChartAccountsListEnum["LEASE_EXPENSES_COMMERCIAL"] = 679] = "LEASE_EXPENSES_COMMERCIAL";
1051
- ChartAccountsListEnum[ChartAccountsListEnum["RENT_EXPENSES_COMMERCIAL_PREMISES"] = 680] = "RENT_EXPENSES_COMMERCIAL_PREMISES";
1052
- ChartAccountsListEnum[ChartAccountsListEnum["INTEREST_EXPENSES_AUSTRALIA"] = 681] = "INTEREST_EXPENSES_AUSTRALIA";
1053
- ChartAccountsListEnum[ChartAccountsListEnum["INTEREST_EXPENSES_OVERSEAS"] = 682] = "INTEREST_EXPENSES_OVERSEAS";
1054
- ChartAccountsListEnum[ChartAccountsListEnum["KLMS_TRAVELLED"] = 683] = "KLMS_TRAVELLED";
1055
- ChartAccountsListEnum[ChartAccountsListEnum["FUEL_OIL"] = 684] = "FUEL_OIL";
1056
- ChartAccountsListEnum[ChartAccountsListEnum["SERVICES_MAINTENANCE"] = 685] = "SERVICES_MAINTENANCE";
1057
- ChartAccountsListEnum[ChartAccountsListEnum["REGISTRATION"] = 686] = "REGISTRATION";
1058
- ChartAccountsListEnum[ChartAccountsListEnum["LEASE_INTEREST_PAYMENTS"] = 687] = "LEASE_INTEREST_PAYMENTS";
1059
- ChartAccountsListEnum[ChartAccountsListEnum["SOLE_VEHICLE_LOAN_INTEREST"] = 688] = "SOLE_VEHICLE_LOAN_INTEREST";
1060
- ChartAccountsListEnum[ChartAccountsListEnum["SOLE_VEHICLE_LOAN_PRINCIPAL"] = 855] = "SOLE_VEHICLE_LOAN_PRINCIPAL";
1061
- ChartAccountsListEnum[ChartAccountsListEnum["INSURANCE"] = 689] = "INSURANCE";
1062
- ChartAccountsListEnum[ChartAccountsListEnum["TYRES"] = 690] = "TYRES";
1063
- ChartAccountsListEnum[ChartAccountsListEnum["BATTERIES"] = 691] = "BATTERIES";
1064
- ChartAccountsListEnum[ChartAccountsListEnum["CAR_WASH"] = 692] = "CAR_WASH";
1065
- ChartAccountsListEnum[ChartAccountsListEnum["PARKING_TOLLS"] = 693] = "PARKING_TOLLS";
1066
- ChartAccountsListEnum[ChartAccountsListEnum["OTHER_SOLE_EXPENSES"] = 694] = "OTHER_SOLE_EXPENSES";
1067
- ChartAccountsListEnum[ChartAccountsListEnum["SOLE_ENTERTAINMENT"] = 698] = "SOLE_ENTERTAINMENT";
1029
+ ChartAccountsListEnum[ChartAccountsListEnum["TRANSFER"] = 615] = "TRANSFER";
1068
1030
  ChartAccountsListEnum[ChartAccountsListEnum["PERSONAL_EXPENSES"] = 628] = "PERSONAL_EXPENSES";
1069
1031
  ChartAccountsListEnum[ChartAccountsListEnum["PERSONAL_INCOME"] = 630] = "PERSONAL_INCOME";
1070
1032
  ChartAccountsListEnum[ChartAccountsListEnum["PLATFORM_FEES"] = 857] = "PLATFORM_FEES";
1071
- ChartAccountsListEnum[ChartAccountsListEnum["PSI_OTHER"] = 858] = "PSI_OTHER";
1072
- ChartAccountsListEnum[ChartAccountsListEnum["PSI_DEDUCTION_ASSOCIATES"] = 859] = "PSI_DEDUCTION_ASSOCIATES";
1073
- ChartAccountsListEnum[ChartAccountsListEnum["PSI_DEDUCTION_OTHER"] = 860] = "PSI_DEDUCTION_OTHER";
1074
1033
  ChartAccountsListEnum[ChartAccountsListEnum["AUSTRALIAN_GOVERNMENT_SPECIAL_PAYMENTS"] = 871] = "AUSTRALIAN_GOVERNMENT_SPECIAL_PAYMENTS";
1075
1034
  ChartAccountsListEnum[ChartAccountsListEnum["FHSS"] = 872] = "FHSS";
1076
- ChartAccountsListEnum[ChartAccountsListEnum["LOAN_DRAWDOWN"] = 883] = "LOAN_DRAWDOWN";
1077
- ChartAccountsListEnum[ChartAccountsListEnum["PROGRESS_PAYMENTS"] = 884] = "PROGRESS_PAYMENTS";
1078
- ChartAccountsListEnum[ChartAccountsListEnum["LOAN_PAYMENT"] = 885] = "LOAN_PAYMENT";
1035
+ ChartAccountsListEnum[ChartAccountsListEnum["MOBILE_PHONE"] = 90] = "MOBILE_PHONE";
1036
+ ChartAccountsListEnum[ChartAccountsListEnum["INTERNET"] = 94] = "INTERNET";
1037
+ ChartAccountsListEnum[ChartAccountsListEnum["ELECTRICITY_AND_GAS"] = 234] = "ELECTRICITY_AND_GAS";
1038
+ ChartAccountsListEnum[ChartAccountsListEnum["TELEPHONE"] = 255] = "TELEPHONE";
1039
+ ChartAccountsListEnum[ChartAccountsListEnum["HOME_OFFICE_CLEANING"] = 11861] = "HOME_OFFICE_CLEANING";
1079
1040
  })(ChartAccountsListEnum || (ChartAccountsListEnum = {}));
1080
1041
 
1081
- var ChartAccountsUnallocatableListEnum;
1082
- (function (ChartAccountsUnallocatableListEnum) {
1083
- ChartAccountsUnallocatableListEnum[ChartAccountsUnallocatableListEnum["HOME_OFFICE_WORK_HOURS"] = 103] = "HOME_OFFICE_WORK_HOURS";
1084
- ChartAccountsUnallocatableListEnum[ChartAccountsUnallocatableListEnum["HOME_OFFICE_SOLE_HOURS"] = 888] = "HOME_OFFICE_SOLE_HOURS";
1085
- })(ChartAccountsUnallocatableListEnum || (ChartAccountsUnallocatableListEnum = {}));
1042
+ var BusinessChartAccountsEnum;
1043
+ (function (BusinessChartAccountsEnum) {
1044
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["PSI_ABN_NOT_QUOTED"] = 294] = "PSI_ABN_NOT_QUOTED";
1045
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["PSI_LABOUR_HIRE_OR_OTHER"] = 295] = "PSI_LABOUR_HIRE_OR_OTHER";
1046
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["PSI_VOLUNTARY_AGREEMENT"] = 296] = "PSI_VOLUNTARY_AGREEMENT";
1047
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["SALES"] = 665] = "SALES";
1048
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["LABOUR"] = 666] = "LABOUR";
1049
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["UBER_INCOME"] = 667] = "UBER_INCOME";
1050
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["COMMISSION"] = 668] = "COMMISSION";
1051
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["PARTS_CONSUMABLES"] = 669] = "PARTS_CONSUMABLES";
1052
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["OTHER_BUSINESS_INCOME"] = 670] = "OTHER_BUSINESS_INCOME";
1053
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["ASSESSIBLE_GOVERNMENT_PAYMENTS"] = 671] = "ASSESSIBLE_GOVERNMENT_PAYMENTS";
1054
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["GROSS_PAYMENTS_NO_ABN_GIVEN"] = 672] = "GROSS_PAYMENTS_NO_ABN_GIVEN";
1055
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["GROSS_PAYMENTS_VOLUNTARY_AGREEMENT"] = 673] = "GROSS_PAYMENTS_VOLUNTARY_AGREEMENT";
1056
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS"] = 674] = "GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS";
1057
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["PURCHASES_STOCK_INVENTORY"] = 675] = "PURCHASES_STOCK_INVENTORY";
1058
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["CONTRACTORS_AND_COMMISSION"] = 676] = "CONTRACTORS_AND_COMMISSION";
1059
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["SUPERANNUATION"] = 677] = "SUPERANNUATION";
1060
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["BAD_DEBT"] = 678] = "BAD_DEBT";
1061
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["LEASE_EXPENSES_COMMERCIAL"] = 679] = "LEASE_EXPENSES_COMMERCIAL";
1062
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["RENT_EXPENSES_COMMERCIAL_PREMISES"] = 680] = "RENT_EXPENSES_COMMERCIAL_PREMISES";
1063
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["INTEREST_EXPENSES_AUSTRALIA"] = 681] = "INTEREST_EXPENSES_AUSTRALIA";
1064
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["INTEREST_EXPENSES_OVERSEAS"] = 682] = "INTEREST_EXPENSES_OVERSEAS";
1065
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["KMS_TRAVELLED"] = 683] = "KMS_TRAVELLED";
1066
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["VEHICLE_LOAN_INTEREST"] = 688] = "VEHICLE_LOAN_INTEREST";
1067
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["ENTERTAINMENT"] = 698] = "ENTERTAINMENT";
1068
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["VEHICLES"] = 721] = "VEHICLES";
1069
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["VEHICLE_LOAN_PRINCIPAL"] = 855] = "VEHICLE_LOAN_PRINCIPAL";
1070
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["PSI_OTHER"] = 858] = "PSI_OTHER";
1071
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["PSI_DEDUCTION_ASSOCIATES"] = 859] = "PSI_DEDUCTION_ASSOCIATES";
1072
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["PSI_DEDUCTION_OTHER"] = 860] = "PSI_DEDUCTION_OTHER";
1073
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["OTHER_ASSESSABLE_PAYMENTS"] = 861] = "OTHER_ASSESSABLE_PAYMENTS";
1074
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["JOBKEEPER"] = 862] = "JOBKEEPER";
1075
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["GST_REFUND"] = 864] = "GST_REFUND";
1076
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["PAYG_INSTALLMENTS"] = 878] = "PAYG_INSTALLMENTS";
1077
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["INTEREST_EARNED"] = 879] = "INTEREST_EARNED";
1078
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_HOURS"] = 888] = "HOME_OFFICE_HOURS";
1079
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["ELECTRICITY_AND_GAS"] = 892] = "ELECTRICITY_AND_GAS";
1080
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_CLEANING"] = 893] = "HOME_OFFICE_CLEANING";
1081
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["INTERNET"] = 705] = "INTERNET";
1082
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["TELEPHONE"] = 11860] = "TELEPHONE";
1083
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["MOBILE_PHONE"] = 719] = "MOBILE_PHONE";
1084
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_RENT"] = 889] = "HOME_OFFICE_RENT";
1085
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_LOAN"] = 890] = "HOME_OFFICE_LOAN";
1086
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_RATES"] = 891] = "HOME_OFFICE_RATES";
1087
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_OTHER"] = 894] = "HOME_OFFICE_OTHER";
1088
+ })(BusinessChartAccountsEnum || (BusinessChartAccountsEnum = {}));
1086
1089
 
1087
1090
  var ChartAccountsMetaFieldListEnum;
1088
1091
  (function (ChartAccountsMetaFieldListEnum) {
@@ -1169,31 +1172,6 @@ var ChartAccountsHoldingUntaxedIncomeListEnum;
1169
1172
  ChartAccountsHoldingUntaxedIncomeListEnum[ChartAccountsHoldingUntaxedIncomeListEnum["STAKING"] = 877] = "STAKING";
1170
1173
  })(ChartAccountsHoldingUntaxedIncomeListEnum || (ChartAccountsHoldingUntaxedIncomeListEnum = {}));
1171
1174
 
1172
- var ChartAccountsInvoiceEnum;
1173
- (function (ChartAccountsInvoiceEnum) {
1174
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["PSI_ABN_NOT_QUOTED_N"] = 294] = "PSI_ABN_NOT_QUOTED_N";
1175
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["PSI_LABOUR_HIRE_OR_OTHER_O"] = 295] = "PSI_LABOUR_HIRE_OR_OTHER_O";
1176
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["PSI_VOLUNTARY_AGREEMENT_M"] = 296] = "PSI_VOLUNTARY_AGREEMENT_M";
1177
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["SALES"] = 665] = "SALES";
1178
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["LABOUR"] = 666] = "LABOUR";
1179
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["UBER_INCOME"] = 667] = "UBER_INCOME";
1180
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["COMMISSION"] = 668] = "COMMISSION";
1181
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["PARTS_CONSUMABLES"] = 669] = "PARTS_CONSUMABLES";
1182
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["OTHER_BUSINESS_INCOME"] = 670] = "OTHER_BUSINESS_INCOME";
1183
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["ASSESSIBLE_GOVERNMENT_PAYMENTS"] = 671] = "ASSESSIBLE_GOVERNMENT_PAYMENTS";
1184
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["GROSS_PAYMENTS_NO_ABN_GIVEN"] = 672] = "GROSS_PAYMENTS_NO_ABN_GIVEN";
1185
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["GROSS_PAYMENTS_VOLUNTARY_AGREEMENT"] = 673] = "GROSS_PAYMENTS_VOLUNTARY_AGREEMENT";
1186
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS"] = 674] = "GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS";
1187
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["PSI_OTHER_J"] = 858] = "PSI_OTHER_J";
1188
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["OTHER_ASSESSABLE_PAYMENTS"] = 861] = "OTHER_ASSESSABLE_PAYMENTS";
1189
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["JOBKEEPER"] = 862] = "JOBKEEPER";
1190
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["GST_REFUND"] = 864] = "GST_REFUND";
1191
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["INTEREST_EARNED"] = 879] = "INTEREST_EARNED";
1192
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["PAYG_INSTALLMENTS"] = 878] = "PAYG_INSTALLMENTS";
1193
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["CONTRACTORS_COMMISSION"] = 676] = "CONTRACTORS_COMMISSION";
1194
- ChartAccountsInvoiceEnum[ChartAccountsInvoiceEnum["SUPPERANNUATION"] = 677] = "SUPPERANNUATION";
1195
- })(ChartAccountsInvoiceEnum || (ChartAccountsInvoiceEnum = {}));
1196
-
1197
1175
  var ChartAccountsPropertyAdjustmentsListEnum;
1198
1176
  (function (ChartAccountsPropertyAdjustmentsListEnum) {
1199
1177
  ChartAccountsPropertyAdjustmentsListEnum[ChartAccountsPropertyAdjustmentsListEnum["INTEREST_ON_LOAN"] = 302] = "INTEREST_ON_LOAN";
@@ -1432,7 +1410,12 @@ var SoleInvoiceTemplateTaxTypeEnum;
1432
1410
  SoleInvoiceTemplateTaxTypeEnum[SoleInvoiceTemplateTaxTypeEnum["NO_TAX"] = 2] = "NO_TAX";
1433
1411
  })(SoleInvoiceTemplateTaxTypeEnum || (SoleInvoiceTemplateTaxTypeEnum = {}));
1434
1412
 
1435
- // @TODO Artem TT-2308 move everything
1413
+ var HomeOfficeClaimMethodEnum;
1414
+ (function (HomeOfficeClaimMethodEnum) {
1415
+ HomeOfficeClaimMethodEnum[HomeOfficeClaimMethodEnum["FIXED"] = 1] = "FIXED";
1416
+ HomeOfficeClaimMethodEnum[HomeOfficeClaimMethodEnum["ACTUAL"] = 2] = "ACTUAL";
1417
+ HomeOfficeClaimMethodEnum[HomeOfficeClaimMethodEnum["OCCUPANCY"] = 3] = "OCCUPANCY";
1418
+ })(HomeOfficeClaimMethodEnum || (HomeOfficeClaimMethodEnum = {}));
1436
1419
 
1437
1420
  /**
1438
1421
  * @TODO not used for now
@@ -1914,7 +1897,7 @@ class Collection {
1914
1897
  return this.items.find(callback);
1915
1898
  }
1916
1899
  findBy(path, value) {
1917
- return this.items.find((model) => value === get(model, path));
1900
+ return this.items.find((model) => value === get(model, path)) ?? null;
1918
1901
  }
1919
1902
  findIndexBy(path, value) {
1920
1903
  return this.items.findIndex((item) => get(item, path) === value) ?? null;
@@ -3284,6 +3267,28 @@ class ChartAccounts extends ChartAccounts$1 {
3284
3267
  static { this.GSTRatio = 0.1; }
3285
3268
  static { this.GSTCoefficient = 1.1; }
3286
3269
  static { this.GSTPercent = 10; }
3270
+ static { this.systemList = [
3271
+ ChartAccountsListEnum.HOME_OFFICE_HOURS,
3272
+ ChartAccountsListEnum.KMS_TRAVELLED,
3273
+ BusinessChartAccountsEnum.HOME_OFFICE_HOURS,
3274
+ BusinessChartAccountsEnum.KMS_TRAVELLED,
3275
+ ]; }
3276
+ static { this.homeOfficeList = [
3277
+ ChartAccountsListEnum.MOBILE_PHONE,
3278
+ ChartAccountsListEnum.INTERNET,
3279
+ ChartAccountsListEnum.ELECTRICITY_AND_GAS,
3280
+ ChartAccountsListEnum.TELEPHONE,
3281
+ ChartAccountsListEnum.HOME_OFFICE_CLEANING,
3282
+ BusinessChartAccountsEnum.ELECTRICITY_AND_GAS,
3283
+ BusinessChartAccountsEnum.HOME_OFFICE_CLEANING,
3284
+ BusinessChartAccountsEnum.INTERNET,
3285
+ BusinessChartAccountsEnum.TELEPHONE,
3286
+ BusinessChartAccountsEnum.MOBILE_PHONE,
3287
+ BusinessChartAccountsEnum.HOME_OFFICE_RENT,
3288
+ BusinessChartAccountsEnum.HOME_OFFICE_LOAN,
3289
+ BusinessChartAccountsEnum.HOME_OFFICE_RATES,
3290
+ BusinessChartAccountsEnum.HOME_OFFICE_OTHER,
3291
+ ]; }
3287
3292
  /**
3288
3293
  * Return name as string
3289
3294
  */
@@ -3294,16 +3299,16 @@ class ChartAccounts extends ChartAccounts$1 {
3294
3299
  * Check if chart accounts id is related for 'Kms travelled for work' category
3295
3300
  */
3296
3301
  isKmsForWork() {
3297
- return this.id === ChartAccountsListEnum.KLMS_TRAVELLED_FOR_WORK;
3302
+ return this.id === ChartAccountsListEnum.KMS_TRAVELLED;
3298
3303
  }
3299
3304
  /**
3300
3305
  * Check if chart accounts id is related for 'Kms travelled for sole' category
3301
3306
  */
3302
3307
  isKmsForSole() {
3303
- return this.id === ChartAccountsListEnum.KLMS_TRAVELLED;
3308
+ return this.id === BusinessChartAccountsEnum.KMS_TRAVELLED;
3304
3309
  }
3305
3310
  isKms() {
3306
- return [ChartAccountsListEnum.KLMS_TRAVELLED_FOR_WORK, ChartAccountsListEnum.KLMS_TRAVELLED].includes(this.id);
3311
+ return [ChartAccountsListEnum.KMS_TRAVELLED, BusinessChartAccountsEnum.KMS_TRAVELLED].includes(this.id);
3307
3312
  }
3308
3313
  /**
3309
3314
  * special type used for just pre-paying tax to the ATO, uses on tax summary
@@ -3321,7 +3326,7 @@ class ChartAccounts extends ChartAccounts$1 {
3321
3326
  * Check if chart accounts id is related for 'Motor Vehicles' category
3322
3327
  */
3323
3328
  isVehicles() {
3324
- return [ChartAccountsListEnum.WORK_VEHICLES, ChartAccountsListEnum.SOLE_VEHICLES].includes(this.id);
3329
+ return [ChartAccountsListEnum.VEHICLES, BusinessChartAccountsEnum.VEHICLES].includes(this.id);
3325
3330
  }
3326
3331
  /**
3327
3332
  * Check if chart accounts id is related for 'Interest Earned' category
@@ -3410,10 +3415,10 @@ class ChartAccounts extends ChartAccounts$1 {
3410
3415
  return this.isVehicleLoanInterest() || this.isVehicleLoanPrinciple();
3411
3416
  }
3412
3417
  isVehicleLoanPrinciple() {
3413
- return [ChartAccountsListEnum.VEHICLE_LOAN_PRINCIPAL, ChartAccountsListEnum.SOLE_VEHICLE_LOAN_PRINCIPAL].includes(this.id);
3418
+ return [ChartAccountsListEnum.VEHICLE_LOAN_PRINCIPAL, BusinessChartAccountsEnum.VEHICLE_LOAN_PRINCIPAL].includes(this.id);
3414
3419
  }
3415
3420
  isVehicleLoanInterest() {
3416
- return [ChartAccountsListEnum.VEHICLE_LOAN_INTEREST, ChartAccountsListEnum.SOLE_VEHICLE_LOAN_INTEREST].includes(this.id);
3421
+ return [ChartAccountsListEnum.VEHICLE_LOAN_INTEREST, BusinessChartAccountsEnum.VEHICLE_LOAN_INTEREST].includes(this.id);
3417
3422
  }
3418
3423
  /**
3419
3424
  * Get chart accounts value for current financial year
@@ -3430,11 +3435,11 @@ class ChartAccounts extends ChartAccounts$1 {
3430
3435
  /**
3431
3436
  * no way to check how much used for work/sole, so we let user adjust it
3432
3437
  * except vehicle expense, which is equal to vehicleClaim.workUsage
3433
- * except when taxablePercent=0, but not SOLE_ENTERTAINMENT
3438
+ * except when taxablePercent=0, but not ENTERTAINMENT
3434
3439
  */
3435
3440
  isClaimPercentEditable() {
3436
3441
  return ((this.isWorkExpense() || this.isSoleExpense()) && !this.isVehicleExpense() && this.taxablePercent > 0)
3437
- || this.id === ChartAccountsListEnum.SOLE_ENTERTAINMENT;
3442
+ || this.id === BusinessChartAccountsEnum.ENTERTAINMENT;
3438
3443
  }
3439
3444
  /**
3440
3445
  * get label for transaction tax field depended on selected chart account.
@@ -3488,8 +3493,11 @@ class ChartAccounts extends ChartAccounts$1 {
3488
3493
  isDividends() {
3489
3494
  return this.id === ChartAccountsListEnum.DIVIDENDS;
3490
3495
  }
3496
+ isHomeOfficeExpense() {
3497
+ return ChartAccounts.homeOfficeList.includes(this.id);
3498
+ }
3491
3499
  isHomeOfficeWorkHours() {
3492
- return this.id === ChartAccountsListEnum.HOME_OFFICE_WORK_HOURS;
3500
+ return this.id === ChartAccountsListEnum.HOME_OFFICE_HOURS;
3493
3501
  }
3494
3502
  /**
3495
3503
  * income requiring extra data like adjustments/payer/etc
@@ -4777,6 +4785,29 @@ class SoleInvoiceItem extends SoleInvoiceItem$1 {
4777
4785
  super(...arguments);
4778
4786
  this.isGST = false;
4779
4787
  }
4788
+ static { this.chartAccounts = [
4789
+ BusinessChartAccountsEnum.PSI_ABN_NOT_QUOTED,
4790
+ BusinessChartAccountsEnum.PSI_LABOUR_HIRE_OR_OTHER,
4791
+ BusinessChartAccountsEnum.PSI_VOLUNTARY_AGREEMENT,
4792
+ BusinessChartAccountsEnum.SALES,
4793
+ BusinessChartAccountsEnum.LABOUR,
4794
+ BusinessChartAccountsEnum.UBER_INCOME,
4795
+ BusinessChartAccountsEnum.COMMISSION,
4796
+ BusinessChartAccountsEnum.PARTS_CONSUMABLES,
4797
+ BusinessChartAccountsEnum.OTHER_BUSINESS_INCOME,
4798
+ BusinessChartAccountsEnum.ASSESSIBLE_GOVERNMENT_PAYMENTS,
4799
+ BusinessChartAccountsEnum.GROSS_PAYMENTS_NO_ABN_GIVEN,
4800
+ BusinessChartAccountsEnum.GROSS_PAYMENTS_VOLUNTARY_AGREEMENT,
4801
+ BusinessChartAccountsEnum.GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS,
4802
+ BusinessChartAccountsEnum.CONTRACTORS_AND_COMMISSION,
4803
+ BusinessChartAccountsEnum.SUPERANNUATION,
4804
+ BusinessChartAccountsEnum.PSI_OTHER,
4805
+ BusinessChartAccountsEnum.OTHER_ASSESSABLE_PAYMENTS,
4806
+ BusinessChartAccountsEnum.JOBKEEPER,
4807
+ BusinessChartAccountsEnum.GST_REFUND,
4808
+ BusinessChartAccountsEnum.PAYG_INSTALLMENTS,
4809
+ BusinessChartAccountsEnum.INTEREST_EARNED
4810
+ ]; }
4780
4811
  get totalPrice() {
4781
4812
  return this.price * this.quantity;
4782
4813
  }
@@ -6337,7 +6368,7 @@ class Transaction extends Transaction$1 {
6337
6368
  return !this.parentTransaction
6338
6369
  && !this.isCash()
6339
6370
  && !(this.isSoleTank() && this.isIncome())
6340
- && !Object.values(ChartAccountsUnallocatableListEnum).includes(this.chartAccounts.id)
6371
+ && this.isEditable()
6341
6372
  && !this.isAllocated(allocations);
6342
6373
  }
6343
6374
  /**
@@ -6421,6 +6452,9 @@ class Transaction extends Transaction$1 {
6421
6452
  this.incomeSource = transaction.incomeSource;
6422
6453
  this.business = transaction.business;
6423
6454
  }
6455
+ isEditable() {
6456
+ return !ChartAccounts.systemList.includes(this.chartAccounts.id);
6457
+ }
6424
6458
  }
6425
6459
  __decorate([
6426
6460
  Type(() => Transaction)
@@ -6452,6 +6486,9 @@ __decorate([
6452
6486
  __decorate([
6453
6487
  Type(() => SoleInvoiceItem)
6454
6488
  ], Transaction.prototype, "invoiceItem", void 0);
6489
+ __decorate([
6490
+ Type(() => SoleBusiness)
6491
+ ], Transaction.prototype, "business", void 0);
6455
6492
  __decorate([
6456
6493
  Transform(({ value }) => +value)
6457
6494
  ], Transaction.prototype, "tax", void 0);
@@ -6975,7 +7012,7 @@ class TransactionCollection extends TransactionBaseCollection {
6975
7012
  getLogbookTransactions() {
6976
7013
  return this
6977
7014
  .getVehicleTransactions()
6978
- .removeBy('chartAccounts.id', [ChartAccountsListEnum.KLMS_TRAVELLED_FOR_WORK, ChartAccountsListEnum.KLMS_TRAVELLED]);
7015
+ .removeBy('chartAccounts.id', [ChartAccountsListEnum.KMS_TRAVELLED, BusinessChartAccountsEnum.KMS_TRAVELLED]);
6979
7016
  }
6980
7017
  /**
6981
7018
  * Build chart data with transactions cash position.
@@ -7248,22 +7285,22 @@ class MyTaxBusinessDetails {
7248
7285
  */
7249
7286
  const BUSINESS_INCOME_OR_LOSSES_CATEGORIES = {
7250
7287
  psiIncomes: [
7251
- ChartAccountsListEnum.PSI_VOLUNTARY_AGREEMENT,
7252
- ChartAccountsListEnum.PSI_ABN_NOT_QUOTED,
7253
- ChartAccountsListEnum.PSI_LABOUR_HIRE_OR_OTHER,
7254
- ChartAccountsListEnum.PSI_OTHER,
7288
+ BusinessChartAccountsEnum.PSI_VOLUNTARY_AGREEMENT,
7289
+ BusinessChartAccountsEnum.PSI_ABN_NOT_QUOTED,
7290
+ BusinessChartAccountsEnum.PSI_LABOUR_HIRE_OR_OTHER,
7291
+ BusinessChartAccountsEnum.PSI_OTHER,
7255
7292
  ],
7256
7293
  psiDeductions: [
7257
- ChartAccountsListEnum.PSI_DEDUCTION_ASSOCIATES,
7258
- ChartAccountsListEnum.PSI_DEDUCTION_OTHER
7294
+ BusinessChartAccountsEnum.PSI_DEDUCTION_ASSOCIATES,
7295
+ BusinessChartAccountsEnum.PSI_DEDUCTION_OTHER
7259
7296
  ],
7260
7297
  otherBusinessIncome: [
7261
- ChartAccountsListEnum.SALES,
7262
- ChartAccountsListEnum.LABOUR,
7263
- ChartAccountsListEnum.UBER_INCOME,
7264
- ChartAccountsListEnum.COMMISSION,
7265
- ChartAccountsListEnum.PARTS_CONSUMABLES,
7266
- ChartAccountsListEnum.OTHER_BUSINESS_INCOME
7298
+ BusinessChartAccountsEnum.SALES,
7299
+ BusinessChartAccountsEnum.LABOUR,
7300
+ BusinessChartAccountsEnum.UBER_INCOME,
7301
+ BusinessChartAccountsEnum.COMMISSION,
7302
+ BusinessChartAccountsEnum.PARTS_CONSUMABLES,
7303
+ BusinessChartAccountsEnum.OTHER_BUSINESS_INCOME
7267
7304
  ]
7268
7305
  };
7269
7306
 
@@ -7275,22 +7312,22 @@ class MyTaxBusinessIncome {
7275
7312
  constructor(psiIncome, soleIncome, taxSummary) {
7276
7313
  this.psiIncomeAmount = psiIncome.filterBy('chartAccounts.heading.id', ChartAccountsHeadingListEnum.PSI).amount;
7277
7314
  this.psiVoluntaryAgreementAmount = psiIncome
7278
- .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_VOLUNTARY_AGREEMENT)
7315
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.PSI_VOLUNTARY_AGREEMENT)
7279
7316
  .amount;
7280
7317
  this.psiABNNotQuotedAmount = psiIncome
7281
- .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_ABN_NOT_QUOTED)
7318
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.PSI_ABN_NOT_QUOTED)
7282
7319
  .amount;
7283
7320
  this.psiLabourHireOrOtherAmount = psiIncome
7284
- .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_LABOUR_HIRE_OR_OTHER)
7321
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.PSI_LABOUR_HIRE_OR_OTHER)
7285
7322
  .amount;
7286
7323
  this.psiOtherAmount = psiIncome
7287
- .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_OTHER)
7324
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.PSI_OTHER)
7288
7325
  .amount;
7289
7326
  this.psiDeductionAssociatesAmount = psiIncome
7290
- .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_DEDUCTION_ASSOCIATES)
7327
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.PSI_DEDUCTION_ASSOCIATES)
7291
7328
  .amount;
7292
7329
  this.psiDeductionOtherAmount = psiIncome
7293
- .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_DEDUCTION_OTHER)
7330
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.PSI_DEDUCTION_OTHER)
7294
7331
  .amount;
7295
7332
  this.netPSIAmount = psiIncome
7296
7333
  .filterBy('chartAccounts.id', BUSINESS_INCOME_OR_LOSSES_CATEGORIES.psiIncomes)
@@ -7299,41 +7336,41 @@ class MyTaxBusinessIncome {
7299
7336
  .filterBy('chartAccounts.id', BUSINESS_INCOME_OR_LOSSES_CATEGORIES.psiDeductions)
7300
7337
  .amount;
7301
7338
  this.psiVoluntaryAgreementTax = psiIncome
7302
- .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_VOLUNTARY_AGREEMENT)
7339
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.PSI_VOLUNTARY_AGREEMENT)
7303
7340
  .sumBy('tax');
7304
7341
  this.psiABNNotQuotedTax = psiIncome
7305
- .filterBy('chartAccounts.id', ChartAccountsListEnum.PSI_ABN_NOT_QUOTED)
7342
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.PSI_ABN_NOT_QUOTED)
7306
7343
  .sumBy('tax');
7307
7344
  this.psiLabourHireOrOtherTax = psiIncome
7308
- .filterBy('chartAccounts.id', [ChartAccountsListEnum.PSI_LABOUR_HIRE_OR_OTHER, ChartAccountsListEnum.PSI_OTHER])
7345
+ .filterBy('chartAccounts.id', [BusinessChartAccountsEnum.PSI_LABOUR_HIRE_OR_OTHER, BusinessChartAccountsEnum.PSI_OTHER])
7309
7346
  .sumBy('tax');
7310
7347
  this.netPSITax = psiIncome
7311
7348
  .filterBy('chartAccounts.id', BUSINESS_INCOME_OR_LOSSES_CATEGORIES.psiIncomes)
7312
7349
  .sumBy('tax');
7313
7350
  this.grossPaymentsNoAbsGivenAmount = soleIncome
7314
- .filterBy('chartAccounts.id', ChartAccountsListEnum.GROSS_PAYMENTS_NO_ABN_GIVEN)
7351
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.GROSS_PAYMENTS_NO_ABN_GIVEN)
7315
7352
  .amount;
7316
7353
  this.grossPaymentsVoluntaryAgreementAmount = soleIncome
7317
- .filterBy('chartAccounts.id', ChartAccountsListEnum.GROSS_PAYMENTS_VOLUNTARY_AGREEMENT)
7354
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.GROSS_PAYMENTS_VOLUNTARY_AGREEMENT)
7318
7355
  .amount;
7319
7356
  this.grossPaymentsLabourHireAmount = soleIncome
7320
- .filterBy('chartAccounts.id', ChartAccountsListEnum.GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS)
7357
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS)
7321
7358
  .amount;
7322
7359
  this.assessibleGovernmentPaymentsAmount = soleIncome
7323
- .filterBy('chartAccounts.id', ChartAccountsListEnum.ASSESSIBLE_GOVERNMENT_PAYMENTS)
7360
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.ASSESSIBLE_GOVERNMENT_PAYMENTS)
7324
7361
  .amount;
7325
7362
  this.otherBusinessIncomeAmount = taxSummary.sole.items.sumByCategories([TaxReturnCategoryListEnum.OTHER_BUSINESS_INCOME]);
7326
7363
  this.nonPrimaryProductionTotalAmount = soleIncome
7327
7364
  .filterBy('chartAccounts.category', ChartAccountsCategoryEnum.SOLE_INCOME)
7328
7365
  .amount;
7329
7366
  this.grossPaymentsNoAbsGivenTax = soleIncome
7330
- .filterBy('chartAccounts.id', ChartAccountsListEnum.GROSS_PAYMENTS_NO_ABN_GIVEN)
7367
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.GROSS_PAYMENTS_NO_ABN_GIVEN)
7331
7368
  .sumBy('tax');
7332
7369
  this.grossPaymentsVoluntaryAgreementTax = soleIncome
7333
- .filterBy('chartAccounts.id', ChartAccountsListEnum.GROSS_PAYMENTS_VOLUNTARY_AGREEMENT)
7370
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.GROSS_PAYMENTS_VOLUNTARY_AGREEMENT)
7334
7371
  .sumBy('tax');
7335
7372
  this.grossPaymentsLabourHireTax = soleIncome
7336
- .filterBy('chartAccounts.id', ChartAccountsListEnum.GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS)
7373
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS)
7337
7374
  .sumBy('tax');
7338
7375
  }
7339
7376
  }
@@ -7355,34 +7392,34 @@ class MyTaxBusinessLosses {
7355
7392
  constructor(transactions, depreciations, businessLosses, currentLoss, taxSummary) {
7356
7393
  this.currentLoss = currentLoss;
7357
7394
  this.purchasesAndOtherCostsAmount = Math.abs(transactions.getExpenseTransactions()
7358
- .filterBy('chartAccounts.id', ChartAccountsListEnum.PURCHASES_STOCK_INVENTORY)
7395
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.PURCHASES_STOCK_INVENTORY)
7359
7396
  .sumBy('claimAmount'));
7360
7397
  this.contractorsAndCommissionAmount = Math.abs(transactions.getExpenseTransactions()
7361
- .filterBy('chartAccounts.id', ChartAccountsListEnum.CONTRACTORS_AND_COMMISSION)
7398
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.CONTRACTORS_AND_COMMISSION)
7362
7399
  .sumBy('claimAmount'));
7363
7400
  this.superannuationAmount = Math.abs(transactions.getExpenseTransactions()
7364
- .filterBy('chartAccounts.id', ChartAccountsListEnum.SUPERANNUATION)
7401
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.SUPERANNUATION)
7365
7402
  .sumBy('claimAmount'));
7366
7403
  this.badDebtAmount = Math.abs(transactions.getExpenseTransactions()
7367
- .filterBy('chartAccounts.id', ChartAccountsListEnum.BAD_DEBT)
7404
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.BAD_DEBT)
7368
7405
  .sumBy('claimAmount'));
7369
7406
  this.leaseExpensesCommercialAmount = Math.abs(transactions.getExpenseTransactions()
7370
- .filterBy('chartAccounts.id', ChartAccountsListEnum.LEASE_EXPENSES_COMMERCIAL)
7407
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.LEASE_EXPENSES_COMMERCIAL)
7371
7408
  .sumBy('claimAmount'));
7372
7409
  this.rentExpensesCommercialPremisesAmount = Math.abs(transactions.getExpenseTransactions()
7373
- .filterBy('chartAccounts.id', ChartAccountsListEnum.RENT_EXPENSES_COMMERCIAL_PREMISES)
7410
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.RENT_EXPENSES_COMMERCIAL_PREMISES)
7374
7411
  .sumBy('claimAmount'));
7375
7412
  this.interestExpensesAustraliaAmount = Math.abs(transactions.getExpenseTransactions()
7376
- .filterBy('chartAccounts.id', ChartAccountsListEnum.INTEREST_EXPENSES_AUSTRALIA)
7413
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.INTEREST_EXPENSES_AUSTRALIA)
7377
7414
  .sumBy('claimAmount'));
7378
7415
  this.interestExpensesOverseasAmount = Math.abs(transactions.getExpenseTransactions()
7379
- .filterBy('chartAccounts.id', ChartAccountsListEnum.INTEREST_EXPENSES_OVERSEAS)
7416
+ .filterBy('chartAccounts.id', BusinessChartAccountsEnum.INTEREST_EXPENSES_OVERSEAS)
7380
7417
  .sumBy('claimAmount'));
7381
7418
  this.kmsTravelledExpensesAmount = Math.abs(transactions
7382
- .filterBy('chartAccounts.category', [ChartAccountsListEnum.KLMS_TRAVELLED])
7419
+ .filterBy('chartAccounts.category', [BusinessChartAccountsEnum.KMS_TRAVELLED])
7383
7420
  .sumBy('claimAmount') +
7384
7421
  depreciations
7385
- .filterBy('chartAccounts.category', [ChartAccountsListEnum.KLMS_TRAVELLED])
7422
+ .filterBy('chartAccounts.category', [BusinessChartAccountsEnum.KMS_TRAVELLED])
7386
7423
  .sumBy('claimAmount'));
7387
7424
  this.logbookExpensesAmount = Math.abs(transactions.getVehicleTransactions().sumBy('claimAmount')) +
7388
7425
  depreciations.getVehicleDepreciations().sumBy('claimAmount');
@@ -9084,7 +9121,7 @@ class ChartAccountsCollection extends Collection {
9084
9121
  * Get 'Kms travelled for work' related chart account value
9085
9122
  */
9086
9123
  getVehicleKmsRate(year = new FinancialYear().year) {
9087
- return this.findBy('id', ChartAccountsListEnum.KLMS_TRAVELLED_FOR_WORK).getValueByYear(year).value;
9124
+ return this.findBy('id', ChartAccountsListEnum.KMS_TRAVELLED).getValueByYear(year).value;
9088
9125
  }
9089
9126
  }
9090
9127
 
@@ -9513,6 +9550,29 @@ class AssetSaleCollection extends Collection {
9513
9550
  }
9514
9551
  }
9515
9552
 
9553
+ class ChartAccountsValueCollection extends Collection {
9554
+ /**
9555
+ * $ amount u can claim per 1km
9556
+ */
9557
+ getKmsRate(isSole) {
9558
+ const chartAccountsId = isSole ? BusinessChartAccountsEnum.KMS_TRAVELLED : ChartAccountsListEnum.KMS_TRAVELLED;
9559
+ return this.find((ca) => ca.chartAccounts.id === chartAccountsId && new FinancialYear().year === ca.financialYear).value;
9560
+ }
9561
+ /**
9562
+ * $ amount u can claim per 1hour
9563
+ */
9564
+ getHoursRate(isSole) {
9565
+ const chartAccountsId = isSole ? BusinessChartAccountsEnum.HOME_OFFICE_HOURS : ChartAccountsListEnum.HOME_OFFICE_HOURS;
9566
+ return this.find((ca) => ca.chartAccounts.id === chartAccountsId && new FinancialYear().year === ca.financialYear).value;
9567
+ }
9568
+ }
9569
+
9570
+ class HomeOfficeClaimCollection extends Collection {
9571
+ findByBusiness(business) {
9572
+ return business ? this.findBy('business.id', business.id) : this.findBy('business', null);
9573
+ }
9574
+ }
9575
+
9516
9576
  // @TODO Alex move here all collections
9517
9577
 
9518
9578
  class Loan extends Loan$1 {
@@ -10182,7 +10242,7 @@ __decorate([
10182
10242
  * List of objects grouped by passed property
10183
10243
  */
10184
10244
  class Dictionary {
10185
- constructor(items, path = 'id') {
10245
+ constructor(items = [], path = 'id') {
10186
10246
  this.items = {};
10187
10247
  if (!items.length) {
10188
10248
  return;
@@ -10191,6 +10251,7 @@ class Dictionary {
10191
10251
  }
10192
10252
  add(key, value) {
10193
10253
  this.items[key] = value;
10254
+ return this;
10194
10255
  }
10195
10256
  get(key) {
10196
10257
  return this.items[key] !== undefined ? this.items[key] : null;
@@ -10663,6 +10724,54 @@ __decorate([
10663
10724
  Type(() => TaxReturnItem)
10664
10725
  ], TaxReturn.prototype, "taxReturnItems", void 0);
10665
10726
 
10727
+ class HomeOfficeClaim extends ObservableModel {
10728
+ constructor() {
10729
+ super(...arguments);
10730
+ this.hours = 0;
10731
+ this.electricityAndGas = 0;
10732
+ this.cleaning = 0;
10733
+ this.internet = 0;
10734
+ this.telephone = 0;
10735
+ this.mobile = 0;
10736
+ this.officePercent = 0;
10737
+ }
10738
+ static { this.className = 'HomeOfficeClaim'; }
10739
+ getChartAccountsList() {
10740
+ return this.business ? BusinessChartAccountsEnum : ChartAccountsListEnum;
10741
+ }
10742
+ getChartAccountsClaims() {
10743
+ const claims = new Dictionary([]);
10744
+ const list = this.getChartAccountsList();
10745
+ claims.add(list.ELECTRICITY_AND_GAS, this.electricityAndGas)
10746
+ .add(list.HOME_OFFICE_CLEANING, this.cleaning)
10747
+ .add(list.INTERNET, this.internet)
10748
+ .add(list.TELEPHONE, this.telephone)
10749
+ .add(list.MOBILE_PHONE, this.mobile);
10750
+ if (this.method === HomeOfficeClaimMethodEnum.OCCUPANCY) {
10751
+ claims.add(BusinessChartAccountsEnum.HOME_OFFICE_RENT, this.officePercent);
10752
+ claims.add(BusinessChartAccountsEnum.HOME_OFFICE_LOAN, this.officePercent);
10753
+ claims.add(BusinessChartAccountsEnum.HOME_OFFICE_RATES, this.officePercent);
10754
+ claims.add(BusinessChartAccountsEnum.HOME_OFFICE_OTHER, this.officePercent);
10755
+ }
10756
+ return claims;
10757
+ }
10758
+ }
10759
+ __decorate([
10760
+ Type(() => User)
10761
+ ], HomeOfficeClaim.prototype, "user", void 0);
10762
+ __decorate([
10763
+ Type(() => SoleBusiness)
10764
+ ], HomeOfficeClaim.prototype, "business", void 0);
10765
+
10766
+ class HomeOfficeLog extends AbstractModel {
10767
+ }
10768
+ __decorate([
10769
+ Type(() => HomeOfficeClaim)
10770
+ ], HomeOfficeLog.prototype, "claim", void 0);
10771
+ __decorate([
10772
+ Type(() => SoleBusiness)
10773
+ ], HomeOfficeLog.prototype, "business", void 0);
10774
+
10666
10775
  class CorelogicService {
10667
10776
  constructor(http, environment) {
10668
10777
  this.http = http;
@@ -10980,7 +11089,7 @@ class DataService {
10980
11089
  * never return cache directly to prevent update
10981
11090
  */
10982
11091
  getCacheFirst() {
10983
- return clone(this.cache?.first);
11092
+ return this.getCache()?.first;
10984
11093
  }
10985
11094
  /**
10986
11095
  * @TODO vik any[] because of problems with base models extending abstractModel
@@ -11070,6 +11179,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
11070
11179
  }] });
11071
11180
 
11072
11181
  /**
11182
+ * @TODO refactor to behavior subject?
11073
11183
  * Abstract base service that implements common services functionality
11074
11184
  * and describe abstract methods/properties that have to be implemented in child services
11075
11185
  * Model - entity service is working with
@@ -11121,7 +11231,7 @@ let RestService$1 = class RestService extends DataService {
11121
11231
  * perform a shallow copy of the emitted data to make it immutable
11122
11232
  */
11123
11233
  getCacheSubjectObservable() {
11124
- return this.cacheSubject.asObservable().pipe(map((cache) => clone(cache)));
11234
+ return this.cacheSubject.asObservable().pipe(map((cache) => cloneDeep$1(cache)));
11125
11235
  }
11126
11236
  /**
11127
11237
  * Get data from backend and fill the cache
@@ -11138,6 +11248,9 @@ let RestService$1 = class RestService extends DataService {
11138
11248
  .pipe(map((response) => Array.isArray(response) ? response : toArray(response)), map((response) => {
11139
11249
  this.setCache(response, true);
11140
11250
  return this.cache;
11251
+ }), catchError(() => {
11252
+ this.toastService.error('An error occurred while fetching data');
11253
+ return of(this.cache);
11141
11254
  }));
11142
11255
  }
11143
11256
  get(path = this.apiUrl) {
@@ -11174,6 +11287,9 @@ let RestService$1 = class RestService extends DataService {
11174
11287
  this.handleResponse([result], 'post');
11175
11288
  }
11176
11289
  return result;
11290
+ }), catchError(() => {
11291
+ this.toastService.error('An error occurred while posting data');
11292
+ return of(null);
11177
11293
  }));
11178
11294
  }
11179
11295
  /**
@@ -11188,6 +11304,9 @@ let RestService$1 = class RestService extends DataService {
11188
11304
  this.handleResponse(result, 'post');
11189
11305
  }
11190
11306
  return result;
11307
+ }), catchError(() => {
11308
+ this.toastService.error('An error occurred while posting data');
11309
+ return of([]);
11191
11310
  }));
11192
11311
  }
11193
11312
  /**
@@ -11202,6 +11321,9 @@ let RestService$1 = class RestService extends DataService {
11202
11321
  this.handleResponse([result], 'put');
11203
11322
  }
11204
11323
  return result;
11324
+ }), catchError(() => {
11325
+ this.toastService.error('An error occurred while put data');
11326
+ return of(null);
11205
11327
  }));
11206
11328
  }
11207
11329
  /**
@@ -11228,6 +11350,9 @@ let RestService$1 = class RestService extends DataService {
11228
11350
  if (!this.mercureTopic) {
11229
11351
  this.handleResponse([model], 'delete');
11230
11352
  }
11353
+ }), catchError(() => {
11354
+ this.toastService.error('An error occurred while deleting data');
11355
+ return of(null);
11231
11356
  }));
11232
11357
  }
11233
11358
  /**
@@ -11240,6 +11365,9 @@ let RestService$1 = class RestService extends DataService {
11240
11365
  if (!this.mercureTopic) {
11241
11366
  this.handleResponse(models, 'delete');
11242
11367
  }
11368
+ }), catchError(() => {
11369
+ this.toastService.error('An error occurred while deleting data');
11370
+ return of(null);
11243
11371
  }));
11244
11372
  }
11245
11373
  /**
@@ -13142,6 +13270,12 @@ class RestService {
13142
13270
  createModelInstance(model) {
13143
13271
  return plainToClass(this.modelClass, model);
13144
13272
  }
13273
+ /**
13274
+ * never return cache directly to prevent update
13275
+ */
13276
+ getCache() {
13277
+ return clone(this.cache);
13278
+ }
13145
13279
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RestService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
13146
13280
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RestService, providedIn: 'root' }); }
13147
13281
  }
@@ -15259,6 +15393,7 @@ class TransactionService extends RestService {
15259
15393
  this.eventDispatcherService.on2(PropertyShare.getEventName('put')).subscribe(() => this.refreshCache());
15260
15394
  this.listenDepreciationChange();
15261
15395
  this.listenVehicleClaimChanges();
15396
+ this.listenHomeOfficeClaim();
15262
15397
  this.listenPropertyForecastUpdate();
15263
15398
  this.listenNotifications();
15264
15399
  }
@@ -15439,9 +15574,12 @@ class TransactionService extends RestService {
15439
15574
  }
15440
15575
  listenVehicleClaimChanges() {
15441
15576
  this.eventDispatcherService.on2(...VehicleClaim.getEventNames('post', 'put')).subscribe(() => this.refreshCache());
15442
- this.eventDispatcherService.on([
15443
- AppEventTypeEnum.VEHICLE_CLAIM_DETAILS_UPDATED
15444
- ]).subscribe(() => {
15577
+ this.eventDispatcherService.on([AppEventTypeEnum.VEHICLE_CLAIM_DETAILS_UPDATED]).subscribe(() => {
15578
+ this.refreshCache();
15579
+ });
15580
+ }
15581
+ listenHomeOfficeClaim() {
15582
+ this.eventDispatcherService.on2(...HomeOfficeClaim.getEventNames('post', 'put')).subscribe(() => {
15445
15583
  this.refreshCache();
15446
15584
  });
15447
15585
  }
@@ -16285,6 +16423,65 @@ var HoldingTypeMessagesEnum;
16285
16423
  HoldingTypeMessagesEnum["DELETED"] = "Holding type deleted successfully";
16286
16424
  })(HoldingTypeMessagesEnum || (HoldingTypeMessagesEnum = {}));
16287
16425
 
16426
+ class HomeOfficeClaimService extends RestService$1 {
16427
+ constructor() {
16428
+ super(...arguments);
16429
+ this.endpointUri = 'home-office-claims';
16430
+ this.modelClass = HomeOfficeClaim;
16431
+ this.collectionClass = HomeOfficeClaimCollection;
16432
+ this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
16433
+ }
16434
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
16435
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeClaimService, providedIn: 'root' }); }
16436
+ }
16437
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeClaimService, decorators: [{
16438
+ type: Injectable,
16439
+ args: [{
16440
+ providedIn: 'root'
16441
+ }]
16442
+ }] });
16443
+
16444
+ var HomeOfficeClaimMessagesEnum;
16445
+ (function (HomeOfficeClaimMessagesEnum) {
16446
+ HomeOfficeClaimMessagesEnum["CREATED"] = "Claim created";
16447
+ HomeOfficeClaimMessagesEnum["UPDATED"] = "Claim updated";
16448
+ HomeOfficeClaimMessagesEnum["DELETED"] = "Claim deleted";
16449
+ HomeOfficeClaimMessagesEnum["CONFIRM_DELETE"] = "Are you sure you want to delete this claim?";
16450
+ })(HomeOfficeClaimMessagesEnum || (HomeOfficeClaimMessagesEnum = {}));
16451
+
16452
+ class HomeOfficeLogService extends RestService$1 {
16453
+ constructor() {
16454
+ super(...arguments);
16455
+ this.endpointUri = 'home-office-logs';
16456
+ this.modelClass = HomeOfficeClaim;
16457
+ this.collectionClass = (Collection);
16458
+ this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
16459
+ }
16460
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeLogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
16461
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeLogService, providedIn: 'root' }); }
16462
+ }
16463
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeLogService, decorators: [{
16464
+ type: Injectable,
16465
+ args: [{
16466
+ providedIn: 'root'
16467
+ }]
16468
+ }] });
16469
+
16470
+ var HomeOfficeLogMessagesEnum;
16471
+ (function (HomeOfficeLogMessagesEnum) {
16472
+ HomeOfficeLogMessagesEnum["CREATED"] = "Log created";
16473
+ HomeOfficeLogMessagesEnum["UPDATED"] = "Log updated";
16474
+ HomeOfficeLogMessagesEnum["DELETED"] = "Log deleted";
16475
+ HomeOfficeLogMessagesEnum["CONFIRM_DELETE"] = "Are you sure you want to delete this Log?";
16476
+ })(HomeOfficeLogMessagesEnum || (HomeOfficeLogMessagesEnum = {}));
16477
+
16478
+ var RestMessagesEnum;
16479
+ (function (RestMessagesEnum) {
16480
+ RestMessagesEnum["POST"] = "Created";
16481
+ RestMessagesEnum["PUT"] = "Updated";
16482
+ RestMessagesEnum["DELETE"] = "Deleted";
16483
+ })(RestMessagesEnum || (RestMessagesEnum = {}));
16484
+
16288
16485
  var IncomeSourceTypes = [
16289
16486
  {
16290
16487
  id: 11,
@@ -16369,16 +16566,9 @@ class ChartAccountsValueService extends DataService {
16369
16566
  constructor() {
16370
16567
  super();
16371
16568
  this.modelClass = ChartAccountsValue;
16372
- this.collectionClass = Collection;
16569
+ this.collectionClass = ChartAccountsValueCollection;
16373
16570
  this.setCache(ChartAccountsValues);
16374
16571
  }
16375
- /**
16376
- * $ amount u can claim per 1km
16377
- */
16378
- getKmsRate(isSole) {
16379
- const chartAccountsId = isSole ? ChartAccountsListEnum.KLMS_TRAVELLED : ChartAccountsListEnum.KLMS_TRAVELLED_FOR_WORK;
16380
- return this.getCache().find((ca) => ca.chartAccounts.id === chartAccountsId && new FinancialYear().year === ca.financialYear).value;
16381
- }
16382
16572
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChartAccountsValueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
16383
16573
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChartAccountsValueService, providedIn: 'root' }); }
16384
16574
  }
@@ -19823,6 +20013,13 @@ const ENDPOINTS = {
19823
20013
  VEHICLE_CLAIMS_GET: new Endpoint('GET', '\\/vehicle-claims'),
19824
20014
  VEHICLE_CLAIMS_POST: new Endpoint('POST', '\\/vehicle-claims'),
19825
20015
  VEHICLE_CLAIMS_PUT: new Endpoint('PUT', '\\/vehicle-claims\\/\\d+'),
20016
+ HOME_OFFICE_CLAIM_GET: new Endpoint('GET', '\\/home-office-claims'),
20017
+ HOME_OFFICE_CLAIM_POST: new Endpoint('POST', '\\/home-office-claims'),
20018
+ HOME_OFFICE_CLAIM_PUT: new Endpoint('PUT', '\\/home-office-claims\\/\\d+'),
20019
+ HOME_OFFICE_LOG_GET: new Endpoint('GET', '\\/home-office-logs'),
20020
+ HOME_OFFICE_LOG_POST: new Endpoint('POST', '\\/home-office-logs'),
20021
+ HOME_OFFICE_LOG_PUT: new Endpoint('PUT', '\\/home-office-logs\\/\\d+'),
20022
+ HOME_OFFICE_LOG_DELETE: new Endpoint('DELETE', '\\/home-office-logs\\/\\d+'),
19826
20023
  VEHICLE_LOGBOOKS_GET: new Endpoint('GET', '\\/vehicles\\/logbooks'),
19827
20024
  VEHICLE_LOGBOOKS_POST: new Endpoint('POST', '\\/vehicles\\/logbooks'),
19828
20025
  VEHICLE_LOGBOOKS_PUT: new Endpoint('PUT', '\\/vehicles\\/logbooks\\/\\d+'),
@@ -20524,8 +20721,8 @@ class AbstractForm extends FormGroup {
20524
20721
  get currentValue() {
20525
20722
  return this.createModelInstance(Object.assign({}, this.model, this.getRawValue()));
20526
20723
  }
20527
- toggleEnabledState() {
20528
- this.enabled ? this.disable() : this.enable();
20724
+ toggleEnabledState(control) {
20725
+ control.enabled ? control.disable() : control.enable();
20529
20726
  }
20530
20727
  /**
20531
20728
  * Check validation and return a new instance of generic model.
@@ -20600,6 +20797,38 @@ class AbstractForm extends FormGroup {
20600
20797
  fieldChanged(name) {
20601
20798
  return this.get(name).value !== this.initialValue[name];
20602
20799
  }
20800
+ addValidators(validators, controls = []) {
20801
+ if (!controls.length) {
20802
+ return super.addValidators(validators);
20803
+ }
20804
+ controls.forEach(control => {
20805
+ control.addValidators(Validators.required);
20806
+ });
20807
+ }
20808
+ removeValidators(validators, controls = []) {
20809
+ if (!controls.length) {
20810
+ return super.removeValidators(validators);
20811
+ }
20812
+ controls.forEach(control => {
20813
+ control.removeValidators(Validators.required);
20814
+ });
20815
+ }
20816
+ disable(opts, controls = []) {
20817
+ if (!controls.length) {
20818
+ return super.disable(opts);
20819
+ }
20820
+ controls.forEach(control => {
20821
+ control.disable(opts);
20822
+ });
20823
+ }
20824
+ enable(opts, controls = []) {
20825
+ if (!controls.length) {
20826
+ return super.enable(opts);
20827
+ }
20828
+ controls.forEach(control => {
20829
+ control.enable(opts);
20830
+ });
20831
+ }
20603
20832
  }
20604
20833
 
20605
20834
  class CollectionForm extends FormArray {
@@ -21125,7 +21354,8 @@ function fieldsSumValidator(field, summary = 100, fieldAlias) {
21125
21354
  function currentFinYearValidator() {
21126
21355
  const currentFinYear = new FinancialYear();
21127
21356
  return (control) => {
21128
- if (!control.value || control.value >= currentFinYear.startDate && control.value <= currentFinYear.endDate) {
21357
+ const date = new Date(control.value);
21358
+ if (!control.value || date >= currentFinYear.startDate && date <= currentFinYear.endDate) {
21129
21359
  return null;
21130
21360
  }
21131
21361
  return { notCurrentFinYear: true };
@@ -23898,8 +24128,9 @@ class WorkIncomeForm extends WorkTransactionForm {
23898
24128
  }
23899
24129
 
23900
24130
  class WorkExpenseForm extends WorkTransactionForm {
23901
- constructor(transaction, registeredForGst, allocations, controls = {}) {
24131
+ constructor(transaction, registeredForGst, allocations, homeOfficeClaim, controls = {}) {
23902
24132
  super(transaction, registeredForGst, allocations, controls);
24133
+ this.homeOfficeClaim = homeOfficeClaim;
23903
24134
  // amount set automatically for chartAccounts with hours meta field
23904
24135
  if (transaction.getMetaFieldValue(ChartAccountsMetaFieldListEnum.HOURS)) {
23905
24136
  this.get('amount').disable();
@@ -23908,6 +24139,7 @@ class WorkExpenseForm extends WorkTransactionForm {
23908
24139
  }
23909
24140
  listenEvents() {
23910
24141
  this.watchChartAccountsMetaFields();
24142
+ this.watchChartAccounts();
23911
24143
  }
23912
24144
  watchChartAccountsMetaFields() {
23913
24145
  this.get('metaFields').valueChanges.subscribe((metaFields) => {
@@ -23925,6 +24157,17 @@ class WorkExpenseForm extends WorkTransactionForm {
23925
24157
  this.get('amountWithGST').setValue(amount);
23926
24158
  });
23927
24159
  }
24160
+ watchChartAccounts() {
24161
+ super.watchChartAccounts();
24162
+ this.get('chartAccounts').valueChanges.subscribe((chartAccounts) => {
24163
+ if (!chartAccounts.isHomeOfficeExpense() || !this.homeOfficeClaim) {
24164
+ return;
24165
+ }
24166
+ const claims = this.homeOfficeClaim.getChartAccountsClaims();
24167
+ this.get('claimPercent').patchValue(claims.get(chartAccounts.id));
24168
+ this.get('claimPercent').disable();
24169
+ });
24170
+ }
23928
24171
  }
23929
24172
 
23930
24173
  class HoldingIncomeForm extends WorkTransactionForm {
@@ -24343,6 +24586,78 @@ class ChatFilterForm extends FormGroup {
24343
24586
  }
24344
24587
  }
24345
24588
 
24589
+ class HomeOfficeClaimForm extends AbstractForm {
24590
+ constructor(claim = plainToClass(HomeOfficeClaim, {})) {
24591
+ super({
24592
+ method: new FormControl(claim.method, Validators.required),
24593
+ hours: new FormControl(claim.hours, [Validators.required, Validators.min(0), Validators.max(5000)]),
24594
+ electricityAndGas: new FormControl(claim.electricityAndGas, [Validators.required, Validators.min(0), Validators.max(100)]),
24595
+ cleaning: new FormControl(claim.cleaning, [Validators.required, Validators.min(0), Validators.max(100)]),
24596
+ internet: new FormControl(claim.internet, [Validators.required, Validators.min(0), Validators.max(100)]),
24597
+ telephone: new FormControl(claim.telephone, [Validators.required, Validators.min(0), Validators.max(100)]),
24598
+ mobile: new FormControl(claim.mobile, [Validators.required, Validators.min(0), Validators.max(100)]),
24599
+ officePercent: new FormControl(claim.officePercent, [Validators.required, Validators.min(0), Validators.max(100)]),
24600
+ }, claim);
24601
+ this.listenEvents();
24602
+ this.switchMethod(claim.method);
24603
+ }
24604
+ listenEvents() {
24605
+ this.get('method').valueChanges.subscribe(method => {
24606
+ this.switchMethod(method);
24607
+ });
24608
+ }
24609
+ switchMethod(method) {
24610
+ this.disable({}, [...this.occupancyControls, this.controls.hours]);
24611
+ switch (method) {
24612
+ case HomeOfficeClaimMethodEnum.FIXED:
24613
+ this.controls.hours.enable();
24614
+ break;
24615
+ case HomeOfficeClaimMethodEnum.ACTUAL:
24616
+ this.enable({}, this.actualControls);
24617
+ break;
24618
+ case HomeOfficeClaimMethodEnum.OCCUPANCY:
24619
+ this.enable({}, this.occupancyControls);
24620
+ break;
24621
+ }
24622
+ }
24623
+ get actualControls() {
24624
+ return [this.controls.electricityAndGas, this.controls.cleaning, this.controls.internet, this.controls.telephone, this.controls.mobile];
24625
+ }
24626
+ get occupancyControls() {
24627
+ return [...this.actualControls, this.controls.officePercent];
24628
+ }
24629
+ }
24630
+
24631
+ class HomeOfficeLogForm extends AbstractForm {
24632
+ constructor(log = plainToClass(HomeOfficeLog, {})) {
24633
+ super({
24634
+ date: new FormControl(log.date, [Validators.required, currentFinYearValidator()]),
24635
+ hours: new FormControl(log.hours, [Validators.required, Validators.min(0), Validators.max(5000)]),
24636
+ description: new FormControl(log.description, [Validators.required]),
24637
+ }, log);
24638
+ }
24639
+ }
24640
+
24641
+ class HomeOfficeCalculatorForm extends AbstractForm {
24642
+ constructor(claim = plainToClass(HomeOfficeClaim, {})) {
24643
+ super({
24644
+ homeArea: new FormControl(claim.homeArea, [Validators.required]),
24645
+ officeArea: new FormControl({ value: claim.officeArea, disabled: !!claim.dedicatedOffice }, [Validators.required]),
24646
+ dedicatedOffice: new FormControl(claim.dedicatedOffice, [Validators.required]),
24647
+ }, claim);
24648
+ this.listenEvents();
24649
+ }
24650
+ listenEvents() {
24651
+ this.get('dedicatedOffice').valueChanges.subscribe(() => {
24652
+ this.toggleEnabledState(this.get('officeArea'));
24653
+ });
24654
+ }
24655
+ submit() {
24656
+ const officePercent = this.value.dedicatedOffice ? 100 : round(this.value.officeArea * 100 / this.value.homeArea, 2);
24657
+ return super.submit({ officePercent });
24658
+ }
24659
+ }
24660
+
24346
24661
  var MessagesEnum;
24347
24662
  (function (MessagesEnum) {
24348
24663
  MessagesEnum["HOLDING_CREATED"] = "Holding created";
@@ -24368,5 +24683,5 @@ var MessagesEnum;
24368
24683
  * Generated bundle index. Do not edit.
24369
24684
  */
24370
24685
 
24371
- export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualClientDetails, AnnualClientDetailsForm, AnnualClientDetailsService, AnnualFrequencyEnum, AppCurrencyPipe, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetSale, AssetSaleCollection, AssetTypeEnum, AssetsService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionMessagesEnum, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankPopularEnum, BankProviderEnum, BankService, BankTransaction, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportMessagesEnum, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqMessagesEnum, BasiqService, BasiqToken, BasiqTokenService, BestVehicleLogbookCollection, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BorrowingReport, BorrowingReportForm, BorrowingReportMessagesEnum, BorrowingReportService, Budget, BudgetForm, BudgetMessagesEnum, BudgetRule, BudgetService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CapitalLoss, CapitalLossForm, CapitalLossMessagesEnum, CapitalLossService, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsAdjustmentIncludedListEnum, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsForm, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsHoldingUntaxedIncomeListEnum, ChartAccountsInvoiceEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMessagesEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsPropertyAdjustmentsListEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsUnallocatableListEnum, ChartAccountsValue, ChartAccountsValueService, ChartData, ChartSerie, Chat, ChatCollection, ChatFilterForm, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientCouponService, ClientDetails, ClientDetailsForm, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientInvite, ClientInviteCollection, ClientInviteForm, ClientInviteMessages, ClientInvitePutForm, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementForm, ClientMovementMessagesEnum, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CollectionForm, CoreModule, CorelogicService, CorelogicSuggestion, Country, CurrentFirmBranchService, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderForm, DocumentFolderMessagesEnum, DocumentFolderService, DocumentForm, DocumentMessagesEnum, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeDetailsForm, EmployeeInvite, EmployeeInviteCollection, EmployeeInviteForm, EmployeeInviteRoleEnum, EmployeeInviteService, EmployeeMessagesEnum, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, FinancialYearService, Firm, FirmBranch, FirmBranchForm, FirmBranchMessagesEnum, FirmBranchService, FirmForm, FirmInviteForm, FirmMessagesEnum, FirmService, FirmTypeEnum, FormValidationsEnum, GenderEnum, GoogleService, HeaderTitleService, Holding, HoldingCollection, HoldingForm, HoldingImport, HoldingImportForm, HoldingImportMessagesEnum, HoldingImportService, HoldingIncomeForm, HoldingMessagesEnum, HoldingReinvest, HoldingReinvestForm, HoldingSale, HoldingSaleCollection, HoldingSaleForm, HoldingSaleMessagesEnum, HoldingSaleService, HoldingService, HoldingType, HoldingTypeCategoryEnum, HoldingTypeCollection, HoldingTypeExchange, HoldingTypeExchangeListEnum, HoldingTypeExchangeService, HoldingTypeForm, HoldingTypeMessagesEnum, HoldingTypeService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastCollection, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceMessagesEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListHoldingEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, IncomeSourceTypeService, InterceptorsModule, IntercomService, InviteStatusEnum, InvoicePaymentForm, JsPdf, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanInterestTypeLabelEnum, LoanMaxNumberOfPaymentsEnum, LoanMessagesEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanRepaymentTypeLabelEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MessagesEnum, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, 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, PdfFromTableService, PdfOrientationEnum, PdfService, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, PriorTransactionService, Property, PropertyAddForm, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementForm, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentForm, PropertyDocumentMessagesEnum, PropertyDocumentService, PropertyEditForm, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyForecastForm, PropertyMessagesEnum, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetaField, PropertySaleTaxExemptionMetaFieldCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareForm, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, PropertyValuationCollection, PropertyValuationForm, PropertyValuationMessages, PropertyValuationService, REPORTS, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, SERVICE_PRODUCT_ROLES, SafeUrlPipe, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceListEnum, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIconsEnum, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServicePromoCode, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, SetupItemTypeEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossCollection, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessMessagesEnum, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleIncomeForm, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStateEnum, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionItemCollection, SubscriptionMessagesEnum, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionCollection, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, TaxExemptionService, TaxReturn, TaxReturnCategory, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReturnItem, TaxReturnItemEnum, TaxReturnItemService, TaxReview, TaxReviewCollection, TaxReviewFilterForm, TaxReviewFilterStatusEnum, TaxReviewHistoryService, TaxReviewMessagesEnum, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, TimezoneEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseCollection, TransactionBaseFilterForm, TransactionBaseForm, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetaField, TransactionOperationEnum, TransactionReportItem, TransactionReportItemCollection, TransactionService, TransactionSourceEnum, TransactionTypeEnum, USER_ROLES, USER_WORK_POSITION, UniqueEmailValidator, User, UserCollection, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserForm, UserInviteForm, UserMedicareExemptionEnum, UserMessagesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookMessages, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleMessagesEnum, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, YoutubeService, alphaSpaceValidator, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, greaterThanValidator, matchSumValidator, maxDateValidator, minDateValidator, passwordMatchValidator, passwordValidator, replace, sort, sortDeep, toArray };
24686
+ export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualClientDetails, AnnualClientDetailsForm, AnnualClientDetailsService, AnnualFrequencyEnum, AppCurrencyPipe, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetSale, AssetSaleCollection, AssetTypeEnum, AssetsService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionMessagesEnum, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankPopularEnum, BankProviderEnum, BankService, BankTransaction, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportMessagesEnum, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqMessagesEnum, BasiqService, BasiqToken, BasiqTokenService, BestVehicleLogbookCollection, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BorrowingReport, BorrowingReportForm, BorrowingReportMessagesEnum, BorrowingReportService, Budget, BudgetForm, BudgetMessagesEnum, BudgetRule, BudgetService, BusinessChartAccountsEnum, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CapitalLoss, CapitalLossForm, CapitalLossMessagesEnum, CapitalLossService, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsAdjustmentIncludedListEnum, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsForm, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsHoldingUntaxedIncomeListEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMessagesEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsPropertyAdjustmentsListEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartAccountsValueCollection, ChartAccountsValueService, ChartData, ChartSerie, Chat, ChatCollection, ChatFilterForm, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientCouponService, ClientDetails, ClientDetailsForm, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientInvite, ClientInviteCollection, ClientInviteForm, ClientInviteMessages, ClientInvitePutForm, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementForm, ClientMovementMessagesEnum, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CollectionForm, CoreModule, CorelogicService, CorelogicSuggestion, Country, CurrentFirmBranchService, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderForm, DocumentFolderMessagesEnum, DocumentFolderService, DocumentForm, DocumentMessagesEnum, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeDetailsForm, EmployeeInvite, EmployeeInviteCollection, EmployeeInviteForm, EmployeeInviteRoleEnum, EmployeeInviteService, EmployeeMessagesEnum, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, FinancialYearService, Firm, FirmBranch, FirmBranchForm, FirmBranchMessagesEnum, FirmBranchService, FirmForm, FirmInviteForm, FirmMessagesEnum, FirmService, FirmTypeEnum, FormValidationsEnum, GenderEnum, GoogleService, HeaderTitleService, Holding, HoldingCollection, HoldingForm, HoldingImport, HoldingImportForm, HoldingImportMessagesEnum, HoldingImportService, HoldingIncomeForm, HoldingMessagesEnum, HoldingReinvest, HoldingReinvestForm, HoldingSale, HoldingSaleCollection, HoldingSaleForm, HoldingSaleMessagesEnum, HoldingSaleService, HoldingService, HoldingType, HoldingTypeCategoryEnum, HoldingTypeCollection, HoldingTypeExchange, HoldingTypeExchangeListEnum, HoldingTypeExchangeService, HoldingTypeForm, HoldingTypeMessagesEnum, HoldingTypeService, HomeOfficeCalculatorForm, HomeOfficeClaim, HomeOfficeClaimCollection, HomeOfficeClaimForm, HomeOfficeClaimMessagesEnum, HomeOfficeClaimMethodEnum, HomeOfficeClaimService, HomeOfficeLog, HomeOfficeLogForm, HomeOfficeLogMessagesEnum, HomeOfficeLogService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastCollection, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceMessagesEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListHoldingEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, IncomeSourceTypeService, InterceptorsModule, IntercomService, InviteStatusEnum, InvoicePaymentForm, JsPdf, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanInterestTypeLabelEnum, LoanMaxNumberOfPaymentsEnum, LoanMessagesEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanRepaymentTypeLabelEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MessagesEnum, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, 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, PdfFromTableService, PdfOrientationEnum, PdfService, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, PriorTransactionService, Property, PropertyAddForm, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementForm, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentForm, PropertyDocumentMessagesEnum, PropertyDocumentService, PropertyEditForm, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyForecastForm, PropertyMessagesEnum, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetaField, PropertySaleTaxExemptionMetaFieldCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareForm, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, PropertyValuationCollection, PropertyValuationForm, PropertyValuationMessages, PropertyValuationService, REPORTS, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestMessagesEnum, RestService$1 as RestService, SERVICE_PRODUCT_ROLES, SafeUrlPipe, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceListEnum, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIconsEnum, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServicePromoCode, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, SetupItemTypeEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossCollection, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessMessagesEnum, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleIncomeForm, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStateEnum, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionItemCollection, SubscriptionMessagesEnum, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionCollection, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, TaxExemptionService, TaxReturn, TaxReturnCategory, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReturnItem, TaxReturnItemEnum, TaxReturnItemService, TaxReview, TaxReviewCollection, TaxReviewFilterForm, TaxReviewFilterStatusEnum, TaxReviewHistoryService, TaxReviewMessagesEnum, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, TimezoneEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseCollection, TransactionBaseFilterForm, TransactionBaseForm, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetaField, TransactionOperationEnum, TransactionReportItem, TransactionReportItemCollection, TransactionService, TransactionSourceEnum, TransactionTypeEnum, USER_ROLES, USER_WORK_POSITION, UniqueEmailValidator, User, UserCollection, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserForm, UserInviteForm, UserMedicareExemptionEnum, UserMessagesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookMessages, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleMessagesEnum, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, YoutubeService, alphaSpaceValidator, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, greaterThanValidator, matchSumValidator, maxDateValidator, minDateValidator, passwordMatchValidator, passwordValidator, replace, sort, sortDeep, toArray };
24372
24687
  //# sourceMappingURL=taxtank-core.mjs.map