taxtank-core 0.28.105 → 0.28.108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (699) hide show
  1. package/bundles/taxtank-core.umd.js +833 -382
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/chart-accounts.collection.js +2 -2
  4. package/esm2015/lib/collections/depreciation.collection.js +2 -2
  5. package/esm2015/lib/collections/transaction/transaction.collection.js +3 -3
  6. package/esm2015/lib/db/Enums/{chart-accounts-category.enum.js → chart-accounts/chart-accounts-category.enum.js} +1 -1
  7. package/esm2015/lib/db/Enums/{chart-accounts-etp.enum.js → chart-accounts/chart-accounts-etp.enum.js} +1 -1
  8. package/esm2015/lib/db/Enums/{chart-accounts-heading-list.enum.js → chart-accounts/chart-accounts-heading-list.enum.js} +1 -1
  9. package/esm2015/lib/db/Enums/{chart-accounts-heading-tax-deductible.enum.js → chart-accounts/chart-accounts-heading-tax-deductible.enum.js} +1 -1
  10. package/esm2015/lib/db/Enums/{chart-accounts-heading-taxable.enum.js → chart-accounts/chart-accounts-heading-taxable.enum.js} +1 -1
  11. package/esm2015/lib/db/Enums/{chart-accounts-heading-vehicle-list.enum.js → chart-accounts/chart-accounts-heading-vehicle-list.enum.js} +1 -1
  12. package/esm2015/lib/db/Enums/{chart-accounts-list.enum.js → chart-accounts/chart-accounts-list.enum.js} +1 -1
  13. package/esm2015/lib/db/Enums/{chart-accounts-metadata-list.enum.js → chart-accounts/chart-accounts-metadata-list.enum.js} +1 -1
  14. package/esm2015/lib/db/Enums/chart-accounts/chart-accounts-metadata-type.enum.js +6 -0
  15. package/esm2015/lib/db/Enums/chart-accounts/chart-accounts-salary-adjustments-list.enum.js +17 -0
  16. package/esm2015/lib/db/Enums/chart-accounts/chart-accounts-salary-included-list.enum.js +14 -0
  17. package/esm2015/lib/db/Enums/chart-accounts/chart-accounts-type.enum.js +6 -0
  18. package/esm2015/lib/db/Enums/chart-accounts/index.js +13 -0
  19. package/esm2015/lib/db/Enums/index.js +2 -1
  20. package/esm2015/lib/db/Models/chart-accounts/chart-accounts-metadata.js +1 -1
  21. package/esm2015/lib/db/Models/chart-accounts/chart-accounts.js +1 -1
  22. package/esm2015/lib/db/Models/transaction/transaction-base.js +2 -3
  23. package/esm2015/lib/forms/depreciation/depreciation.form.js +35 -0
  24. package/esm2015/lib/forms/depreciation/index.js +2 -0
  25. package/esm2015/lib/forms/form-validations.enum.js +12 -0
  26. package/esm2015/lib/forms/index.js +4 -1
  27. package/esm2015/lib/forms/transaction/index.js +4 -0
  28. package/esm2015/lib/forms/transaction/messages.enum.js +5 -0
  29. package/esm2015/lib/forms/transaction/transaction-base.form.js +105 -0
  30. package/esm2015/lib/forms/transaction/transaction.form.js +60 -0
  31. package/esm2015/lib/forms/transaction/work-income.form.js +108 -0
  32. package/esm2015/lib/interceptors/user-switcher-interceptor.js +12 -2
  33. package/esm2015/lib/models/chart-accounts/chart-accounts-categories.const.js +2 -2
  34. package/esm2015/lib/models/chart-accounts/chart-accounts-category.e-collection.js +2 -2
  35. package/esm2015/lib/models/chart-accounts/chart-accounts-metadata.js +2 -2
  36. package/esm2015/lib/models/chart-accounts/chart-accounts.js +42 -5
  37. package/esm2015/lib/models/chart-accounts/index.js +9 -0
  38. package/esm2015/lib/models/depreciation/depreciation.js +5 -6
  39. package/esm2015/lib/models/document/index.js +3 -1
  40. package/esm2015/lib/models/income-source/salary-forecast.js +4 -1
  41. package/esm2015/lib/models/index.js +3 -1
  42. package/esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.js +2 -2
  43. package/esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.js +2 -4
  44. package/esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.js +2 -4
  45. package/esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.js +2 -3
  46. package/esm2015/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.js +3 -3
  47. package/esm2015/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.js +2 -3
  48. package/esm2015/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.js +2 -4
  49. package/esm2015/lib/models/report/my-tax/my-tax-interest/my-tax-interest.js +2 -2
  50. package/esm2015/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.js +2 -4
  51. package/esm2015/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.js +2 -4
  52. package/esm2015/lib/models/report/my-tax/my-tax-rent/my-tax-rent.js +2 -2
  53. package/esm2015/lib/models/report/property/property-report-item.js +2 -2
  54. package/esm2015/lib/models/transaction/index.js +7 -0
  55. package/esm2015/lib/models/transaction/transaction-metadata.js +2 -2
  56. package/esm2015/lib/models/transaction/transaction.js +4 -6
  57. package/esm2015/lib/models/vehicle/vehicle-claim.js +2 -2
  58. package/esm2015/lib/models/vehicle/vehicle-logbook.js +2 -1
  59. package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +2 -2
  60. package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +4 -7
  61. package/esm2015/lib/services/http/transaction/transaction.service.js +5 -35
  62. package/esm2015/lib/services/report/property/property-transaction-report.service.js +7 -10
  63. package/esm2015/lib/validators/current-fin-year.validator.js +14 -0
  64. package/esm2015/lib/validators/file.validator.js +27 -0
  65. package/esm2015/lib/validators/index.js +3 -1
  66. package/esm2015/public-api.js +12 -12
  67. package/fesm2015/taxtank-core.js +772 -375
  68. package/fesm2015/taxtank-core.js.map +1 -1
  69. package/lib/collections/account-setup-item.collection.d.ts.map +1 -0
  70. package/lib/collections/bank-account.collection.d.ts.map +1 -0
  71. package/lib/collections/bank-transaction.collection.d.ts.map +1 -0
  72. package/lib/collections/chart-accounts.collection.d.ts +1 -1
  73. package/lib/collections/chart-accounts.collection.d.ts.map +1 -0
  74. package/lib/collections/chat.collection.d.ts.map +1 -0
  75. package/lib/collections/client-invite.collection.d.ts.map +1 -0
  76. package/lib/collections/client-movement.collection.d.ts.map +1 -0
  77. package/lib/collections/client-portfolio-report.collection.d.ts.map +1 -0
  78. package/lib/collections/client.collection.d.ts.map +1 -0
  79. package/lib/collections/collection-dictionary.d.ts.map +1 -0
  80. package/lib/collections/collection.d.ts.map +1 -0
  81. package/lib/collections/depreciation-forecast.collection.d.ts.map +1 -0
  82. package/lib/collections/depreciation.collection.d.ts +2 -2
  83. package/lib/collections/depreciation.collection.d.ts.map +1 -0
  84. package/lib/collections/employee.collection.d.ts.map +1 -0
  85. package/lib/collections/exportable.collection.d.ts.map +1 -0
  86. package/lib/collections/income-source.collection.d.ts.map +1 -0
  87. package/lib/collections/index.d.ts.map +1 -0
  88. package/lib/collections/loan/loan-payment.collection.d.ts.map +1 -0
  89. package/lib/collections/loan/loan.collection.d.ts.map +1 -0
  90. package/lib/collections/message-document.collection.d.ts.map +1 -0
  91. package/lib/collections/message.collection.d.ts.map +1 -0
  92. package/lib/collections/property/index.d.ts.map +1 -0
  93. package/lib/collections/property/property-category-movement.collection.d.ts.map +1 -0
  94. package/lib/collections/property/property.collection.d.ts.map +1 -0
  95. package/lib/collections/report/depreciation/depreciation-report-item.collection.d.ts.map +1 -0
  96. package/lib/collections/report/property/property-report-item-depreciation.collection.d.ts.map +1 -0
  97. package/lib/collections/report/property/property-report-item-transaction.collection.d.ts.map +1 -0
  98. package/lib/collections/report/property/property-report-item.collection.d.ts.map +1 -0
  99. package/lib/collections/report/vehicle-expense/vehicle-expense.collection.d.ts.map +1 -0
  100. package/lib/collections/sole/index.d.ts.map +1 -0
  101. package/lib/collections/sole/sole-business-losses.collection.d.ts.map +1 -0
  102. package/lib/collections/sole/sole-invoice-item.collection.d.ts.map +1 -0
  103. package/lib/collections/sole/sole-invoice.collection.d.ts.map +1 -0
  104. package/lib/collections/subscription/service-subscription.collection.d.ts.map +1 -0
  105. package/lib/collections/tax-review.collection.d.ts.map +1 -0
  106. package/lib/collections/tax-summary/report-item.collection.d.ts.map +1 -0
  107. package/lib/collections/tax-summary/tax-return-categories.const.d.ts.map +1 -0
  108. package/lib/collections/transaction/index.d.ts.map +1 -0
  109. package/lib/collections/transaction/transaction-allocation.collection.d.ts.map +1 -0
  110. package/lib/collections/transaction/transaction-base.collection.d.ts.map +1 -0
  111. package/lib/collections/transaction/transaction.collection.d.ts +2 -4
  112. package/lib/collections/transaction/transaction.collection.d.ts.map +1 -0
  113. package/lib/collections/user-event-setting.collection.d.ts.map +1 -0
  114. package/lib/collections/vehicle/index.d.ts.map +1 -0
  115. package/lib/collections/vehicle/vehicle-claim.collection.d.ts.map +1 -0
  116. package/lib/collections/vehicle/vehicle-logbook.collection.d.ts.map +1 -0
  117. package/lib/db/Enums/{chart-accounts-category.enum.d.ts → chart-accounts/chart-accounts-category.enum.d.ts} +0 -0
  118. package/lib/db/Enums/{chart-accounts-etp.enum.d.ts → chart-accounts/chart-accounts-etp.enum.d.ts} +0 -0
  119. package/lib/db/Enums/{chart-accounts-heading-list.enum.d.ts → chart-accounts/chart-accounts-heading-list.enum.d.ts} +0 -0
  120. package/lib/db/Enums/{chart-accounts-heading-tax-deductible.enum.d.ts → chart-accounts/chart-accounts-heading-tax-deductible.enum.d.ts} +0 -0
  121. package/lib/db/Enums/{chart-accounts-heading-taxable.enum.d.ts → chart-accounts/chart-accounts-heading-taxable.enum.d.ts} +0 -0
  122. package/lib/db/Enums/{chart-accounts-heading-vehicle-list.enum.d.ts → chart-accounts/chart-accounts-heading-vehicle-list.enum.d.ts} +0 -0
  123. package/lib/db/Enums/{chart-accounts-list.enum.d.ts → chart-accounts/chart-accounts-list.enum.d.ts} +0 -0
  124. package/lib/db/Enums/{chart-accounts-metadata-list.enum.d.ts → chart-accounts/chart-accounts-metadata-list.enum.d.ts} +0 -0
  125. package/lib/db/Enums/{chart-accounts-metadata-type.enum.d.ts → chart-accounts/chart-accounts-metadata-type.enum.d.ts} +0 -0
  126. package/lib/db/Enums/chart-accounts/chart-accounts-salary-adjustments-list.enum.d.ts +15 -0
  127. package/lib/db/Enums/chart-accounts/chart-accounts-salary-included-list.enum.d.ts +12 -0
  128. package/lib/db/Enums/{chart-accounts-type.enum.d.ts → chart-accounts/chart-accounts-type.enum.d.ts} +0 -0
  129. package/lib/db/Enums/chart-accounts/index.d.ts +12 -0
  130. package/lib/db/Enums/chat-status.enum.d.ts.map +1 -0
  131. package/lib/db/Enums/client-details-medicare-exemption.enum.d.ts.map +1 -0
  132. package/lib/db/Enums/client-details-work-depreciation-calculation.enum.d.ts.map +1 -0
  133. package/lib/db/Enums/client-details-working-holiday-maker.enum.d.ts.map +1 -0
  134. package/lib/db/Enums/client-invite-status.enum.d.ts.map +1 -0
  135. package/lib/db/Enums/client-invite-type.enum.d.ts.map +1 -0
  136. package/lib/db/Enums/depreciation-calculation-percent.enum.d.ts.map +1 -0
  137. package/lib/db/Enums/depreciation-calculation.enum.d.ts.map +1 -0
  138. package/lib/db/Enums/depreciation-type.enum.d.ts.map +1 -0
  139. package/lib/db/Enums/depreciation-write-off-amount.enum.d.ts.map +1 -0
  140. package/lib/db/Enums/firm-type.enum.d.ts.map +1 -0
  141. package/lib/db/Enums/income-source-type-list-other.enum.d.ts.map +1 -0
  142. package/lib/db/Enums/income-source-type-list-sole.enum.d.ts.map +1 -0
  143. package/lib/db/Enums/income-source-type-list-work.enum.d.ts.map +1 -0
  144. package/lib/db/Enums/index.d.ts +1 -0
  145. package/lib/db/Enums/invite-status.enum.d.ts.map +1 -0
  146. package/lib/db/Enums/loan-bank-type.enum.d.ts.map +1 -0
  147. package/lib/db/Enums/loan-frequency.enum.d.ts.map +1 -0
  148. package/lib/db/Enums/phone-type.enum.d.ts.map +1 -0
  149. package/lib/db/Enums/service-notification-status.enum.d.ts.map +1 -0
  150. package/lib/db/Enums/service-notification-type.enum.d.ts.map +1 -0
  151. package/lib/db/Enums/sole-depreciation-method.enum.d.ts.map +1 -0
  152. package/lib/db/Enums/sole-invoice-statuses.enum.d.ts.map +1 -0
  153. package/lib/db/Enums/sole-invoice-tax-type.enum.d.ts.map +1 -0
  154. package/lib/db/Enums/sole-invoice-template-tax-type.enum.d.ts.map +1 -0
  155. package/lib/db/Enums/spare-document-spare-type.enum.d.ts.map +1 -0
  156. package/lib/db/Enums/tank-type.enum.d.ts.map +1 -0
  157. package/lib/db/Enums/tax-calculation-medicare-exemption.enum.d.ts.map +1 -0
  158. package/lib/db/Enums/tax-calculation-type.enum.d.ts.map +1 -0
  159. package/lib/db/Enums/tax-return-category-list.enum.d.ts.map +1 -0
  160. package/lib/db/Enums/tax-return-category-section.enum.d.ts.map +1 -0
  161. package/lib/db/Enums/tax-review-status.enum.d.ts.map +1 -0
  162. package/lib/db/Enums/tax-summary-list.enum.d.ts.map +1 -0
  163. package/lib/db/Enums/tax-summary-tax-summary.enum.d.ts.map +1 -0
  164. package/lib/db/Enums/ticket-feedback.enum.d.ts.map +1 -0
  165. package/lib/db/Enums/ticket-status.enum.d.ts.map +1 -0
  166. package/lib/db/Enums/ticket-types.enum.d.ts.map +1 -0
  167. package/lib/db/Enums/user-event-status.enum.d.ts.map +1 -0
  168. package/lib/db/Enums/user-event-type-client-type.enum.d.ts.map +1 -0
  169. package/lib/db/Enums/user-event-type-employee-type.enum.d.ts.map +1 -0
  170. package/lib/db/Enums/user-event-type-frequency.enum.d.ts.map +1 -0
  171. package/lib/db/Enums/user-event-type-type.enum.d.ts.map +1 -0
  172. package/lib/db/Enums/user-event-type-user-type.enum.d.ts.map +1 -0
  173. package/lib/db/Enums/user-medicare-exemption.enum.d.ts.map +1 -0
  174. package/lib/db/Enums/user-work-depreciation-calculation.enum.d.ts.map +1 -0
  175. package/lib/db/Enums/user-working-holiday-maker.enum.d.ts.map +1 -0
  176. package/lib/db/Enums/vehicle-claim-details-method.enum.d.ts.map +1 -0
  177. package/lib/db/Enums/vehicle-logbook-purpose.enum.d.ts.map +1 -0
  178. package/lib/db/Models/chart-accounts/chart-accounts-metadata.d.ts +1 -2
  179. package/lib/db/Models/chart-accounts/chart-accounts.d.ts +1 -2
  180. package/lib/db/Models/firm/client-invite.d.ts.map +1 -0
  181. package/lib/db/Models/firm/employee-invite.d.ts.map +1 -0
  182. package/lib/db/Models/observable-model.d.ts.map +1 -0
  183. package/lib/db/Models/phone.d.ts.map +1 -0
  184. package/lib/db/Models/service-notification.d.ts.map +1 -0
  185. package/lib/forms/abstract.form.d.ts.map +1 -0
  186. package/lib/forms/address/address.form.d.ts.map +1 -0
  187. package/lib/forms/address/index.d.ts.map +1 -0
  188. package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts.map +1 -0
  189. package/lib/forms/bank/bank-account/bank-account-allocation.form.d.ts.map +1 -0
  190. package/lib/forms/bank/bank-account/bank-account-import.form.d.ts.map +1 -0
  191. package/lib/forms/bank/bank-account/bank-account-properties.form.d.ts.map +1 -0
  192. package/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts.map +1 -0
  193. package/lib/forms/bank/bank-login.form.d.ts.map +1 -0
  194. package/lib/forms/client/client-income-types.form.d.ts.map +1 -0
  195. package/lib/forms/depreciation/depreciation.form.d.ts +5 -0
  196. package/lib/forms/depreciation/depreciation.form.d.ts.map +1 -0
  197. package/lib/forms/depreciation/index.d.ts +1 -0
  198. package/lib/forms/depreciation/index.d.ts.map +1 -0
  199. package/lib/forms/form-validations.enum.d.ts +9 -0
  200. package/lib/forms/form-validations.enum.d.ts.map +1 -0
  201. package/lib/forms/index.d.ts +3 -0
  202. package/lib/forms/index.d.ts.map +1 -0
  203. package/lib/forms/loan/index.d.ts.map +1 -0
  204. package/lib/forms/loan/loan.form.d.ts.map +1 -0
  205. package/lib/forms/login/login.form.d.ts.map +1 -0
  206. package/lib/forms/phone/index.d.ts.map +1 -0
  207. package/lib/forms/phone/phone.form.d.ts.map +1 -0
  208. package/lib/forms/property/index.d.ts.map +1 -0
  209. package/lib/forms/property/property-sale/index.d.ts.map +1 -0
  210. package/lib/forms/property/property-sale/property-sale-cost-base.form.d.ts.map +1 -0
  211. package/lib/forms/property/property-sale/property-sale-cost-sale.form.d.ts.map +1 -0
  212. package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts.map +1 -0
  213. package/lib/forms/register/register-client.form.d.ts.map +1 -0
  214. package/lib/forms/register/register-firm.form.d.ts.map +1 -0
  215. package/lib/forms/report/my-tax/index.d.ts.map +1 -0
  216. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.form.d.ts.map +1 -0
  217. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.form.d.ts.map +1 -0
  218. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.d.ts.map +1 -0
  219. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.form.d.ts.map +1 -0
  220. package/lib/forms/report/my-tax/my-tax-cgt.form.d.ts.map +1 -0
  221. package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts.map +1 -0
  222. package/lib/forms/report/my-tax/my-tax-dividends.form.d.ts.map +1 -0
  223. package/lib/forms/report/my-tax/my-tax-income-statements.form.d.ts.map +1 -0
  224. package/lib/forms/report/my-tax/my-tax-income-tests.form.d.ts.map +1 -0
  225. package/lib/forms/report/my-tax/my-tax-interest.form.d.ts.map +1 -0
  226. package/lib/forms/report/my-tax/my-tax-losses.form.d.ts.map +1 -0
  227. package/lib/forms/report/my-tax/my-tax-medicare.form.d.ts.map +1 -0
  228. package/lib/forms/report/my-tax/my-tax-offsets.form.d.ts.map +1 -0
  229. package/lib/forms/report/my-tax/my-tax-other-income.form.d.ts.map +1 -0
  230. package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts.map +1 -0
  231. package/lib/forms/report/my-tax/my-tax-rent.form.d.ts.map +1 -0
  232. package/lib/forms/sole/bas-report.form.d.ts.map +1 -0
  233. package/lib/forms/sole/index.d.ts.map +1 -0
  234. package/lib/forms/sole/sole-business-allocations.form.d.ts.map +1 -0
  235. package/lib/forms/sole/sole-business-loss.form.d.ts.map +1 -0
  236. package/lib/forms/sole/sole-business.form.d.ts.map +1 -0
  237. package/lib/forms/sole/sole-contact.form.d.ts.map +1 -0
  238. package/lib/forms/sole/sole-depreciation-method.form.d.ts.map +1 -0
  239. package/lib/forms/sole/sole-details.form.d.ts.map +1 -0
  240. package/lib/forms/sole/sole-invoice-item.form.d.ts.map +1 -0
  241. package/lib/forms/sole/sole-invoice-template.form.d.ts.map +1 -0
  242. package/lib/forms/sole/sole-invoice.form.d.ts.map +1 -0
  243. package/lib/forms/transaction/index.d.ts +3 -0
  244. package/lib/forms/transaction/index.d.ts.map +1 -0
  245. package/lib/forms/transaction/messages.enum.d.ts +3 -0
  246. package/lib/forms/transaction/messages.enum.d.ts.map +1 -0
  247. package/lib/forms/transaction/transaction-base.form.d.ts +28 -0
  248. package/lib/forms/transaction/transaction-base.form.d.ts.map +1 -0
  249. package/lib/forms/transaction/transaction.form.d.ts +16 -0
  250. package/lib/forms/transaction/transaction.form.d.ts.map +1 -0
  251. package/lib/forms/transaction/work-income.form.d.ts +26 -0
  252. package/lib/forms/transaction/work-income.form.d.ts.map +1 -0
  253. package/lib/forms/user/index.d.ts.map +1 -0
  254. package/lib/forms/user/password.form.d.ts.map +1 -0
  255. package/lib/forms/user/reset-password.form.d.ts.map +1 -0
  256. package/lib/forms/user/user-invite.form.d.ts.map +1 -0
  257. package/lib/forms/vehicle/index.d.ts.map +1 -0
  258. package/lib/forms/vehicle/vehicle-claim-details.form.d.ts.map +1 -0
  259. package/lib/forms/vehicle/vehicle-claim.form.d.ts.map +1 -0
  260. package/lib/forms/vehicle/vehicle-logbook.form.d.ts.map +1 -0
  261. package/lib/forms/vehicle/vehicle.form.d.ts.map +1 -0
  262. package/lib/functions/array/index.d.ts.map +1 -0
  263. package/lib/functions/array/to-array.d.ts.map +1 -0
  264. package/lib/functions/clone-deep.d.ts.map +1 -0
  265. package/lib/functions/create-date.d.ts.map +1 -0
  266. package/lib/functions/enum-to-list.d.ts.map +1 -0
  267. package/lib/functions/get-doc-icon.d.ts.map +1 -0
  268. package/lib/functions/mat-options-functions.d.ts.map +1 -0
  269. package/lib/functions/mat-sort-options.d.ts.map +1 -0
  270. package/lib/functions/round-to.d.ts.map +1 -0
  271. package/lib/functions/tax-review-filter-predicate.d.ts.map +1 -0
  272. package/lib/interceptors/basiq-client-id.interceptor.d.ts.map +1 -0
  273. package/lib/interceptors/basiq-token.interceptor.d.ts.map +1 -0
  274. package/lib/interceptors/interceptors.module.d.ts.map +1 -0
  275. package/lib/interceptors/jwt-interceptor.d.ts.map +1 -0
  276. package/lib/interceptors/preloader.interceptor.d.ts.map +1 -0
  277. package/lib/interceptors/user-switcher-interceptor.d.ts.map +1 -0
  278. package/lib/interfaces/asset-entity-type.enum.d.ts.map +1 -0
  279. package/lib/interfaces/asset-type.enum.d.ts.map +1 -0
  280. package/lib/interfaces/asset.interface.d.ts.map +1 -0
  281. package/lib/interfaces/auth-tokens.interface.d.ts.map +1 -0
  282. package/lib/interfaces/chart-data.interface.d.ts.map +1 -0
  283. package/lib/interfaces/chart-serie.interface.d.ts.map +1 -0
  284. package/lib/interfaces/event-listener.interface.d.ts.map +1 -0
  285. package/lib/interfaces/expense.interface.d.ts.map +1 -0
  286. package/lib/interfaces/income-source-forecast.interface.d.ts.map +1 -0
  287. package/lib/interfaces/option.interface.d.ts.map +1 -0
  288. package/lib/interfaces/receipt.interface.d.ts.map +1 -0
  289. package/lib/interfaces/table-exportable.interface.d.ts.map +1 -0
  290. package/lib/interfaces/tank.interface.d.ts.map +1 -0
  291. package/lib/interfaces/updatable.interface.d.ts.map +1 -0
  292. package/lib/models/account-setup/account-setup-item.d.ts.map +1 -0
  293. package/lib/models/account-setup/account-setup-items.const.d.ts.map +1 -0
  294. package/lib/models/account-setup/account-setup-items.enum.d.ts.map +1 -0
  295. package/lib/models/badge/badge-color.enum.d.ts.map +1 -0
  296. package/lib/models/badge/badge.d.ts.map +1 -0
  297. package/lib/models/bank/bank-account-chart-data.d.ts.map +1 -0
  298. package/lib/models/bank/bank-account-property.d.ts.map +1 -0
  299. package/lib/models/bank/bank-account-types.const.d.ts.map +1 -0
  300. package/lib/models/bank/bank-account.d.ts.map +1 -0
  301. package/lib/models/bank/bank-connection.d.ts.map +1 -0
  302. package/lib/models/bank/bank-login-data.d.ts.map +1 -0
  303. package/lib/models/bank/bank-transaction-chart-data.d.ts.map +1 -0
  304. package/lib/models/bank/bank-transaction-summary-fields.enum.d.ts.map +1 -0
  305. package/lib/models/bank/bank-transaction.d.ts.map +1 -0
  306. package/lib/models/bank/index.d.ts.map +1 -0
  307. package/lib/models/bank/type-loan.const.d.ts.map +1 -0
  308. package/lib/models/borrowing-expense/borrowing-expense-loan.d.ts.map +1 -0
  309. package/lib/models/borrowing-expense/borrowing-expense.d.ts.map +1 -0
  310. package/lib/models/chart/chart-data.d.ts.map +1 -0
  311. package/lib/models/chart/chart-serie.d.ts.map +1 -0
  312. package/lib/models/chart-accounts/chart-accounts-categories.const.d.ts +1 -1
  313. package/lib/models/chart-accounts/chart-accounts-categories.const.d.ts.map +1 -0
  314. package/lib/models/chart-accounts/chart-accounts-category.e-collection.d.ts +1 -1
  315. package/lib/models/chart-accounts/chart-accounts-category.e-collection.d.ts.map +1 -0
  316. package/lib/models/chart-accounts/chart-accounts-depreciation.d.ts.map +1 -0
  317. package/lib/models/chart-accounts/chart-accounts-heading.d.ts.map +1 -0
  318. package/lib/models/chart-accounts/chart-accounts-metadata.d.ts.map +1 -0
  319. package/lib/models/chart-accounts/chart-accounts-tax-labels.enum.d.ts.map +1 -0
  320. package/lib/models/chart-accounts/chart-accounts-value.d.ts.map +1 -0
  321. package/lib/models/chart-accounts/chart-accounts.d.ts +13 -1
  322. package/lib/models/chart-accounts/chart-accounts.d.ts.map +1 -0
  323. package/lib/models/chart-accounts/index.d.ts +8 -0
  324. package/lib/models/chart-accounts/index.d.ts.map +1 -0
  325. package/lib/models/chat/chat-view-type.enum.d.ts.map +1 -0
  326. package/lib/models/chat/chat.d.ts.map +1 -0
  327. package/lib/models/chat/message-document.d.ts.map +1 -0
  328. package/lib/models/chat/message.d.ts.map +1 -0
  329. package/lib/models/client/client-details.d.ts.map +1 -0
  330. package/lib/models/client/client-income-types.d.ts.map +1 -0
  331. package/lib/models/client/client-invite.d.ts.map +1 -0
  332. package/lib/models/client/client-movement.d.ts.map +1 -0
  333. package/lib/models/client/client-portfolio-chart-data.d.ts.map +1 -0
  334. package/lib/models/client/client-portfolio-report.d.ts.map +1 -0
  335. package/lib/models/color/alphabet-colors.enum.d.ts.map +1 -0
  336. package/lib/models/depreciation/depreciation-capital-project.d.ts.map +1 -0
  337. package/lib/models/depreciation/depreciation-forecast.d.ts.map +1 -0
  338. package/lib/models/depreciation/depreciation-group-item.d.ts.map +1 -0
  339. package/lib/models/depreciation/depreciation-group.d.ts.map +1 -0
  340. package/lib/models/depreciation/depreciation-group.enum.d.ts.map +1 -0
  341. package/lib/models/depreciation/depreciation-groups.const.d.ts.map +1 -0
  342. package/lib/models/depreciation/depreciation-receipt.d.ts.map +1 -0
  343. package/lib/models/depreciation/depreciation.d.ts +3 -3
  344. package/lib/models/depreciation/depreciation.d.ts.map +1 -0
  345. package/lib/models/dictionary/dictionary.d.ts.map +1 -0
  346. package/lib/models/document/document-api-url-prefix.enum.d.ts.map +1 -0
  347. package/lib/models/document/document-file-types.const.d.ts.map +1 -0
  348. package/lib/models/document/document-folder.d.ts.map +1 -0
  349. package/lib/models/document/document.d.ts.map +1 -0
  350. package/lib/models/document/index.d.ts +2 -0
  351. package/lib/models/document/index.d.ts.map +1 -0
  352. package/lib/models/employee/employee-details.d.ts.map +1 -0
  353. package/lib/models/employee/employee-invite.d.ts.map +1 -0
  354. package/lib/models/endpoint/endpoint.d.ts.map +1 -0
  355. package/lib/models/endpoint/endpoints.const.d.ts.map +1 -0
  356. package/lib/models/event/app-event-type.enum.d.ts.map +1 -0
  357. package/lib/models/event/app-event.d.ts.map +1 -0
  358. package/lib/models/export/export-cell-type.enum.d.ts.map +1 -0
  359. package/lib/models/export/export-cell.d.ts.map +1 -0
  360. package/lib/models/export/export-data-table.d.ts.map +1 -0
  361. package/lib/models/export/export-format.enum.d.ts.map +1 -0
  362. package/lib/models/export/export-row-data-type.enum.d.ts.map +1 -0
  363. package/lib/models/export/export-row.d.ts.map +1 -0
  364. package/lib/models/file/icons-file.enum.d.ts.map +1 -0
  365. package/lib/models/financial-year/month-name-short.enum.d.ts.map +1 -0
  366. package/lib/models/financial-year/month-number.enum.d.ts.map +1 -0
  367. package/lib/models/financial-year/months.const.d.ts.map +1 -0
  368. package/lib/models/firm/firm.d.ts.map +1 -0
  369. package/lib/models/income-position/income-position.d.ts.map +1 -0
  370. package/lib/models/income-source/income-source-chart-data.d.ts.map +1 -0
  371. package/lib/models/income-source/income-source-forecast.d.ts.map +1 -0
  372. package/lib/models/income-source/income-source-type.d.ts.map +1 -0
  373. package/lib/models/income-source/income-source.d.ts.map +1 -0
  374. package/lib/models/income-source/salary-forecast.d.ts +1 -0
  375. package/lib/models/income-source/salary-forecast.d.ts.map +1 -0
  376. package/lib/models/income-source/sole-forecast.d.ts.map +1 -0
  377. package/lib/models/index.d.ts +2 -0
  378. package/lib/models/index.d.ts.map +1 -0
  379. package/lib/models/loan/loan-max-number-of-payments.enum.d.ts.map +1 -0
  380. package/lib/models/loan/loan.d.ts.map +1 -0
  381. package/lib/models/notification/notification.d.ts.map +1 -0
  382. package/lib/models/pdf/pdf-orientation.enum.d.ts.map +1 -0
  383. package/lib/models/pdf/pdf-settings.d.ts.map +1 -0
  384. package/lib/models/phone/phone.d.ts.map +1 -0
  385. package/lib/models/property/calculation-form-item.d.ts.map +1 -0
  386. package/lib/models/property/calculation-form-type.enum.d.ts.map +1 -0
  387. package/lib/models/property/capital-costs-itmes.const.d.ts.map +1 -0
  388. package/lib/models/property/property-category-movement.d.ts.map +1 -0
  389. package/lib/models/property/property-category.d.ts.map +1 -0
  390. package/lib/models/property/property-document.d.ts.map +1 -0
  391. package/lib/models/property/property-equity-chart-data.d.ts.map +1 -0
  392. package/lib/models/property/property-equity-chart-item.d.ts.map +1 -0
  393. package/lib/models/property/property-equity-chart-type.enum.d.ts.map +1 -0
  394. package/lib/models/property/property-forecast.d.ts.map +1 -0
  395. package/lib/models/property/property-sale/index.d.ts.map +1 -0
  396. package/lib/models/property/property-sale/property-sale-cost-base.d.ts.map +1 -0
  397. package/lib/models/property/property-sale/tax-exemption-metadata.d.ts.map +1 -0
  398. package/lib/models/property/property-sale/tax-exemption.d.ts.map +1 -0
  399. package/lib/models/property/property-share.d.ts.map +1 -0
  400. package/lib/models/property/property-subscription.d.ts.map +1 -0
  401. package/lib/models/property/property-valuation.d.ts.map +1 -0
  402. package/lib/models/property/property.d.ts.map +1 -0
  403. package/lib/models/property/share-filter-options.enum.d.ts.map +1 -0
  404. package/lib/models/registration-invite/registration-invite.d.ts.map +1 -0
  405. package/lib/models/report/depreciation/index.d.ts.map +1 -0
  406. package/lib/models/report/index.d.ts.map +1 -0
  407. package/lib/models/report/my-tax/ato-links.d.ts.map +1 -0
  408. package/lib/models/report/my-tax/index.d.ts.map +1 -0
  409. package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.d.ts.map +1 -0
  410. package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-type.enum.d.ts.map +1 -0
  411. package/lib/models/report/my-tax/my-tax-business-income-or-losses/loss-type.enum.d.ts.map +1 -0
  412. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.d.ts.map +1 -0
  413. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.d.ts +1 -1
  414. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.d.ts.map +1 -0
  415. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.d.ts +1 -1
  416. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.d.ts.map +1 -0
  417. package/lib/models/report/my-tax/my-tax-cgt/cgt-exemption-and-rollover-code.enum.d.ts.map +1 -0
  418. package/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.d.ts.map +1 -0
  419. package/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.d.ts.map +1 -0
  420. package/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.d.ts.map +1 -0
  421. package/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.d.ts.map +1 -0
  422. package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts +1 -1
  423. package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts.map +1 -0
  424. package/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.d.ts +1 -1
  425. package/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.d.ts.map +1 -0
  426. package/lib/models/report/my-tax/my-tax-estimate/my-tax-estimate.d.ts.map +1 -0
  427. package/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.d.ts +1 -1
  428. package/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.d.ts.map +1 -0
  429. package/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.d.ts.map +1 -0
  430. package/lib/models/report/my-tax/my-tax-interest/my-tax-interest.d.ts +1 -1
  431. package/lib/models/report/my-tax/my-tax-interest/my-tax-interest.d.ts.map +1 -0
  432. package/lib/models/report/my-tax/my-tax-losses/my-tax-losses.d.ts.map +1 -0
  433. package/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.d.ts.map +1 -0
  434. package/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.d.ts +1 -1
  435. package/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.d.ts.map +1 -0
  436. package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts +1 -1
  437. package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts.map +1 -0
  438. package/lib/models/report/my-tax/my-tax-rent/my-tax-rent.d.ts +1 -1
  439. package/lib/models/report/my-tax/my-tax-rent/my-tax-rent.d.ts.map +1 -0
  440. package/lib/models/report/property/index.d.ts.map +1 -0
  441. package/lib/models/report/property/property-report-item-depreciation.d.ts.map +1 -0
  442. package/lib/models/report/property/property-report-item-transaction.d.ts.map +1 -0
  443. package/lib/models/report/property/property-report-item.d.ts +1 -1
  444. package/lib/models/report/sole/index.d.ts.map +1 -0
  445. package/lib/models/report/sole/sole-business/sole-business-loss-report.d.ts.map +1 -0
  446. package/lib/models/report/vehicle-expense/vehicle-expense.d.ts.map +1 -0
  447. package/lib/models/service-subscription/module-url-list.const.d.ts.map +1 -0
  448. package/lib/models/service-subscription/service-payment.d.ts.map +1 -0
  449. package/lib/models/service-subscription/service-price.d.ts.map +1 -0
  450. package/lib/models/service-subscription/service-product.d.ts.map +1 -0
  451. package/lib/models/service-subscription/service-subscription-item.d.ts.map +1 -0
  452. package/lib/models/service-subscription/service-subscription.d.ts.map +1 -0
  453. package/lib/models/sole/bas-report.d.ts.map +1 -0
  454. package/lib/models/sole/index.d.ts.map +1 -0
  455. package/lib/models/sole/sole-business-activity.d.ts.map +1 -0
  456. package/lib/models/sole/sole-business-allocation.d.ts.map +1 -0
  457. package/lib/models/sole/sole-business-loss-offset-rule.d.ts.map +1 -0
  458. package/lib/models/sole/sole-business-loss.d.ts.map +1 -0
  459. package/lib/models/sole/sole-business.d.ts.map +1 -0
  460. package/lib/models/sole/sole-contact.d.ts.map +1 -0
  461. package/lib/models/sole/sole-depreciation-method.d.ts.map +1 -0
  462. package/lib/models/sole/sole-details.d.ts.map +1 -0
  463. package/lib/models/sole/sole-invoice-item.d.ts.map +1 -0
  464. package/lib/models/sole/sole-invoice-template.d.ts.map +1 -0
  465. package/lib/models/sole/sole-invoice.d.ts.map +1 -0
  466. package/lib/models/tax-review/tax-review.d.ts.map +1 -0
  467. package/lib/models/tax-summary/report-item-details.d.ts.map +1 -0
  468. package/lib/models/tax-summary/report-item.d.ts.map +1 -0
  469. package/lib/models/tax-summary/tax-summary-section.d.ts.map +1 -0
  470. package/lib/models/tax-summary/tax-summary-type.enum.d.ts.map +1 -0
  471. package/lib/models/tax-summary/tax-summary.d.ts.map +1 -0
  472. package/lib/models/toast/toast-type.enum.d.ts.map +1 -0
  473. package/lib/models/toast/toast.d.ts.map +1 -0
  474. package/lib/models/transaction/income-amount-type.enum.d.ts.map +1 -0
  475. package/lib/models/transaction/index.d.ts +6 -0
  476. package/lib/models/transaction/index.d.ts.map +1 -0
  477. package/lib/models/transaction/transaction-allocation.d.ts.map +1 -0
  478. package/lib/models/transaction/transaction-category.enum.d.ts.map +1 -0
  479. package/lib/models/transaction/transaction-metadata.d.ts +1 -1
  480. package/lib/models/transaction/transaction-metadata.d.ts.map +1 -0
  481. package/lib/models/transaction/transaction-receipt.d.ts.map +1 -0
  482. package/lib/models/transaction/transaction.d.ts +3 -4
  483. package/lib/models/transaction/transaction.d.ts.map +1 -0
  484. package/lib/models/user/my-account-history-initiated-by.enum.d.ts.map +1 -0
  485. package/lib/models/user/my-account-history-status.enum.d.ts.map +1 -0
  486. package/lib/models/user/my-account-history-type.enum.d.ts.map +1 -0
  487. package/lib/models/user/my-account-history.d.ts.map +1 -0
  488. package/lib/models/user/occupation.d.ts.map +1 -0
  489. package/lib/models/user/user-roles.const.d.ts.map +1 -0
  490. package/lib/models/user/user-to-register.d.ts.map +1 -0
  491. package/lib/models/user/user-work-position.const.d.ts.map +1 -0
  492. package/lib/models/user/user.d.ts.map +1 -0
  493. package/lib/models/user-event/user-event-setting-field.enum.d.ts.map +1 -0
  494. package/lib/models/user-event/user-event-setting.d.ts.map +1 -0
  495. package/lib/models/user-event/user-event-type-category.d.ts.map +1 -0
  496. package/lib/models/user-event/user-event-type.d.ts.map +1 -0
  497. package/lib/models/vehicle/index.d.ts.map +1 -0
  498. package/lib/models/vehicle/logbook-period.d.ts.map +1 -0
  499. package/lib/models/vehicle/vehicle-claim-details.d.ts.map +1 -0
  500. package/lib/models/vehicle/vehicle-claim.d.ts +1 -1
  501. package/lib/models/vehicle/vehicle-claim.d.ts.map +1 -0
  502. package/lib/models/vehicle/vehicle-logbook.d.ts.map +1 -0
  503. package/lib/models/vehicle/vehicle.d.ts.map +1 -0
  504. package/lib/services/account-setup/account-setup.service.d.ts.map +1 -0
  505. package/lib/services/account-setup/index.d.ts.map +1 -0
  506. package/lib/services/affiliate/index.d.ts.map +1 -0
  507. package/lib/services/affiliate/rewardful/index.d.ts.map +1 -0
  508. package/lib/services/affiliate/rewardful/rewardful.service.d.ts.map +1 -0
  509. package/lib/services/asset/assets.service.d.ts.map +1 -0
  510. package/lib/services/asset/index.d.ts.map +1 -0
  511. package/lib/services/auth/auth.service.d.ts.map +1 -0
  512. package/lib/services/auth/index.d.ts.map +1 -0
  513. package/lib/services/auth/jwt.service.d.ts.map +1 -0
  514. package/lib/services/bank/bank-account-calculation.service.d.ts.map +1 -0
  515. package/lib/services/bank/bank-transaction-calculation.service.d.ts.map +1 -0
  516. package/lib/services/bank/index.d.ts.map +1 -0
  517. package/lib/services/event/event-dispatcher.service.d.ts.map +1 -0
  518. package/lib/services/event/index.d.ts.map +1 -0
  519. package/lib/services/event/sse.service.d.ts.map +1 -0
  520. package/lib/services/export/export-formatter.service.d.ts.map +1 -0
  521. package/lib/services/export/index.d.ts.map +1 -0
  522. package/lib/services/header-title/header-title.service.d.ts.map +1 -0
  523. package/lib/services/header-title/index.d.ts.map +1 -0
  524. package/lib/services/http/address/address.service.d.ts.map +1 -0
  525. package/lib/services/http/address/index.d.ts.map +1 -0
  526. package/lib/services/http/bank/bank-account/bank-account.service.d.ts.map +1 -0
  527. package/lib/services/http/bank/bank-account/index.d.ts.map +1 -0
  528. package/lib/services/http/bank/bank-connection/index.d.ts.map +1 -0
  529. package/lib/services/http/bank/bank-transaction/bank-transaction.service.d.ts.map +1 -0
  530. package/lib/services/http/bank/bank-transaction/index.d.ts.map +1 -0
  531. package/lib/services/http/bank/bank.service.d.ts.map +1 -0
  532. package/lib/services/http/bank/basiq/index.d.ts.map +1 -0
  533. package/lib/services/http/bank/index.d.ts.map +1 -0
  534. package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts +1 -1
  535. package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts.map +1 -0
  536. package/lib/services/http/chart-accounts/chart-accounts-depreciations/index.d.ts.map +1 -0
  537. package/lib/services/http/chart-accounts/chart-accounts.service.d.ts +3 -5
  538. package/lib/services/http/chart-accounts/chart-accounts.service.d.ts.map +1 -0
  539. package/lib/services/http/chart-accounts/index.d.ts.map +1 -0
  540. package/lib/services/http/chat/chat.service.d.ts.map +1 -0
  541. package/lib/services/http/chat/index.d.ts.map +1 -0
  542. package/lib/services/http/chat/message/index.d.ts.map +1 -0
  543. package/lib/services/http/chat/message/message.service.d.ts.map +1 -0
  544. package/lib/services/http/chat/message-document/index.d.ts.map +1 -0
  545. package/lib/services/http/chat/message-document/message-document.service.d.ts.map +1 -0
  546. package/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.d.ts.map +1 -0
  547. package/lib/services/http/depreciation/depreciation-capital-project/index.d.ts.map +1 -0
  548. package/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.d.ts.map +1 -0
  549. package/lib/services/http/depreciation/depreciation-receipt/index.d.ts.map +1 -0
  550. package/lib/services/http/depreciation/depreciation.service.d.ts.map +1 -0
  551. package/lib/services/http/depreciation/index.d.ts.map +1 -0
  552. package/lib/services/http/document/document-folder/document-folder.service.d.ts.map +1 -0
  553. package/lib/services/http/document/document.service.d.ts.map +1 -0
  554. package/lib/services/http/document/index.d.ts.map +1 -0
  555. package/lib/services/http/facebook/facebook-auth-options.interface.d.ts.map +1 -0
  556. package/lib/services/http/facebook/facebook-auth-response.interface.d.ts.map +1 -0
  557. package/lib/services/http/facebook/facebook-status-response.interface.d.ts.map +1 -0
  558. package/lib/services/http/facebook/facebook.service.d.ts.map +1 -0
  559. package/lib/services/http/facebook/index.d.ts.map +1 -0
  560. package/lib/services/http/firm/client-income/client-income-types.service.d.ts.map +1 -0
  561. package/lib/services/http/firm/client-income/index.d.ts.map +1 -0
  562. package/lib/services/http/firm/client-invite/client-invite.service.d.ts.map +1 -0
  563. package/lib/services/http/firm/client-invite/index.d.ts.map +1 -0
  564. package/lib/services/http/firm/client-movement/client-movement.service.d.ts.map +1 -0
  565. package/lib/services/http/firm/client-movement/index.d.ts.map +1 -0
  566. package/lib/services/http/firm/employee/employee.service.d.ts.map +1 -0
  567. package/lib/services/http/firm/employee/index.d.ts.map +1 -0
  568. package/lib/services/http/firm/employee-invite/employee-invite.service.d.ts.map +1 -0
  569. package/lib/services/http/firm/employee-invite/index.d.ts.map +1 -0
  570. package/lib/services/http/firm/firm.service.d.ts.map +1 -0
  571. package/lib/services/http/firm/index.d.ts.map +1 -0
  572. package/lib/services/http/firm/portfolio-report/client-portfolio-report.service.d.ts.map +1 -0
  573. package/lib/services/http/firm/portfolio-report/index.d.ts.map +1 -0
  574. package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts.map +1 -0
  575. package/lib/services/http/income-source/income-source-forecast/index.d.ts.map +1 -0
  576. package/lib/services/http/income-source/income-source.service.d.ts.map +1 -0
  577. package/lib/services/http/income-source/index.d.ts.map +1 -0
  578. package/lib/services/http/income-source/salary-forecast/index.d.ts.map +1 -0
  579. package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts.map +1 -0
  580. package/lib/services/http/income-source/sole-forecast/index.d.ts.map +1 -0
  581. package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts.map +1 -0
  582. package/lib/services/http/index.d.ts.map +1 -0
  583. package/lib/services/http/loan/borrowing-expense/borrowing-expense.service.d.ts.map +1 -0
  584. package/lib/services/http/loan/borrowing-expense/index.d.ts.map +1 -0
  585. package/lib/services/http/loan/index.d.ts.map +1 -0
  586. package/lib/services/http/loan/loan.service.d.ts.map +1 -0
  587. package/lib/services/http/property/index.d.ts.map +1 -0
  588. package/lib/services/http/property/property-category/index.d.ts.map +1 -0
  589. package/lib/services/http/property/property-category/property-category.service.d.ts.map +1 -0
  590. package/lib/services/http/property/property-category-movement/index.d.ts.map +1 -0
  591. package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts.map +1 -0
  592. package/lib/services/http/property/property-document/index.d.ts.map +1 -0
  593. package/lib/services/http/property/property-document/property-document.service.d.ts.map +1 -0
  594. package/lib/services/http/property/property-sale/index.d.ts.map +1 -0
  595. package/lib/services/http/property/property-sale/property-sale.service.d.ts.map +1 -0
  596. package/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.d.ts.map +1 -0
  597. package/lib/services/http/property/property-share/index.d.ts.map +1 -0
  598. package/lib/services/http/property/property-share/property-share.service.d.ts.map +1 -0
  599. package/lib/services/http/property/property.service.d.ts.map +1 -0
  600. package/lib/services/http/receipt/index.d.ts.map +1 -0
  601. package/lib/services/http/receipt/receipt.service.d.ts.map +1 -0
  602. package/lib/services/http/service-notification/index.d.ts.map +1 -0
  603. package/lib/services/http/service-notification/service-notification.service.d.ts.map +1 -0
  604. package/lib/services/http/sole/bas-report/bas-report.service.d.ts.map +1 -0
  605. package/lib/services/http/sole/index.d.ts.map +1 -0
  606. package/lib/services/http/sole/sole-business/messages.enum.d.ts.map +1 -0
  607. package/lib/services/http/sole/sole-business/sole-business.service.d.ts.map +1 -0
  608. package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts.map +1 -0
  609. package/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.d.ts.map +1 -0
  610. package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts.map +1 -0
  611. package/lib/services/http/sole/sole-contact/sole-contact.service.d.ts.map +1 -0
  612. package/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.d.ts.map +1 -0
  613. package/lib/services/http/sole/sole-details/sole-details.service.d.ts.map +1 -0
  614. package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts.map +1 -0
  615. package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts.map +1 -0
  616. package/lib/services/http/subscription/index.d.ts.map +1 -0
  617. package/lib/services/http/subscription/service-price.service.d.ts.map +1 -0
  618. package/lib/services/http/subscription/subscription.service.d.ts.map +1 -0
  619. package/lib/services/http/tax-review/index.d.ts.map +1 -0
  620. package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts.map +1 -0
  621. package/lib/services/http/tax-review/tax-review.service.d.ts.map +1 -0
  622. package/lib/services/http/tax-summary/index.d.ts.map +1 -0
  623. package/lib/services/http/tax-summary/tax-summary.service.d.ts.map +1 -0
  624. package/lib/services/http/transaction/index.d.ts.map +1 -0
  625. package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts.map +1 -0
  626. package/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.d.ts.map +1 -0
  627. package/lib/services/http/transaction/transaction.service.d.ts +3 -10
  628. package/lib/services/http/transaction/transaction.service.d.ts.map +1 -0
  629. package/lib/services/http/tutorial-video/index.d.ts.map +1 -0
  630. package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts.map +1 -0
  631. package/lib/services/http/tutorial-video/tutorial-video.service.d.ts.map +1 -0
  632. package/lib/services/http/tutorial-video/video-source.interface.d.ts.map +1 -0
  633. package/lib/services/http/user/index.d.ts.map +1 -0
  634. package/lib/services/http/user/occupation/occupation.service.d.ts.map +1 -0
  635. package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts.map +1 -0
  636. package/lib/services/http/user/user-event-type/user-event-type.service.d.ts.map +1 -0
  637. package/lib/services/http/user/users-invite/users-invite.service.d.ts.map +1 -0
  638. package/lib/services/http/vehicle/index.d.ts.map +1 -0
  639. package/lib/services/http/vehicle/vehicle-claim-details.service.d.ts.map +1 -0
  640. package/lib/services/http/vehicle/vehicle-claim.service.d.ts.map +1 -0
  641. package/lib/services/http/vehicle/vehicle-logbook.service.d.ts.map +1 -0
  642. package/lib/services/http/vehicle/vehicle.service.d.ts.map +1 -0
  643. package/lib/services/index.d.ts.map +1 -0
  644. package/lib/services/intercom/index.d.ts.map +1 -0
  645. package/lib/services/intercom/intercom.service.d.ts.map +1 -0
  646. package/lib/services/pdf/index.d.ts.map +1 -0
  647. package/lib/services/pdf/pdf-from-dom-element/file-settings.d.ts.map +1 -0
  648. package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts.map +1 -0
  649. package/lib/services/pdf/pdf-from-table/file-settings.d.ts.map +1 -0
  650. package/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.d.ts.map +1 -0
  651. package/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.d.ts.map +1 -0
  652. package/lib/services/pdf/pdf-from-table/pdf-from-table.service.d.ts.map +1 -0
  653. package/lib/services/preloader/index.d.ts.map +1 -0
  654. package/lib/services/preloader/preloader.service.d.ts.map +1 -0
  655. package/lib/services/property/corelogic/index.d.ts.map +1 -0
  656. package/lib/services/property/equity-position-chart/equity-position-chart.service.d.ts.map +1 -0
  657. package/lib/services/property/equity-position-chart/index.d.ts.map +1 -0
  658. package/lib/services/property/index.d.ts.map +1 -0
  659. package/lib/services/property/property-calculation/index.d.ts.map +1 -0
  660. package/lib/services/property/property-calculation/property-calculation.service.d.ts.map +1 -0
  661. package/lib/services/report/index.d.ts.map +1 -0
  662. package/lib/services/report/property/property-transaction-report.service.d.ts +4 -7
  663. package/lib/services/report/property/property-transaction-report.service.d.ts.map +1 -0
  664. package/lib/services/toast/index.d.ts.map +1 -0
  665. package/lib/services/toast/toast.service.d.ts.map +1 -0
  666. package/lib/services/transaction/index.d.ts.map +1 -0
  667. package/lib/services/transaction/transaction-calculation.service.d.ts.map +1 -0
  668. package/lib/services/user/index.d.ts.map +1 -0
  669. package/lib/services/user/user-switcher.service.d.ts.map +1 -0
  670. package/lib/services/vehicle/index.d.ts.map +1 -0
  671. package/lib/services/vehicle/logbook-best-period.service.d.ts.map +1 -0
  672. package/lib/services/xlsx/index.d.ts.map +1 -0
  673. package/lib/services/xlsx/xlsx.service.d.ts.map +1 -0
  674. package/lib/tt-core.module.d.ts.map +1 -0
  675. package/lib/validators/address-corelogic.validator.d.ts.map +1 -0
  676. package/lib/validators/at-least-one-enabled.validator.d.ts.map +1 -0
  677. package/lib/validators/at-least-one.validator.d.ts.map +1 -0
  678. package/lib/validators/autocomplete.validator.d.ts.map +1 -0
  679. package/lib/validators/conditional.validator.d.ts.map +1 -0
  680. package/lib/validators/current-fin-year.validator.d.ts +5 -0
  681. package/lib/validators/current-fin-year.validator.d.ts.map +1 -0
  682. package/lib/validators/date-range.validator.d.ts.map +1 -0
  683. package/lib/validators/fields-sum.validator.d.ts.map +1 -0
  684. package/lib/validators/file.validator.d.ts +6 -0
  685. package/lib/validators/file.validator.d.ts.map +1 -0
  686. package/lib/validators/index.d.ts +2 -0
  687. package/lib/validators/index.d.ts.map +1 -0
  688. package/lib/validators/min-date/messages.enum.d.ts.map +1 -0
  689. package/lib/validators/min-date/min-date.validator.d.ts.map +1 -0
  690. package/lib/validators/password-match.validator.d.ts.map +1 -0
  691. package/lib/validators/password.validator.d.ts.map +1 -0
  692. package/lib/validators/phone-number.validator.d.ts.map +1 -0
  693. package/lib/validators/required-length.validator.d.ts.map +1 -0
  694. package/package.json +1 -1
  695. package/public-api.d.ts +11 -11
  696. package/public-api.d.ts.map +1 -0
  697. package/taxtank-core.d.ts.map +1 -0
  698. package/esm2015/lib/db/Enums/chart-accounts-metadata-type.enum.js +0 -6
  699. package/esm2015/lib/db/Enums/chart-accounts-type.enum.js +0 -6
@@ -548,7 +548,17 @@ class UserSwitcherInterceptor {
548
548
  if (!req.url.includes(this.environment.api_uri) || !username) {
549
549
  return req;
550
550
  }
551
- const params = new HttpParams({ fromString: req.params.toString() }).set('_switch_user', username);
551
+ const params = new HttpParams({
552
+ fromString: req.params.toString(),
553
+ // custom encoder to encode '+' symbol and other (Problem: TT-2359)
554
+ // https://stackoverflow.com/questions/49438737/how-to-escape-angular-httpparams
555
+ encoder: {
556
+ encodeKey: (key) => encodeURIComponent(key),
557
+ encodeValue: (value) => encodeURIComponent(value),
558
+ decodeKey: (key) => decodeURIComponent(key),
559
+ decodeValue: (value) => decodeURIComponent(value)
560
+ }
561
+ }).set('_switch_user', username);
552
562
  return req.clone({ params });
553
563
  // @TODO move to header solution when backend can support it
554
564
  // return req.clone({
@@ -2406,36 +2416,120 @@ class ChartAccountsHeading extends ChartAccountsHeading$1 {
2406
2416
  class ChartAccountsMetadata$1 extends AbstractModel {
2407
2417
  }
2408
2418
 
2409
- var ChartAccountsMetadataListEnum;
2410
- (function (ChartAccountsMetadataListEnum) {
2411
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_INSTALMENTS"] = 4] = "TAX_INSTALMENTS";
2412
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["FRANKING_CREDIT"] = 5] = "FRANKING_CREDIT";
2413
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["ELIGIBLE_FOR_REDUCTION"] = 6] = "ELIGIBLE_FOR_REDUCTION";
2414
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["SHARE_PERCENTAGE"] = 7] = "SHARE_PERCENTAGE";
2415
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_OFFSETS"] = 8] = "TAX_OFFSETS";
2416
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["HOURS"] = 11] = "HOURS";
2417
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_PAID"] = 13] = "TAX_PAID";
2418
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_FREE_COMPONENT"] = 18] = "TAX_FREE_COMPONENT";
2419
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["YEARS_OF_SERVICE"] = 19] = "YEARS_OF_SERVICE";
2420
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["UNTAXED_ELEMENT"] = 24] = "UNTAXED_ELEMENT";
2421
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["NOT_ELIGIBLE_FOR_DEDUCTION"] = 25] = "NOT_ELIGIBLE_FOR_DEDUCTION";
2422
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["FRANKED"] = 26] = "FRANKED";
2423
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["UNFRANKED"] = 27] = "UNFRANKED";
2424
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_OFFSETS_N_R_A_S"] = 29] = "TAX_OFFSETS_N_R_A_S";
2425
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["DISCOUNT_FROM_DEFERRED_SCHEMES"] = 32] = "DISCOUNT_FROM_DEFERRED_SCHEMES";
2426
- })(ChartAccountsMetadataListEnum || (ChartAccountsMetadataListEnum = {}));
2419
+ var DocumentTypeEnum;
2420
+ (function (DocumentTypeEnum) {
2421
+ DocumentTypeEnum[DocumentTypeEnum["INVOICE"] = 1] = "INVOICE";
2422
+ })(DocumentTypeEnum || (DocumentTypeEnum = {}));
2427
2423
 
2428
- class ChartAccountsMetadata extends ChartAccountsMetadata$1 {
2429
- /**
2430
- * Check if metadata id is related to SHARE_PERCENTAGE value
2431
- */
2432
- isSharePercentage() {
2433
- return this.id === ChartAccountsMetadataListEnum.SHARE_PERCENTAGE;
2434
- }
2435
- isHours() {
2436
- return this.id === ChartAccountsMetadataListEnum.HOURS;
2437
- }
2438
- }
2424
+ var AnnualFrequencyEnum;
2425
+ (function (AnnualFrequencyEnum) {
2426
+ AnnualFrequencyEnum[AnnualFrequencyEnum["ANNUAL"] = 1] = "ANNUAL";
2427
+ AnnualFrequencyEnum[AnnualFrequencyEnum["QUARTERLY"] = 3] = "QUARTERLY";
2428
+ AnnualFrequencyEnum[AnnualFrequencyEnum["MONTHLY"] = 12] = "MONTHLY";
2429
+ AnnualFrequencyEnum[AnnualFrequencyEnum["FORTNIGHTLY"] = 26] = "FORTNIGHTLY";
2430
+ AnnualFrequencyEnum[AnnualFrequencyEnum["WEEKLY"] = 52] = "WEEKLY";
2431
+ })(AnnualFrequencyEnum || (AnnualFrequencyEnum = {}));
2432
+
2433
+ var ChartAccountsCategoryEnum;
2434
+ (function (ChartAccountsCategoryEnum) {
2435
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_INCOME"] = 1] = "PROPERTY_INCOME";
2436
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_EXPENSE"] = 2] = "PROPERTY_EXPENSE";
2437
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_DEPRECIATION"] = 3] = "PROPERTY_DEPRECIATION";
2438
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_CAPITAL_WORKS"] = 4] = "PROPERTY_CAPITAL_WORKS";
2439
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["WORK_DEPRECIATION"] = 5] = "WORK_DEPRECIATION";
2440
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["WORK_INCOME"] = 6] = "WORK_INCOME";
2441
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["WORK_EXPENSE"] = 7] = "WORK_EXPENSE";
2442
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["OTHER_INCOME"] = 8] = "OTHER_INCOME";
2443
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["OTHER_EXPENSE"] = 9] = "OTHER_EXPENSE";
2444
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PERSONAL_INCOME"] = 10] = "PERSONAL_INCOME";
2445
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PERSONAL_EXPENSE"] = 11] = "PERSONAL_EXPENSE";
2446
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["SOLE_INCOME"] = 12] = "SOLE_INCOME";
2447
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["SOLE_EXPENSE"] = 13] = "SOLE_EXPENSE";
2448
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["SOLE_DEPRECIATION"] = 14] = "SOLE_DEPRECIATION";
2449
+ })(ChartAccountsCategoryEnum || (ChartAccountsCategoryEnum = {}));
2450
+
2451
+ var ChartAccountsEtpEnum;
2452
+ (function (ChartAccountsEtpEnum) {
2453
+ ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_R"] = 549] = "ETP_R";
2454
+ ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_S"] = 550] = "ETP_S";
2455
+ ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_O"] = 551] = "ETP_O";
2456
+ ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_D"] = 552] = "ETP_D";
2457
+ ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_B"] = 553] = "ETP_B";
2458
+ })(ChartAccountsEtpEnum || (ChartAccountsEtpEnum = {}));
2459
+
2460
+ var ChartAccountsHeadingListEnum;
2461
+ (function (ChartAccountsHeadingListEnum) {
2462
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES"] = 2] = "ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES";
2463
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS"] = 4] = "AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS";
2464
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES"] = 5] = "AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES";
2465
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_CAR_EXPENSES"] = 8] = "WORK_RELATED_CAR_EXPENSES";
2466
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_VEHICLES"] = 9] = "DEPRECIATION_VEHICLES";
2467
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_TRAVEL_EXPENSES"] = 10] = "WORK_RELATED_TRAVEL_EXPENSES";
2468
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["COMPULSORY_WORK_UNIFORM"] = 11] = "COMPULSORY_WORK_UNIFORM";
2469
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PROTECTION_CLOTHING"] = 12] = "PROTECTION_CLOTHING";
2470
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OCCUPATIONAL_SPECIFIC_CLOTHING"] = 13] = "OCCUPATIONAL_SPECIFIC_CLOTHING";
2471
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SELF_EDUCATIONAL_EXPENSES"] = 14] = "SELF_EDUCATIONAL_EXPENSES";
2472
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_WORK_RELATED_EXPENSES"] = 15] = "OTHER_WORK_RELATED_EXPENSES";
2473
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUBSCRIPTIONS"] = 16] = "SUBSCRIPTIONS";
2474
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_RUNNING"] = 17] = "HOME_OFFICE_RUNNING";
2475
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TOOLS_EQUIPMENT"] = 18] = "TOOLS_EQUIPMENT";
2476
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_OCCUPANCY"] = 19] = "HOME_OFFICE_OCCUPANCY";
2477
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE"] = 20] = "AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE";
2478
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["NEWSPAPER"] = 21] = "NEWSPAPER";
2479
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PRINTING_POSTAGE_STATIONERY"] = 22] = "PRINTING_POSTAGE_STATIONERY";
2480
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SEMINARS_ETC"] = 23] = "SEMINARS_ETC";
2481
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TELEPHONE"] = 24] = "TELEPHONE";
2482
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["UNION_FEES"] = 25] = "UNION_FEES";
2483
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER"] = 26] = "OTHER";
2484
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DONATIONS"] = 27] = "DONATIONS";
2485
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PSI"] = 30] = "PSI";
2486
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BONUSES"] = 34] = "BONUSES";
2487
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_DEDUCTIONS"] = 37] = "OTHER_DEDUCTIONS";
2488
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ETP"] = 39] = "ETP";
2489
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_DEDUCTIONS"] = 47] = "INTEREST_DEDUCTIONS";
2490
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DIVIDEND_DEDUCTIONS"] = 48] = "DIVIDEND_DEDUCTIONS";
2491
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PURCHASES_STOCK_INVENTORY"] = 52] = "PURCHASES_STOCK_INVENTORY";
2492
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["CONTRACTORS_COMMISSION"] = 53] = "CONTRACTORS_COMMISSION";
2493
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUPERANNUATION"] = 54] = "SUPERANNUATION";
2494
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BAD_DEBT"] = 55] = "BAD_DEBT";
2495
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_EXPENSES"] = 56] = "LEASE_EXPENSES";
2496
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["RENT_EXPENSES"] = 57] = "RENT_EXPENSES";
2497
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_AUSTRALIA"] = 58] = "INTEREST_EXPENSES_AUSTRALIA";
2498
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_OVERSEAS"] = 59] = "INTEREST_EXPENSES_OVERSEAS";
2499
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["KLMS"] = 60] = "KLMS";
2500
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["FUEL_OIL"] = 61] = "FUEL_OIL";
2501
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SERVICES_MAINTENANCE"] = 62] = "SERVICES_MAINTENANCE";
2502
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["REGISTRATION"] = 63] = "REGISTRATION";
2503
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_INTEREST_PAYMENTS"] = 64] = "LEASE_INTEREST_PAYMENTS";
2504
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INSURANCE"] = 65] = "INSURANCE";
2505
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TYRES_BATTERIES"] = 66] = "TYRES_BATTERIES";
2506
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_EXPENSES"] = 67] = "OTHER_EXPENSES";
2507
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_EXPENSES"] = 68] = "DEPRECIATION_EXPENSES";
2508
+ })(ChartAccountsHeadingListEnum || (ChartAccountsHeadingListEnum = {}));
2509
+
2510
+ var ChartAccountsHeadingTaxDeductibleEnum;
2511
+ (function (ChartAccountsHeadingTaxDeductibleEnum) {
2512
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ALLOWANCES_AND_PAYMENTS"] = 4] = "ALLOWANCES_AND_PAYMENTS";
2513
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
2514
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS"] = 40] = "ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS";
2515
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["SUPERANNUATION_LUMP_SUM"] = 41] = "SUPERANNUATION_LUMP_SUM";
2516
+ })(ChartAccountsHeadingTaxDeductibleEnum || (ChartAccountsHeadingTaxDeductibleEnum = {}));
2517
+
2518
+ var ChartAccountsHeadingTaxableEnum;
2519
+ (function (ChartAccountsHeadingTaxableEnum) {
2520
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["GROSS_INTEREST"] = 7] = "GROSS_INTEREST";
2521
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["DIVIDENDS"] = 38] = "DIVIDENDS";
2522
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["EMPLOYEE_SHARE_SCHEMES"] = 42] = "EMPLOYEE_SHARE_SCHEMES";
2523
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["PARTNERSHIPS_AND_TRUSTS_INCOME"] = 43] = "PARTNERSHIPS_AND_TRUSTS_INCOME";
2524
+ })(ChartAccountsHeadingTaxableEnum || (ChartAccountsHeadingTaxableEnum = {}));
2525
+
2526
+ var ChartAccountsHeadingVehicleListEnum;
2527
+ (function (ChartAccountsHeadingVehicleListEnum) {
2528
+ ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["WORK_RELATED_CAR_EXPENSES"] = 8] = "WORK_RELATED_CAR_EXPENSES";
2529
+ ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["DEPRECIATION_VEHICLES"] = 9] = "DEPRECIATION_VEHICLES";
2530
+ ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["KLMS"] = 60] = "KLMS";
2531
+ ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["FUEL_OIL"] = 61] = "FUEL_OIL";
2532
+ })(ChartAccountsHeadingVehicleListEnum || (ChartAccountsHeadingVehicleListEnum = {}));
2439
2533
 
2440
2534
  var ChartAccountsListEnum;
2441
2535
  (function (ChartAccountsListEnum) {
@@ -2530,31 +2624,81 @@ var ChartAccountsListEnum;
2530
2624
  ChartAccountsListEnum[ChartAccountsListEnum["PSI_DEDUCTION_OTHER"] = 860] = "PSI_DEDUCTION_OTHER";
2531
2625
  })(ChartAccountsListEnum || (ChartAccountsListEnum = {}));
2532
2626
 
2533
- var ChartAccountsCategoryEnum;
2534
- (function (ChartAccountsCategoryEnum) {
2535
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_INCOME"] = 1] = "PROPERTY_INCOME";
2536
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_EXPENSE"] = 2] = "PROPERTY_EXPENSE";
2537
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_DEPRECIATION"] = 3] = "PROPERTY_DEPRECIATION";
2538
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_CAPITAL_WORKS"] = 4] = "PROPERTY_CAPITAL_WORKS";
2539
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["WORK_DEPRECIATION"] = 5] = "WORK_DEPRECIATION";
2540
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["WORK_INCOME"] = 6] = "WORK_INCOME";
2541
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["WORK_EXPENSE"] = 7] = "WORK_EXPENSE";
2542
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["OTHER_INCOME"] = 8] = "OTHER_INCOME";
2543
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["OTHER_EXPENSE"] = 9] = "OTHER_EXPENSE";
2544
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PERSONAL_INCOME"] = 10] = "PERSONAL_INCOME";
2545
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PERSONAL_EXPENSE"] = 11] = "PERSONAL_EXPENSE";
2546
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["SOLE_INCOME"] = 12] = "SOLE_INCOME";
2547
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["SOLE_EXPENSE"] = 13] = "SOLE_EXPENSE";
2548
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["SOLE_DEPRECIATION"] = 14] = "SOLE_DEPRECIATION";
2549
- })(ChartAccountsCategoryEnum || (ChartAccountsCategoryEnum = {}));
2627
+ var ChartAccountsMetadataListEnum;
2628
+ (function (ChartAccountsMetadataListEnum) {
2629
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_INSTALMENTS"] = 4] = "TAX_INSTALMENTS";
2630
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["FRANKING_CREDIT"] = 5] = "FRANKING_CREDIT";
2631
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["ELIGIBLE_FOR_REDUCTION"] = 6] = "ELIGIBLE_FOR_REDUCTION";
2632
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["SHARE_PERCENTAGE"] = 7] = "SHARE_PERCENTAGE";
2633
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_OFFSETS"] = 8] = "TAX_OFFSETS";
2634
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["HOURS"] = 11] = "HOURS";
2635
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_PAID"] = 13] = "TAX_PAID";
2636
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_FREE_COMPONENT"] = 18] = "TAX_FREE_COMPONENT";
2637
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["YEARS_OF_SERVICE"] = 19] = "YEARS_OF_SERVICE";
2638
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["UNTAXED_ELEMENT"] = 24] = "UNTAXED_ELEMENT";
2639
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["NOT_ELIGIBLE_FOR_DEDUCTION"] = 25] = "NOT_ELIGIBLE_FOR_DEDUCTION";
2640
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["FRANKED"] = 26] = "FRANKED";
2641
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["UNFRANKED"] = 27] = "UNFRANKED";
2642
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_OFFSETS_N_R_A_S"] = 29] = "TAX_OFFSETS_N_R_A_S";
2643
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["DISCOUNT_FROM_DEFERRED_SCHEMES"] = 32] = "DISCOUNT_FROM_DEFERRED_SCHEMES";
2644
+ })(ChartAccountsMetadataListEnum || (ChartAccountsMetadataListEnum = {}));
2550
2645
 
2551
- var ChartAccountsHeadingVehicleListEnum;
2552
- (function (ChartAccountsHeadingVehicleListEnum) {
2553
- ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["WORK_RELATED_CAR_EXPENSES"] = 8] = "WORK_RELATED_CAR_EXPENSES";
2554
- ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["DEPRECIATION_VEHICLES"] = 9] = "DEPRECIATION_VEHICLES";
2555
- ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["KLMS"] = 60] = "KLMS";
2556
- ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["FUEL_OIL"] = 61] = "FUEL_OIL";
2557
- })(ChartAccountsHeadingVehicleListEnum || (ChartAccountsHeadingVehicleListEnum = {}));
2646
+ var ChartAccountsMetadataTypeEnum;
2647
+ (function (ChartAccountsMetadataTypeEnum) {
2648
+ ChartAccountsMetadataTypeEnum[ChartAccountsMetadataTypeEnum["NUMBER"] = 3] = "NUMBER";
2649
+ ChartAccountsMetadataTypeEnum[ChartAccountsMetadataTypeEnum["BOOLEAN"] = 4] = "BOOLEAN";
2650
+ })(ChartAccountsMetadataTypeEnum || (ChartAccountsMetadataTypeEnum = {}));
2651
+
2652
+ var ChartAccountsSalaryAdjustmentsListEnum;
2653
+ (function (ChartAccountsSalaryAdjustmentsListEnum) {
2654
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["ALLOWANCE"] = 4] = "ALLOWANCE";
2655
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["TIPS"] = 5] = "TIPS";
2656
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["REIMBURSEMENTS"] = 555] = "REIMBURSEMENTS";
2657
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["ADVANCE"] = 556] = "ADVANCE";
2658
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["POST_TAX_DEDUCTIONS_OTHER"] = 644] = "POST_TAX_DEDUCTIONS_OTHER";
2659
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["PRE_TAX_DEDUCTIONS_OTHER"] = 645] = "PRE_TAX_DEDUCTIONS_OTHER";
2660
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["PHONE_ALLOWANCE"] = 646] = "PHONE_ALLOWANCE";
2661
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["UNIFORM_ALLOWANCE"] = 647] = "UNIFORM_ALLOWANCE";
2662
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["META_ALLOWANCE"] = 648] = "META_ALLOWANCE";
2663
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["TRAVEL_ALLOWANCE"] = 649] = "TRAVEL_ALLOWANCE";
2664
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["OTHER_ALLOWANCE"] = 650] = "OTHER_ALLOWANCE";
2665
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["LAFH"] = 651] = "LAFH";
2666
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["WORK_PLACE_GIVING"] = 653] = "WORK_PLACE_GIVING";
2667
+ })(ChartAccountsSalaryAdjustmentsListEnum || (ChartAccountsSalaryAdjustmentsListEnum = {}));
2668
+
2669
+ var ChartAccountsSalaryIncludedListEnum;
2670
+ (function (ChartAccountsSalaryIncludedListEnum) {
2671
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["ALLOWANCE"] = 4] = "ALLOWANCE";
2672
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["TIPS"] = 5] = "TIPS";
2673
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["REIMBURSEMENTS"] = 555] = "REIMBURSEMENTS";
2674
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["ADVANCE"] = 556] = "ADVANCE";
2675
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["PHONE_ALLOWANCE"] = 646] = "PHONE_ALLOWANCE";
2676
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["UNIFORM_ALLOWANCE"] = 647] = "UNIFORM_ALLOWANCE";
2677
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["META_ALLOWANCE"] = 648] = "META_ALLOWANCE";
2678
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["TRAVEL_ALLOWANCE"] = 649] = "TRAVEL_ALLOWANCE";
2679
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["OTHER_ALLOWANCE"] = 650] = "OTHER_ALLOWANCE";
2680
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["LAFH"] = 651] = "LAFH";
2681
+ })(ChartAccountsSalaryIncludedListEnum || (ChartAccountsSalaryIncludedListEnum = {}));
2682
+
2683
+ var ChartAccountsTypeEnum;
2684
+ (function (ChartAccountsTypeEnum) {
2685
+ ChartAccountsTypeEnum[ChartAccountsTypeEnum["INCOME"] = 1] = "INCOME";
2686
+ ChartAccountsTypeEnum[ChartAccountsTypeEnum["EXPENSE"] = 2] = "EXPENSE";
2687
+ })(ChartAccountsTypeEnum || (ChartAccountsTypeEnum = {}));
2688
+
2689
+ // @TODO Artem TT-2308 move everything
2690
+
2691
+ class ChartAccountsMetadata extends ChartAccountsMetadata$1 {
2692
+ /**
2693
+ * Check if metadata id is related to SHARE_PERCENTAGE value
2694
+ */
2695
+ isSharePercentage() {
2696
+ return this.id === ChartAccountsMetadataListEnum.SHARE_PERCENTAGE;
2697
+ }
2698
+ isHours() {
2699
+ return this.id === ChartAccountsMetadataListEnum.HOURS;
2700
+ }
2701
+ }
2558
2702
 
2559
2703
  /**
2560
2704
  * Grouped chart accounts categories for fast work
@@ -2657,6 +2801,26 @@ const CHART_ACCOUNTS_CATEGORIES = {
2657
2801
  ]
2658
2802
  };
2659
2803
 
2804
+ var ChartAccountsTaxLabelsEnum;
2805
+ (function (ChartAccountsTaxLabelsEnum) {
2806
+ ChartAccountsTaxLabelsEnum["TAX_WITHHELD"] = "Tax withheld";
2807
+ ChartAccountsTaxLabelsEnum["TAX_PAID"] = "Tax Paid";
2808
+ ChartAccountsTaxLabelsEnum["TAX_DEDUCTED"] = "Tax Deducted";
2809
+ })(ChartAccountsTaxLabelsEnum || (ChartAccountsTaxLabelsEnum = {}));
2810
+
2811
+ function enumToList(data) {
2812
+ const list = [];
2813
+ for (const key in data) {
2814
+ if (Number(key) >= 0) {
2815
+ list.push({
2816
+ label: data[key],
2817
+ value: Number(key)
2818
+ });
2819
+ }
2820
+ }
2821
+ return list;
2822
+ }
2823
+
2660
2824
  class ChartAccounts extends ChartAccounts$1 {
2661
2825
  /**
2662
2826
  * Return name as string
@@ -2690,7 +2854,7 @@ class ChartAccounts extends ChartAccounts$1 {
2690
2854
  }
2691
2855
  }
2692
2856
  /**
2693
- * Check if chart accounts id is related for 'NRAS Tax Offset' category
2857
+ * special type used for just pre-paying tax to the ATO, uses on tax summary
2694
2858
  */
2695
2859
  isNRAS() {
2696
2860
  return this.id === ChartAccountsListEnum.TAX_OFFSETS_N_R_A_S;
@@ -2807,6 +2971,43 @@ class ChartAccounts extends ChartAccounts$1 {
2807
2971
  isClaimPercentEditable() {
2808
2972
  return (this.isWorkExpense() || this.isSoleExpense()) && (!this.isVehicleExpense() && !this.isPersonalExpense());
2809
2973
  }
2974
+ /**
2975
+ * get label for transaction tax field depended on selected chart account.
2976
+ * tax type depends on chart account heading or category.
2977
+ */
2978
+ getTaxLabel() {
2979
+ var _a, _b;
2980
+ // get simple array of ids from enum with taxable chart accounts headings
2981
+ const taxableCAHeadingsIds = enumToList(ChartAccountsHeadingTaxableEnum)
2982
+ .map((item) => item.value);
2983
+ // get simple array of ids from enum with tax-deductible chart accounts headings
2984
+ const deductibleCAHeadingsIds = enumToList(ChartAccountsHeadingTaxDeductibleEnum)
2985
+ .map((item) => item.value);
2986
+ // check if one of ids arrays includes current chart accounts heading id and set tax label
2987
+ // otherwise label is empty for this class
2988
+ switch (true) {
2989
+ case taxableCAHeadingsIds.includes((_a = this.heading) === null || _a === void 0 ? void 0 : _a.id):
2990
+ return ChartAccountsTaxLabelsEnum.TAX_PAID;
2991
+ case deductibleCAHeadingsIds.includes((_b = this.heading) === null || _b === void 0 ? void 0 : _b.id):
2992
+ return ChartAccountsTaxLabelsEnum.TAX_DEDUCTED;
2993
+ case CHART_ACCOUNTS_CATEGORIES.workIncome.includes(this.category):
2994
+ return ChartAccountsTaxLabelsEnum.TAX_WITHHELD;
2995
+ default:
2996
+ return null;
2997
+ }
2998
+ }
2999
+ isETP() {
3000
+ return this.heading.id === ChartAccountsHeadingListEnum.ETP;
3001
+ }
3002
+ isSalary() {
3003
+ return this.id === ChartAccountsListEnum.SALARY_OR_WAGES;
3004
+ }
3005
+ /**
3006
+ * chart accounts included in salary, like tips or allowance
3007
+ */
3008
+ isSalaryIncluded() {
3009
+ return this.id in ChartAccountsSalaryIncludedListEnum;
3010
+ }
2810
3011
  }
2811
3012
  /**
2812
3013
  * Australian GST percent value (VAT)
@@ -2946,42 +3147,110 @@ var DepreciationCalculationEnum;
2946
3147
  DepreciationCalculationEnum[DepreciationCalculationEnum["SBP"] = 6] = "SBP";
2947
3148
  })(DepreciationCalculationEnum || (DepreciationCalculationEnum = {}));
2948
3149
 
2949
- class TransactionReceipt$1 extends AbstractModel {
3150
+ class TransactionReceipt$1 extends AbstractModel {
3151
+ }
3152
+
3153
+ /**
3154
+ * Enum with asset types
3155
+ */
3156
+ var AssetTypeEnum;
3157
+ (function (AssetTypeEnum) {
3158
+ AssetTypeEnum["TRANSACTION_RECEIPT"] = "transactionReceipt";
3159
+ AssetTypeEnum["PROPERTY"] = "property";
3160
+ AssetTypeEnum["DOCUMENT"] = "document";
3161
+ AssetTypeEnum["MESSAGE"] = "message";
3162
+ AssetTypeEnum["USER_PHOTO"] = "userPhoto";
3163
+ AssetTypeEnum["PROPERTY_PHOTO"] = "propertyPhoto";
3164
+ AssetTypeEnum["DEPRECIATION_RECEIPT"] = "depreciationReceipt";
3165
+ AssetTypeEnum["FIRM_PHOTO"] = "firmPhoto";
3166
+ })(AssetTypeEnum || (AssetTypeEnum = {}));
3167
+
3168
+ /**
3169
+ * Enum with asset entity types
3170
+ */
3171
+ var AssetEntityTypeEnum;
3172
+ (function (AssetEntityTypeEnum) {
3173
+ AssetEntityTypeEnum["PROPERTIES"] = "properties";
3174
+ AssetEntityTypeEnum["FOLDERS"] = "folders";
3175
+ AssetEntityTypeEnum["DEPRECIATIONS"] = "depreciations";
3176
+ AssetEntityTypeEnum["TRANSACTIONS"] = "transactions";
3177
+ AssetEntityTypeEnum["MESSAGES"] = "messages";
3178
+ })(AssetEntityTypeEnum || (AssetEntityTypeEnum = {}));
3179
+
3180
+ class TransactionReceipt extends TransactionReceipt$1 {
3181
+ constructor() {
3182
+ super(...arguments);
3183
+ this.type = AssetTypeEnum.TRANSACTION_RECEIPT;
3184
+ this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
3185
+ }
3186
+ }
3187
+
3188
+ /**
3189
+ * @TODO Alex/Vik: think and create some new collection type
3190
+ * @TODO Alex: research all constants and make the same structure
3191
+ */
3192
+ class ChartAccountsCategoryECollection {
3193
+ constructor(items) {
3194
+ this.items = items || [
3195
+ ChartAccountsCategoryEnum.PROPERTY_INCOME,
3196
+ ChartAccountsCategoryEnum.PROPERTY_EXPENSE,
3197
+ ChartAccountsCategoryEnum.PROPERTY_DEPRECIATION,
3198
+ ChartAccountsCategoryEnum.PROPERTY_CAPITAL_WORKS,
3199
+ ChartAccountsCategoryEnum.WORK_DEPRECIATION,
3200
+ ChartAccountsCategoryEnum.WORK_INCOME,
3201
+ ChartAccountsCategoryEnum.WORK_EXPENSE,
3202
+ ChartAccountsCategoryEnum.OTHER_INCOME,
3203
+ ChartAccountsCategoryEnum.OTHER_EXPENSE,
3204
+ ChartAccountsCategoryEnum.PERSONAL_INCOME,
3205
+ ChartAccountsCategoryEnum.PERSONAL_EXPENSE,
3206
+ ChartAccountsCategoryEnum.SOLE_INCOME,
3207
+ ChartAccountsCategoryEnum.SOLE_EXPENSE,
3208
+ ChartAccountsCategoryEnum.SOLE_DEPRECIATION
3209
+ ];
3210
+ }
3211
+ getByType(types) {
3212
+ if (!Array.isArray(types)) {
3213
+ types = [types];
3214
+ }
3215
+ const items = [];
3216
+ types.forEach((type) => {
3217
+ const filtered = this.items.filter((item) => ChartAccountsCategoryEnum[item].includes(type.toUpperCase()));
3218
+ items.push(...filtered);
3219
+ });
3220
+ return new ChartAccountsCategoryECollection(items);
3221
+ }
3222
+ getByTankType(tankTypes) {
3223
+ if (!Array.isArray(tankTypes)) {
3224
+ tankTypes = [tankTypes];
3225
+ }
3226
+ const items = [];
3227
+ tankTypes.forEach((tankType) => {
3228
+ const filtered = this.items.filter((item) => ChartAccountsCategoryEnum[item].includes(tankType.toUpperCase()));
3229
+ items.push(...filtered);
3230
+ });
3231
+ return new ChartAccountsCategoryECollection(items);
3232
+ }
3233
+ }
3234
+
3235
+ class ChartAccountsDepreciation$1 extends AbstractModel {
2950
3236
  }
2951
3237
 
2952
- /**
2953
- * Enum with asset types
2954
- */
2955
- var AssetTypeEnum;
2956
- (function (AssetTypeEnum) {
2957
- AssetTypeEnum["TRANSACTION_RECEIPT"] = "transactionReceipt";
2958
- AssetTypeEnum["PROPERTY"] = "property";
2959
- AssetTypeEnum["DOCUMENT"] = "document";
2960
- AssetTypeEnum["MESSAGE"] = "message";
2961
- AssetTypeEnum["USER_PHOTO"] = "userPhoto";
2962
- AssetTypeEnum["PROPERTY_PHOTO"] = "propertyPhoto";
2963
- AssetTypeEnum["DEPRECIATION_RECEIPT"] = "depreciationReceipt";
2964
- AssetTypeEnum["FIRM_PHOTO"] = "firmPhoto";
2965
- })(AssetTypeEnum || (AssetTypeEnum = {}));
3238
+ class ChartAccountsDepreciation extends ChartAccountsDepreciation$1 {
3239
+ }
3240
+ __decorate([
3241
+ Type(() => ChartAccounts)
3242
+ ], ChartAccountsDepreciation.prototype, "chartAccounts", void 0);
3243
+ __decorate([
3244
+ Transform(({ value }) => +value)
3245
+ ], ChartAccountsDepreciation.prototype, "limit", void 0);
3246
+ __decorate([
3247
+ Transform(({ value }) => +value)
3248
+ ], ChartAccountsDepreciation.prototype, "effectiveLife", void 0);
2966
3249
 
2967
- /**
2968
- * Enum with asset entity types
2969
- */
2970
- var AssetEntityTypeEnum;
2971
- (function (AssetEntityTypeEnum) {
2972
- AssetEntityTypeEnum["PROPERTIES"] = "properties";
2973
- AssetEntityTypeEnum["FOLDERS"] = "folders";
2974
- AssetEntityTypeEnum["DEPRECIATIONS"] = "depreciations";
2975
- AssetEntityTypeEnum["TRANSACTIONS"] = "transactions";
2976
- AssetEntityTypeEnum["MESSAGES"] = "messages";
2977
- })(AssetEntityTypeEnum || (AssetEntityTypeEnum = {}));
3250
+ class ChartAccountsValue$1 extends AbstractModel {
3251
+ }
2978
3252
 
2979
- class TransactionReceipt extends TransactionReceipt$1 {
2980
- constructor() {
2981
- super(...arguments);
2982
- this.type = AssetTypeEnum.TRANSACTION_RECEIPT;
2983
- this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
2984
- }
3253
+ class ChartAccountsValue extends ChartAccountsValue$1 {
2985
3254
  }
2986
3255
 
2987
3256
  class IncomeSource$1 extends AbstractModel {
@@ -2998,6 +3267,9 @@ class SalaryForecast$1 extends AbstractModel {
2998
3267
  }
2999
3268
 
3000
3269
  class SalaryForecast extends SalaryForecast$1 {
3270
+ get taxWithheld() {
3271
+ return this.grossAmount - this.netPay;
3272
+ }
3001
3273
  }
3002
3274
  __decorate([
3003
3275
  Transform(({ obj }) => obj.netPay + obj.tax),
@@ -3305,6 +3577,23 @@ class DepreciationForecast extends DepreciationForecast$1 {
3305
3577
  }
3306
3578
  }
3307
3579
 
3580
+ /**
3581
+ * Enum with income amount types (Net or Gross)
3582
+ */
3583
+ var IncomeAmountTypeEnum;
3584
+ (function (IncomeAmountTypeEnum) {
3585
+ IncomeAmountTypeEnum[IncomeAmountTypeEnum["NET"] = 0] = "NET";
3586
+ IncomeAmountTypeEnum[IncomeAmountTypeEnum["GROSS"] = 1] = "GROSS";
3587
+ })(IncomeAmountTypeEnum || (IncomeAmountTypeEnum = {}));
3588
+
3589
+ var TransactionCategoryEnum;
3590
+ (function (TransactionCategoryEnum) {
3591
+ TransactionCategoryEnum[TransactionCategoryEnum["PROPERTY"] = 0] = "PROPERTY";
3592
+ TransactionCategoryEnum[TransactionCategoryEnum["WORK"] = 1] = "WORK";
3593
+ TransactionCategoryEnum[TransactionCategoryEnum["SOLE"] = 2] = "SOLE";
3594
+ TransactionCategoryEnum[TransactionCategoryEnum["PERSONAL"] = 3] = "PERSONAL";
3595
+ })(TransactionCategoryEnum || (TransactionCategoryEnum = {}));
3596
+
3308
3597
  /**
3309
3598
  * @TODO Alex: clarify grouping rules and refactor
3310
3599
  */
@@ -3652,7 +3941,7 @@ class Transaction extends Transaction$1 {
3652
3941
  if (this.isExpense()) {
3653
3942
  return grossAmount;
3654
3943
  }
3655
- grossAmount += this.transactions.reduce((sum, transaction) => sum + Math.abs(transaction.amount), 0);
3944
+ grossAmount += this.transactions.filter((t) => { var _a; return !((_a = t.chartAccounts) === null || _a === void 0 ? void 0 : _a.isSalaryIncluded()); }).reduce((sum, transaction) => sum + Math.abs(transaction.amount), 0);
3656
3945
  if (this.isWorkTank()) {
3657
3946
  grossAmount += this.frankingCredit - this.taxFreeComponent - this.eligibleForReduction;
3658
3947
  }
@@ -3958,6 +4247,7 @@ class Vehicle$1 extends AbstractModel {
3958
4247
  class VehicleLogbook$1 extends AbstractModel {
3959
4248
  }
3960
4249
 
4250
+ // problem with DateRange and typescript. See more https://github.com/rotaready/moment-range/issues/263
3961
4251
  const moment = extendMoment(moment$1);
3962
4252
  class VehicleLogbook extends VehicleLogbook$1 {
3963
4253
  get kilometers() {
@@ -5860,6 +6150,29 @@ class Document extends Document$1 {
5860
6150
  }
5861
6151
  }
5862
6152
 
6153
+ const DOCUMENT_FILE_TYPES = {
6154
+ image: [
6155
+ 'image/png',
6156
+ 'image/jpg',
6157
+ 'image/jpeg',
6158
+ 'image/tiff',
6159
+ 'image/bmp'
6160
+ ],
6161
+ all: [
6162
+ 'image/png',
6163
+ 'image/jpg',
6164
+ 'image/jpeg',
6165
+ 'image/tiff',
6166
+ 'image/bmp',
6167
+ 'application/msword',
6168
+ 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
6169
+ 'application/pdf',
6170
+ 'application/vnd.ms-excel',
6171
+ 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
6172
+ 'text/csv'
6173
+ ]
6174
+ };
6175
+
5863
6176
  class DocumentFolder$1 extends AbstractModel {
5864
6177
  }
5865
6178
 
@@ -7521,179 +7834,29 @@ class TaxReviewCollection extends Collection {
7521
7834
  }
7522
7835
  /**
7523
7836
  * get list of items by firm id
7524
- */
7525
- getByEmployeeId(employeeId) {
7526
- return this.items.filter((item) => item.employee.id === employeeId);
7527
- }
7528
- getEmployees() {
7529
- return uniqBy(this.items.map((review) => review.employee), 'id');
7530
- }
7531
- }
7532
-
7533
- /**
7534
- * Collection of user event settings
7535
- */
7536
- class UserEventSettingCollection extends Collection {
7537
- getConfigurableBy(field) {
7538
- return new UserEventSettingCollection(this.items.filter((setting) => setting[field] !== null));
7539
- }
7540
- }
7541
-
7542
- class ClientInviteCollection extends Collection {
7543
- getPending() {
7544
- return this.filter((invite) => invite.isPending());
7545
- }
7546
- }
7547
-
7548
- /**
7549
- * @TODO Alex/Vik: think and create some new collection type
7550
- * @TODO Alex: research all constants and make the same structure
7551
- */
7552
- class ChartAccountsCategoryECollection {
7553
- constructor(items) {
7554
- this.items = items || [
7555
- ChartAccountsCategoryEnum.PROPERTY_INCOME,
7556
- ChartAccountsCategoryEnum.PROPERTY_EXPENSE,
7557
- ChartAccountsCategoryEnum.PROPERTY_DEPRECIATION,
7558
- ChartAccountsCategoryEnum.PROPERTY_CAPITAL_WORKS,
7559
- ChartAccountsCategoryEnum.WORK_DEPRECIATION,
7560
- ChartAccountsCategoryEnum.WORK_INCOME,
7561
- ChartAccountsCategoryEnum.WORK_EXPENSE,
7562
- ChartAccountsCategoryEnum.OTHER_INCOME,
7563
- ChartAccountsCategoryEnum.OTHER_EXPENSE,
7564
- ChartAccountsCategoryEnum.PERSONAL_INCOME,
7565
- ChartAccountsCategoryEnum.PERSONAL_EXPENSE,
7566
- ChartAccountsCategoryEnum.SOLE_INCOME,
7567
- ChartAccountsCategoryEnum.SOLE_EXPENSE,
7568
- ChartAccountsCategoryEnum.SOLE_DEPRECIATION
7569
- ];
7570
- }
7571
- getByType(types) {
7572
- if (!Array.isArray(types)) {
7573
- types = [types];
7574
- }
7575
- const items = [];
7576
- types.forEach((type) => {
7577
- const filtered = this.items.filter((item) => ChartAccountsCategoryEnum[item].includes(type.toUpperCase()));
7578
- items.push(...filtered);
7579
- });
7580
- return new ChartAccountsCategoryECollection(items);
7581
- }
7582
- getByTankType(tankTypes) {
7583
- if (!Array.isArray(tankTypes)) {
7584
- tankTypes = [tankTypes];
7585
- }
7586
- const items = [];
7587
- tankTypes.forEach((tankType) => {
7588
- const filtered = this.items.filter((item) => ChartAccountsCategoryEnum[item].includes(tankType.toUpperCase()));
7589
- items.push(...filtered);
7590
- });
7591
- return new ChartAccountsCategoryECollection(items);
7592
- }
7593
- }
7594
-
7595
- var DocumentTypeEnum;
7596
- (function (DocumentTypeEnum) {
7597
- DocumentTypeEnum[DocumentTypeEnum["INVOICE"] = 1] = "INVOICE";
7598
- })(DocumentTypeEnum || (DocumentTypeEnum = {}));
7599
-
7600
- var AnnualFrequencyEnum;
7601
- (function (AnnualFrequencyEnum) {
7602
- AnnualFrequencyEnum[AnnualFrequencyEnum["ANNUAL"] = 1] = "ANNUAL";
7603
- AnnualFrequencyEnum[AnnualFrequencyEnum["QUARTERLY"] = 3] = "QUARTERLY";
7604
- AnnualFrequencyEnum[AnnualFrequencyEnum["MONTHLY"] = 12] = "MONTHLY";
7605
- AnnualFrequencyEnum[AnnualFrequencyEnum["FORTNIGHTLY"] = 26] = "FORTNIGHTLY";
7606
- AnnualFrequencyEnum[AnnualFrequencyEnum["WEEKLY"] = 52] = "WEEKLY";
7607
- })(AnnualFrequencyEnum || (AnnualFrequencyEnum = {}));
7608
-
7609
- // @TODO Artem TT-2308 move everything
7610
-
7611
- var ChartAccountsEtpEnum;
7612
- (function (ChartAccountsEtpEnum) {
7613
- ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_R"] = 549] = "ETP_R";
7614
- ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_S"] = 550] = "ETP_S";
7615
- ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_O"] = 551] = "ETP_O";
7616
- ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_D"] = 552] = "ETP_D";
7617
- ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_B"] = 553] = "ETP_B";
7618
- })(ChartAccountsEtpEnum || (ChartAccountsEtpEnum = {}));
7619
-
7620
- var ChartAccountsHeadingListEnum;
7621
- (function (ChartAccountsHeadingListEnum) {
7622
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES"] = 2] = "ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES";
7623
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS"] = 4] = "AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS";
7624
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES"] = 5] = "AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES";
7625
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_CAR_EXPENSES"] = 8] = "WORK_RELATED_CAR_EXPENSES";
7626
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_VEHICLES"] = 9] = "DEPRECIATION_VEHICLES";
7627
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_TRAVEL_EXPENSES"] = 10] = "WORK_RELATED_TRAVEL_EXPENSES";
7628
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["COMPULSORY_WORK_UNIFORM"] = 11] = "COMPULSORY_WORK_UNIFORM";
7629
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PROTECTION_CLOTHING"] = 12] = "PROTECTION_CLOTHING";
7630
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OCCUPATIONAL_SPECIFIC_CLOTHING"] = 13] = "OCCUPATIONAL_SPECIFIC_CLOTHING";
7631
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SELF_EDUCATIONAL_EXPENSES"] = 14] = "SELF_EDUCATIONAL_EXPENSES";
7632
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_WORK_RELATED_EXPENSES"] = 15] = "OTHER_WORK_RELATED_EXPENSES";
7633
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUBSCRIPTIONS"] = 16] = "SUBSCRIPTIONS";
7634
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_RUNNING"] = 17] = "HOME_OFFICE_RUNNING";
7635
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TOOLS_EQUIPMENT"] = 18] = "TOOLS_EQUIPMENT";
7636
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_OCCUPANCY"] = 19] = "HOME_OFFICE_OCCUPANCY";
7637
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE"] = 20] = "AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE";
7638
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["NEWSPAPER"] = 21] = "NEWSPAPER";
7639
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PRINTING_POSTAGE_STATIONERY"] = 22] = "PRINTING_POSTAGE_STATIONERY";
7640
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SEMINARS_ETC"] = 23] = "SEMINARS_ETC";
7641
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TELEPHONE"] = 24] = "TELEPHONE";
7642
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["UNION_FEES"] = 25] = "UNION_FEES";
7643
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER"] = 26] = "OTHER";
7644
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DONATIONS"] = 27] = "DONATIONS";
7645
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PSI"] = 30] = "PSI";
7646
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BONUSES"] = 34] = "BONUSES";
7647
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_DEDUCTIONS"] = 37] = "OTHER_DEDUCTIONS";
7648
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ETP"] = 39] = "ETP";
7649
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_DEDUCTIONS"] = 47] = "INTEREST_DEDUCTIONS";
7650
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DIVIDEND_DEDUCTIONS"] = 48] = "DIVIDEND_DEDUCTIONS";
7651
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PURCHASES_STOCK_INVENTORY"] = 52] = "PURCHASES_STOCK_INVENTORY";
7652
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["CONTRACTORS_COMMISSION"] = 53] = "CONTRACTORS_COMMISSION";
7653
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUPERANNUATION"] = 54] = "SUPERANNUATION";
7654
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BAD_DEBT"] = 55] = "BAD_DEBT";
7655
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_EXPENSES"] = 56] = "LEASE_EXPENSES";
7656
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["RENT_EXPENSES"] = 57] = "RENT_EXPENSES";
7657
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_AUSTRALIA"] = 58] = "INTEREST_EXPENSES_AUSTRALIA";
7658
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_OVERSEAS"] = 59] = "INTEREST_EXPENSES_OVERSEAS";
7659
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["KLMS"] = 60] = "KLMS";
7660
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["FUEL_OIL"] = 61] = "FUEL_OIL";
7661
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SERVICES_MAINTENANCE"] = 62] = "SERVICES_MAINTENANCE";
7662
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["REGISTRATION"] = 63] = "REGISTRATION";
7663
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_INTEREST_PAYMENTS"] = 64] = "LEASE_INTEREST_PAYMENTS";
7664
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INSURANCE"] = 65] = "INSURANCE";
7665
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TYRES_BATTERIES"] = 66] = "TYRES_BATTERIES";
7666
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_EXPENSES"] = 67] = "OTHER_EXPENSES";
7667
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_EXPENSES"] = 68] = "DEPRECIATION_EXPENSES";
7668
- })(ChartAccountsHeadingListEnum || (ChartAccountsHeadingListEnum = {}));
7669
-
7670
- var ChartAccountsHeadingTaxableEnum;
7671
- (function (ChartAccountsHeadingTaxableEnum) {
7672
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["GROSS_INTEREST"] = 7] = "GROSS_INTEREST";
7673
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["DIVIDENDS"] = 38] = "DIVIDENDS";
7674
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["EMPLOYEE_SHARE_SCHEMES"] = 42] = "EMPLOYEE_SHARE_SCHEMES";
7675
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["PARTNERSHIPS_AND_TRUSTS_INCOME"] = 43] = "PARTNERSHIPS_AND_TRUSTS_INCOME";
7676
- })(ChartAccountsHeadingTaxableEnum || (ChartAccountsHeadingTaxableEnum = {}));
7677
-
7678
- var ChartAccountsHeadingTaxDeductibleEnum;
7679
- (function (ChartAccountsHeadingTaxDeductibleEnum) {
7680
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ALLOWANCES_AND_PAYMENTS"] = 4] = "ALLOWANCES_AND_PAYMENTS";
7681
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
7682
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS"] = 40] = "ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS";
7683
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["SUPERANNUATION_LUMP_SUM"] = 41] = "SUPERANNUATION_LUMP_SUM";
7684
- })(ChartAccountsHeadingTaxDeductibleEnum || (ChartAccountsHeadingTaxDeductibleEnum = {}));
7837
+ */
7838
+ getByEmployeeId(employeeId) {
7839
+ return this.items.filter((item) => item.employee.id === employeeId);
7840
+ }
7841
+ getEmployees() {
7842
+ return uniqBy(this.items.map((review) => review.employee), 'id');
7843
+ }
7844
+ }
7685
7845
 
7686
- var ChartAccountsMetadataTypeEnum;
7687
- (function (ChartAccountsMetadataTypeEnum) {
7688
- ChartAccountsMetadataTypeEnum[ChartAccountsMetadataTypeEnum["NUMBER"] = 3] = "NUMBER";
7689
- ChartAccountsMetadataTypeEnum[ChartAccountsMetadataTypeEnum["BOOLEAN"] = 4] = "BOOLEAN";
7690
- })(ChartAccountsMetadataTypeEnum || (ChartAccountsMetadataTypeEnum = {}));
7846
+ /**
7847
+ * Collection of user event settings
7848
+ */
7849
+ class UserEventSettingCollection extends Collection {
7850
+ getConfigurableBy(field) {
7851
+ return new UserEventSettingCollection(this.items.filter((setting) => setting[field] !== null));
7852
+ }
7853
+ }
7691
7854
 
7692
- var ChartAccountsTypeEnum;
7693
- (function (ChartAccountsTypeEnum) {
7694
- ChartAccountsTypeEnum[ChartAccountsTypeEnum["INCOME"] = 1] = "INCOME";
7695
- ChartAccountsTypeEnum[ChartAccountsTypeEnum["EXPENSE"] = 2] = "EXPENSE";
7696
- })(ChartAccountsTypeEnum || (ChartAccountsTypeEnum = {}));
7855
+ class ClientInviteCollection extends Collection {
7856
+ getPending() {
7857
+ return this.filter((invite) => invite.isPending());
7858
+ }
7859
+ }
7697
7860
 
7698
7861
  var ClientDetailsMedicareExemptionEnum;
7699
7862
  (function (ClientDetailsMedicareExemptionEnum) {
@@ -8132,34 +8295,6 @@ class BorrowingExpenseLoan$1 extends AbstractModel {
8132
8295
  class BorrowingExpenseLoan extends BorrowingExpenseLoan$1 {
8133
8296
  }
8134
8297
 
8135
- class ChartAccountsDepreciation$1 extends AbstractModel {
8136
- }
8137
-
8138
- class ChartAccountsDepreciation extends ChartAccountsDepreciation$1 {
8139
- }
8140
- __decorate([
8141
- Type(() => ChartAccounts)
8142
- ], ChartAccountsDepreciation.prototype, "chartAccounts", void 0);
8143
- __decorate([
8144
- Transform(({ value }) => +value)
8145
- ], ChartAccountsDepreciation.prototype, "limit", void 0);
8146
- __decorate([
8147
- Transform(({ value }) => +value)
8148
- ], ChartAccountsDepreciation.prototype, "effectiveLife", void 0);
8149
-
8150
- var ChartAccountsTaxLabelsEnum;
8151
- (function (ChartAccountsTaxLabelsEnum) {
8152
- ChartAccountsTaxLabelsEnum["TAX_WITHHELD"] = "Tax withheld";
8153
- ChartAccountsTaxLabelsEnum["TAX_PAID"] = "Tax Paid";
8154
- ChartAccountsTaxLabelsEnum["TAX_DEDUCTED"] = "Tax Deducted";
8155
- })(ChartAccountsTaxLabelsEnum || (ChartAccountsTaxLabelsEnum = {}));
8156
-
8157
- class ChartAccountsValue$1 extends AbstractModel {
8158
- }
8159
-
8160
- class ChartAccountsValue extends ChartAccountsValue$1 {
8161
- }
8162
-
8163
8298
  class Chat$1 extends AbstractModel {
8164
8299
  }
8165
8300
 
@@ -8539,29 +8674,6 @@ class DepreciationReceipt extends DepreciationReceipt$1 {
8539
8674
  }
8540
8675
  }
8541
8676
 
8542
- const DOCUMENT_FILE_TYPES = {
8543
- image: [
8544
- 'image/png',
8545
- 'image/jpg',
8546
- 'image/jpeg',
8547
- 'image/tiff',
8548
- 'image/bmp'
8549
- ],
8550
- all: [
8551
- 'image/png',
8552
- 'image/jpg',
8553
- 'image/jpeg',
8554
- 'image/tiff',
8555
- 'image/bmp',
8556
- 'application/msword',
8557
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
8558
- 'application/pdf',
8559
- 'application/vnd.ms-excel',
8560
- 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
8561
- 'text/csv'
8562
- ]
8563
- };
8564
-
8565
8677
  class EmployeeInvite$1 extends AbstractModel {
8566
8678
  }
8567
8679
 
@@ -10115,23 +10227,6 @@ var TaxSummaryTypeEnum;
10115
10227
  TaxSummaryTypeEnum["FORECASTS"] = "forecasts";
10116
10228
  })(TaxSummaryTypeEnum || (TaxSummaryTypeEnum = {}));
10117
10229
 
10118
- /**
10119
- * Enum with income amount types (Net or Gross)
10120
- */
10121
- var IncomeAmountTypeEnum;
10122
- (function (IncomeAmountTypeEnum) {
10123
- IncomeAmountTypeEnum[IncomeAmountTypeEnum["NET"] = 0] = "NET";
10124
- IncomeAmountTypeEnum[IncomeAmountTypeEnum["GROSS"] = 1] = "GROSS";
10125
- })(IncomeAmountTypeEnum || (IncomeAmountTypeEnum = {}));
10126
-
10127
- var TransactionCategoryEnum;
10128
- (function (TransactionCategoryEnum) {
10129
- TransactionCategoryEnum[TransactionCategoryEnum["PROPERTY"] = 0] = "PROPERTY";
10130
- TransactionCategoryEnum[TransactionCategoryEnum["WORK"] = 1] = "WORK";
10131
- TransactionCategoryEnum[TransactionCategoryEnum["SOLE"] = 2] = "SOLE";
10132
- TransactionCategoryEnum[TransactionCategoryEnum["PERSONAL"] = 3] = "PERSONAL";
10133
- })(TransactionCategoryEnum || (TransactionCategoryEnum = {}));
10134
-
10135
10230
  class MyAccountHistory {
10136
10231
  }
10137
10232
 
@@ -10525,12 +10620,11 @@ class ChartAccountsService {
10525
10620
  }
10526
10621
  /**
10527
10622
  * Get list of chart accounts heading
10528
- * @param categories
10529
10623
  */
10530
- getChartAccountsHeadings(categories = CHART_ACCOUNTS_CATEGORIES.all) {
10624
+ getChartAccountsHeadings(categories = CHART_ACCOUNTS_CATEGORIES.all, chartAccountsIds) {
10531
10625
  return this.getChartAccounts()
10532
10626
  .pipe(map((chartAccounts) => {
10533
- const filteredChartAccounts = chartAccounts.filter((ca) => categories.includes(ca.category));
10627
+ const filteredChartAccounts = chartAccounts.filter((ca) => categories.includes(ca.category) && (!chartAccountsIds || chartAccountsIds.includes(ca.id)));
10534
10628
  const headings = [];
10535
10629
  filteredChartAccounts.forEach((ca) => {
10536
10630
  let heading = headings.find((h) => { var _a; return h.id === ((_a = ca.heading) === null || _a === void 0 ? void 0 : _a.id); });
@@ -12875,12 +12969,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
12875
12969
  args: ['environment']
12876
12970
  }] }, { type: ToastService }, { type: SseService }]; } });
12877
12971
 
12878
- var MessagesEnum$1;
12972
+ var MessagesEnum$2;
12879
12973
  (function (MessagesEnum) {
12880
12974
  MessagesEnum["LOGO_UPDATED"] = "Logo updated successfully";
12881
12975
  MessagesEnum["LOGO_ERROR_FORMAT"] = "Wrong file format. Allowed extensions: jpg, img, png";
12882
12976
  MessagesEnum["LOGO_ERROR_SIZE"] = "The file is too big. Maximum size is 2mb";
12883
- })(MessagesEnum$1 || (MessagesEnum$1 = {}));
12977
+ })(MessagesEnum$2 || (MessagesEnum$2 = {}));
12884
12978
 
12885
12979
  class SoleBusinessService extends RestService$1 {
12886
12980
  constructor() {
@@ -12904,7 +12998,7 @@ class SoleBusinessService extends RestService$1 {
12904
12998
  replace(tempCache, plainToClass(SoleBusiness, updatedBusiness));
12905
12999
  this.cache = tempCache;
12906
13000
  this.cacheSubject.next(this.cache);
12907
- this.toastService.success(MessagesEnum$1.LOGO_UPDATED);
13001
+ this.toastService.success(MessagesEnum$2.LOGO_UPDATED);
12908
13002
  }), catchError((error) => {
12909
13003
  // Show error when user provided wrong image (format or size)
12910
13004
  if (error.status === 422) {
@@ -13680,19 +13774,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
13680
13774
  args: ['environment']
13681
13775
  }] }, { type: ToastService }]; } });
13682
13776
 
13683
- function enumToList(data) {
13684
- const list = [];
13685
- for (const key in data) {
13686
- if (Number(key) >= 0) {
13687
- list.push({
13688
- label: data[key],
13689
- value: Number(key)
13690
- });
13691
- }
13692
- }
13693
- return list;
13694
- }
13695
-
13696
13777
  /**
13697
13778
  * Service for transactions business logic
13698
13779
  */
@@ -13940,31 +14021,6 @@ class TransactionService extends RestService$1 {
13940
14021
  }
13941
14022
  return amount;
13942
14023
  }
13943
- /**
13944
- * get label for transaction tax field depended of selected chart account.
13945
- * tax type depends of chart account heading or category.
13946
- */
13947
- getTaxLabel(chartAccounts) {
13948
- var _a, _b;
13949
- // get simple array of ids from enum with taxable chart accounts headings
13950
- const taxableCAHeadingsIds = enumToList(ChartAccountsHeadingTaxableEnum)
13951
- .map((item) => item.value);
13952
- // get simple array of ids from enum with tax deductible chart accounts headings
13953
- const deductibleCAHeadingsIds = enumToList(ChartAccountsHeadingTaxDeductibleEnum)
13954
- .map((item) => item.value);
13955
- // check if one of ids arrays includes current chart accounts heading id and set tax label
13956
- // otherwise label is empty for this class
13957
- switch (true) {
13958
- case taxableCAHeadingsIds.includes((_a = chartAccounts.heading) === null || _a === void 0 ? void 0 : _a.id):
13959
- return ChartAccountsTaxLabelsEnum.TAX_PAID;
13960
- case deductibleCAHeadingsIds.includes((_b = chartAccounts.heading) === null || _b === void 0 ? void 0 : _b.id):
13961
- return ChartAccountsTaxLabelsEnum.TAX_DEDUCTED;
13962
- case CHART_ACCOUNTS_CATEGORIES.workIncome.includes(chartAccounts.category):
13963
- return ChartAccountsTaxLabelsEnum.TAX_WITHHELD;
13964
- default:
13965
- return null;
13966
- }
13967
- }
13968
14024
  /**
13969
14025
  * Listen to EventDispatcherService event related to Depreciation changing
13970
14026
  */
@@ -15728,15 +15784,15 @@ function passwordMatchValidator(newPassControlName, confirmPassControlName) {
15728
15784
  };
15729
15785
  }
15730
15786
 
15731
- var MessagesEnum;
15787
+ var MessagesEnum$1;
15732
15788
  (function (MessagesEnum) {
15733
15789
  MessagesEnum["INVALID_DATE"] = "The date should not be before $1";
15734
- })(MessagesEnum || (MessagesEnum = {}));
15790
+ })(MessagesEnum$1 || (MessagesEnum$1 = {}));
15735
15791
 
15736
15792
  /**
15737
15793
  * Validation function, that checks If date form value is more than provided date
15738
15794
  */
15739
- function minDateValidator(date, message = MessagesEnum.INVALID_DATE.replace('$1', new DatePipe('en-US').transform(date))) {
15795
+ function minDateValidator(date, message = MessagesEnum$1.INVALID_DATE.replace('$1', new DatePipe('en-US').transform(date))) {
15740
15796
  return (control) => {
15741
15797
  if (!control.value) {
15742
15798
  return null;
@@ -15775,6 +15831,45 @@ function fieldsSumValidator(field, summary = 100, fieldAlias) {
15775
15831
  };
15776
15832
  }
15777
15833
 
15834
+ /**
15835
+ * Validation function, that checks If provided date is within a current financial year
15836
+ */
15837
+ function currentFinYearValidator() {
15838
+ const currentFinYear = new FinancialYear();
15839
+ return (control) => {
15840
+ if (!control.value || control.value >= currentFinYear.startDate && control.value <= currentFinYear.endDate) {
15841
+ return null;
15842
+ }
15843
+ return { notCurrentFinYear: true };
15844
+ };
15845
+ }
15846
+
15847
+ const MAX_SIZE = 4194304;
15848
+ class FileValidator {
15849
+ // File max size check
15850
+ static fileMaxSize(maxSize = MAX_SIZE) {
15851
+ const validatorFn = (file) => {
15852
+ return file.size > maxSize ? { fileMaxSize: { maxSize } } : null;
15853
+ };
15854
+ return FileValidator.fileValidation(validatorFn);
15855
+ }
15856
+ // File extension check
15857
+ static fileExtensions(allowedExtensions = DOCUMENT_FILE_TYPES.all) {
15858
+ const validatorFn = (file) => {
15859
+ return allowedExtensions.includes(file.type) ? null : { fileExtension: { allowedExtensions: allowedExtensions.join() } };
15860
+ };
15861
+ return FileValidator.fileValidation(validatorFn);
15862
+ }
15863
+ static fileValidation(validatorFn) {
15864
+ return (formControl) => {
15865
+ if (!formControl.value) {
15866
+ return null;
15867
+ }
15868
+ return validatorFn(formControl.value);
15869
+ };
15870
+ }
15871
+ }
15872
+
15778
15873
  /**
15779
15874
  * Validator for address, check if corelogic suggestion selected correctly
15780
15875
  */
@@ -17668,11 +17763,313 @@ class VehicleLogbookForm extends AbstractForm {
17668
17763
  }
17669
17764
  VehicleLogbookForm.maxDescriptionLength = 60;
17670
17765
 
17766
+ /**
17767
+ * general validation rules
17768
+ */
17769
+ var FormValidationsEnum;
17770
+ (function (FormValidationsEnum) {
17771
+ FormValidationsEnum[FormValidationsEnum["INPUT_MAX_LENGTH"] = 60] = "INPUT_MAX_LENGTH";
17772
+ FormValidationsEnum[FormValidationsEnum["TEXT_MAX_LENGTH"] = 300] = "TEXT_MAX_LENGTH";
17773
+ FormValidationsEnum[FormValidationsEnum["FILE_MAX_SIZE"] = 4194304] = "FILE_MAX_SIZE";
17774
+ // @TODO move to file uploader component
17775
+ FormValidationsEnum["FILE_ACCEPTED_TYPES"] = "Accepted file type: .doc .jpg .png .pdf .tiff .bmp .excel .csv";
17776
+ })(FormValidationsEnum || (FormValidationsEnum = {}));
17777
+
17778
+ /**
17779
+ * @TODO refactor, move specific fields like property in separated forms
17780
+ * @TODO remove useless getters
17781
+ */
17782
+ class TransactionBaseForm extends AbstractForm {
17783
+ constructor(transaction, registeredForGst, controls = {}) {
17784
+ var _a;
17785
+ super(Object.assign({
17786
+ chartAccounts: new FormControl(transaction.chartAccounts, [Validators.required, autocompleteValidator()]),
17787
+ claimPercent: new FormControl({ value: transaction.claimPercent, disabled: true }, [Validators.required, Validators.min(0), Validators.max(100)]),
17788
+ amount: new FormControl(transaction.amount, Validators.required),
17789
+ amountWithGST: new FormControl(transaction.amountWithGst, Validators.required),
17790
+ isGST: new FormControl({ value: transaction.isGST, disabled: !((_a = transaction.chartAccounts) === null || _a === void 0 ? void 0 : _a.isGST) || !registeredForGst }),
17791
+ gstAmount: new FormControl({ value: transaction.gstAmount, disabled: true }, Validators.required),
17792
+ date: new FormControl(transaction.date, [Validators.required, currentFinYearValidator()]),
17793
+ description: new FormControl(transaction.description, Validators.maxLength(FormValidationsEnum.TEXT_MAX_LENGTH)),
17794
+ // @TODO Alex: refactor (TT-1996)
17795
+ file: new FormControl(transaction['receipt'], [
17796
+ FileValidator.fileExtensions(DOCUMENT_FILE_TYPES.all), FileValidator.fileMaxSize(+FormValidationsEnum.FILE_MAX_SIZE)
17797
+ ]),
17798
+ property: new FormControl({ value: transaction.property, disabled: transaction.chartAccounts }),
17799
+ }, controls), transaction);
17800
+ this.registeredForGst = registeredForGst;
17801
+ this.watchChartAccounts();
17802
+ if (this.isGstApplicable()) {
17803
+ this.watchAmountWithGST();
17804
+ this.watchIsGst();
17805
+ }
17806
+ }
17807
+ watchIsGst() {
17808
+ this.get('isGST').valueChanges.subscribe((isGST) => {
17809
+ this.updateAmount();
17810
+ this.updateGstAmount();
17811
+ });
17812
+ }
17813
+ watchAmountWithGST() {
17814
+ this.get('amountWithGST').valueChanges.subscribe(() => {
17815
+ this.updateAmount();
17816
+ this.updateGstAmount();
17817
+ });
17818
+ }
17819
+ watchChartAccounts() {
17820
+ this.get('chartAccounts').valueChanges.subscribe((value) => {
17821
+ if (!(value instanceof ChartAccounts)) {
17822
+ return;
17823
+ }
17824
+ // recalculate claim percent for selected chart accounts
17825
+ this.updateClaimPercent(value);
17826
+ if (!this.isGstApplicable()) {
17827
+ return;
17828
+ }
17829
+ // update gst if applicable
17830
+ if (value.isGST) {
17831
+ this.get('isGST').enable();
17832
+ this.get('isGST').patchValue(true);
17833
+ }
17834
+ else {
17835
+ this.get('isGST').patchValue(false);
17836
+ this.get('isGST').disable();
17837
+ }
17838
+ });
17839
+ }
17840
+ updateGstAmount() {
17841
+ this.get('gstAmount').patchValue((this.amountWithGST - this.amount).toFixed(2));
17842
+ }
17843
+ updateAmount() {
17844
+ this.get('amount').patchValue(this.isGST ? (this.amountWithGST / ChartAccounts.GSTCoefficient).toFixed(2) : this.amountWithGST);
17845
+ }
17846
+ isGstApplicable() {
17847
+ return !!this.registeredForGst && !!this.model.business;
17848
+ }
17849
+ get amount() {
17850
+ return this.get('amount').value;
17851
+ }
17852
+ get amountWithGST() {
17853
+ return this.get('amountWithGST').value;
17854
+ }
17855
+ get isGST() {
17856
+ return this.get('isGST').value;
17857
+ }
17858
+ /**
17859
+ * propertyClaimPercent for propertyExpense (except platform fees, which already include claimPercent),
17860
+ * taxablePercent for others
17861
+ * can be adjusted only for property/sole expenses
17862
+ */
17863
+ updateClaimPercent(chartAccounts) {
17864
+ var _a;
17865
+ if (chartAccounts.isClaimPercentEditable()) {
17866
+ this.get('claimPercent').enable();
17867
+ }
17868
+ // property claim (ownership% x shared%) for property expenses, taxable percent for others
17869
+ let claimPercent = chartAccounts.taxablePercent;
17870
+ if (chartAccounts.isPropertyExpense() && chartAccounts.id !== ChartAccountsListEnum.PLATFORM_FEES) {
17871
+ claimPercent *= (_a = this.value.property) === null || _a === void 0 ? void 0 : _a.claimCoefficient;
17872
+ }
17873
+ this.get('claimPercent').setValue(claimPercent);
17874
+ }
17875
+ }
17876
+
17877
+ var MessagesEnum;
17878
+ (function (MessagesEnum) {
17879
+ MessagesEnum["DATE_VALIDATION_ERROR"] = "The transaction date is before the ownership date, please update the date to confirm";
17880
+ })(MessagesEnum || (MessagesEnum = {}));
17881
+
17882
+ class TransactionForm extends TransactionBaseForm {
17883
+ constructor(transaction, registeredForGst, allocations, controls = {}) {
17884
+ super(transaction, registeredForGst, Object.assign(controls, { transactions: new FormArray([]) }));
17885
+ // convert child transactions to controls
17886
+ transaction.transactions.map((transaction) => {
17887
+ this.addTransactionControl(transaction);
17888
+ });
17889
+ // forbid to add transactions before property ownership
17890
+ if (transaction.property) {
17891
+ this.get('date').addValidators(minDateValidator(transaction.property.myShare.fromDate, MessagesEnum.DATE_VALIDATION_ERROR));
17892
+ }
17893
+ // property usually comes with fees, add empty control for new transactions
17894
+ if (!transaction.id && transaction.property && !transaction.transactions.length) {
17895
+ this.addTransactionControl();
17896
+ }
17897
+ // forbid to edit amount for allocated transactions to prevent wrong allocations
17898
+ if (allocations.length) {
17899
+ this.get('amount').disable();
17900
+ this.get('date').disable();
17901
+ }
17902
+ }
17903
+ addTransactionControl(transaction = plainToClass(Transaction, {})) {
17904
+ const formGroup = new FormGroup({
17905
+ id: new FormControl(transaction.id),
17906
+ chartAccounts: new FormControl(transaction.chartAccounts, [Validators.required, autocompleteValidator()]),
17907
+ amount: new FormControl(Math.abs(transaction.amount), [Validators.required]),
17908
+ });
17909
+ this.get('transactions').push(formGroup);
17910
+ }
17911
+ removeTransactionControl(index) {
17912
+ this.get('transactions').removeAt(index);
17913
+ }
17914
+ /**
17915
+ * income transactions might include adjustments (child transactions), like tips or fees.
17916
+ * Adjustments inherit most of the fields from parent transaction
17917
+ */
17918
+ buildTransactions(transaction) {
17919
+ return this.get('transactions').value.map((childTransaction) => Object.assign({
17920
+ description: childTransaction.chartAccounts.name,
17921
+ date: transaction.date,
17922
+ claimPercent: transaction.claimPercent,
17923
+ source: TransactionSourceEnum.BANK_TRANSACTION,
17924
+ type: childTransaction.chartAccounts.isExpense() ? TransactionTypeEnum.DEBIT : TransactionTypeEnum.CREDIT,
17925
+ incomeSource: transaction.incomeSource,
17926
+ property: transaction.property
17927
+ }, this.model.transactions.find((transaction) => transaction.id === childTransaction['id']) || {}, childTransaction));
17928
+ }
17929
+ submit(data = {}) {
17930
+ return super.submit(Object.assign(data, { transactions: this.buildTransactions(this.currentValue) }));
17931
+ }
17932
+ }
17933
+
17934
+ class WorkIncomeForm extends TransactionForm {
17935
+ constructor(transaction, registeredForGst, allocations) {
17936
+ var _a;
17937
+ super(transaction, registeredForGst, allocations, {
17938
+ // additional data related to work income (like tax instalments)
17939
+ metadata: new FormArray((transaction.metadata || []).map((transactionMetadata) => {
17940
+ return new FormGroup({
17941
+ value: new FormControl(transactionMetadata.value),
17942
+ chartAccountsMetadata: new FormControl(transactionMetadata.chartAccountsMetadata)
17943
+ });
17944
+ })),
17945
+ tax: new FormControl({
17946
+ value: transaction.tax,
17947
+ disabled: !transaction.chartAccounts || transaction.chartAccounts.isNRAS(),
17948
+ }, Validators.required),
17949
+ incomeSource: new FormControl(transaction.incomeSource, [Validators.required, autocompleteValidator()]),
17950
+ });
17951
+ // salary adjustments (like tips)
17952
+ if (transaction.id) {
17953
+ this.get('amount').setValue(this.getAmount(transaction));
17954
+ this.get('chartAccounts').disable();
17955
+ }
17956
+ if (!((_a = transaction.chartAccounts) === null || _a === void 0 ? void 0 : _a.isSalary())) {
17957
+ this.get('transactions').disable();
17958
+ }
17959
+ this.listenEvents();
17960
+ }
17961
+ listenEvents() {
17962
+ this.watchIncomeSource();
17963
+ this.watchChartAccounts();
17964
+ }
17965
+ watchIncomeSource() {
17966
+ this.get('incomeSource').valueChanges.subscribe((incomeSource) => {
17967
+ // prefill salary tax with its income source forecast
17968
+ if (incomeSource instanceof IncomeSource && incomeSource.isSalaryIncome() && !this.get('tax').value) {
17969
+ this.get('tax').setValue(incomeSource.salaryForecasts[0].taxWithheld);
17970
+ }
17971
+ });
17972
+ }
17973
+ watchChartAccounts() {
17974
+ super.watchChartAccounts();
17975
+ this.get('chartAccounts').valueChanges.subscribe((value) => {
17976
+ // some fields depend on ChartAccounts and can't be filled until it's selected
17977
+ if (!(value instanceof ChartAccounts)) {
17978
+ this.get('tax').disable();
17979
+ this.get('transactions').disable();
17980
+ return;
17981
+ }
17982
+ this.buildMetadataForm();
17983
+ // tax make no sense for pre-paying tax category
17984
+ if (value.isNRAS()) {
17985
+ this.get('tax').disable();
17986
+ }
17987
+ else {
17988
+ this.get('tax').enable();
17989
+ }
17990
+ // adjustments possible only for salary chartAccounts
17991
+ if (value.isSalary()) {
17992
+ this.get('transactions').enable();
17993
+ }
17994
+ else {
17995
+ this.get('transactions').disable();
17996
+ }
17997
+ });
17998
+ }
17999
+ /**
18000
+ * depends on chartAccounts the form could include different extra fields
18001
+ */
18002
+ buildMetadataForm() {
18003
+ // Remove all controls in the FormArray before pushing
18004
+ this.get('metadata').clear();
18005
+ // create form controls for each metadata object from selected chart accounts
18006
+ (this.get('chartAccounts').value.metadata).forEach((chartAccountsMetadata) => {
18007
+ this.get('metadata').push(new FormGroup({
18008
+ value: new FormControl(chartAccountsMetadata.isSharePercentage() ? 100 : 0),
18009
+ chartAccountsMetadata: new FormControl(chartAccountsMetadata),
18010
+ }));
18011
+ });
18012
+ }
18013
+ /**
18014
+ * @param transaction
18015
+ * @param includeAdjustments reduce result by adjustments included in salary if false or increase amount with included salary adjustments to match received payment if true,
18016
+ * salary/wage comes to bankAccount together with related chartAccounts like tips (kind of salary, but reported in different tax summary section),
18017
+ * adjustments used to clarify received payment by separating it into multiple transactions,
18018
+ * formAmount always match received payment, it also matches parent transactionAmount when there are no adjustments,
18019
+ * otherwise it includes such adjustments, so we should exclude it from formAmount to create a salary transaction (on submit)
18020
+ * but include in form->amount to match bank transaction (on edit),
18021
+ * ie bankTransaction=1000$, it includes 900$ salary and 100$ tips (should be reported in different tax summary sections),
18022
+ * so we should show 1000$ in formAmount, but create 2 transactions with 900$ and 100$
18023
+ */
18024
+ getAmount(transaction, includeAdjustments = true) {
18025
+ if (!transaction.chartAccounts || !transaction.chartAccounts.isSalary()) {
18026
+ return transaction.amount;
18027
+ }
18028
+ const includedTransactions = new Collection(transaction.transactions).filter((t) => t.chartAccounts.isSalaryIncluded());
18029
+ return transaction.amount + includedTransactions.sumBy('amount') * (includeAdjustments ? 1 : -1);
18030
+ }
18031
+ submit(data = {}) {
18032
+ return super.submit(Object.assign(data, { amount: this.getAmount(this.currentValue, false) }));
18033
+ }
18034
+ }
18035
+
18036
+ class DepreciationForm extends TransactionBaseForm {
18037
+ constructor(depreciation, registeredForGst) {
18038
+ super(depreciation, registeredForGst);
18039
+ this.get('claimPercent').setValue(depreciation.currentYearForecast.claimPercent);
18040
+ this.addControl('isCloseBalanceCorrect', new FormControl(true));
18041
+ this.addControl('closeBalance', new FormControl({ value: depreciation.closeBalance || 0, disabled: true }, Validators.required));
18042
+ this.addControl('financialYear', new FormControl(depreciation.financialYear || new FinancialYear().year));
18043
+ // forbid to change chartAccounts/claimPercent for existing depreciations
18044
+ if (depreciation.id) {
18045
+ this.get('chartAccounts').disable({ emitEvent: false });
18046
+ this.get('claimPercent').disable({ emitEvent: false });
18047
+ }
18048
+ // @TODO should be watched?
18049
+ // if depreciation has 'depreciationCapitalProject' value - set value and disable 'date' form control
18050
+ if (depreciation.depreciationCapitalProject) {
18051
+ this.get('date').setValue(depreciation.depreciationCapitalProject.effectiveDate);
18052
+ this.get('date').disable();
18053
+ }
18054
+ else {
18055
+ this.get('date').setValue(depreciation.date);
18056
+ }
18057
+ this.get('isCloseBalanceCorrect').valueChanges.subscribe((isSelected) => {
18058
+ if (isSelected) {
18059
+ this.get('closeBalance').disable();
18060
+ }
18061
+ else {
18062
+ this.get('closeBalance').enable();
18063
+ }
18064
+ });
18065
+ }
18066
+ }
18067
+
17671
18068
  // @TODO Alex: Create indexes everywhere and break this file to imports from indexes
17672
18069
 
17673
18070
  /**
17674
18071
  * Generated bundle index. Do not edit.
17675
18072
  */
17676
18073
 
17677
- export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AlphabetColorsEnum, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, 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, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertySaleTaxExemptionMetadataCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseCollection, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate, toArray };
18074
+ export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AlphabetColorsEnum, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileValidator, FinancialYear, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, 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, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertySaleTaxExemptionMetadataCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseCollection, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate, toArray };
17678
18075
  //# sourceMappingURL=taxtank-core.js.map