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
@@ -915,7 +915,17 @@
915
915
  if (!req.url.includes(this.environment.api_uri) || !username) {
916
916
  return req;
917
917
  }
918
- var params = new i1.HttpParams({ fromString: req.params.toString() }).set('_switch_user', username);
918
+ var params = new i1.HttpParams({
919
+ fromString: req.params.toString(),
920
+ // custom encoder to encode '+' symbol and other (Problem: TT-2359)
921
+ // https://stackoverflow.com/questions/49438737/how-to-escape-angular-httpparams
922
+ encoder: {
923
+ encodeKey: function (key) { return encodeURIComponent(key); },
924
+ encodeValue: function (value) { return encodeURIComponent(value); },
925
+ decodeKey: function (key) { return decodeURIComponent(key); },
926
+ decodeValue: function (value) { return decodeURIComponent(value); }
927
+ }
928
+ }).set('_switch_user', username);
919
929
  return req.clone({ params: params });
920
930
  // @TODO move to header solution when backend can support it
921
931
  // return req.clone({
@@ -3209,41 +3219,120 @@
3209
3219
  return ChartAccountsMetadata;
3210
3220
  }(AbstractModel));
3211
3221
 
3212
- exports.ChartAccountsMetadataListEnum = void 0;
3213
- (function (ChartAccountsMetadataListEnum) {
3214
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_INSTALMENTS"] = 4] = "TAX_INSTALMENTS";
3215
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["FRANKING_CREDIT"] = 5] = "FRANKING_CREDIT";
3216
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["ELIGIBLE_FOR_REDUCTION"] = 6] = "ELIGIBLE_FOR_REDUCTION";
3217
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["SHARE_PERCENTAGE"] = 7] = "SHARE_PERCENTAGE";
3218
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_OFFSETS"] = 8] = "TAX_OFFSETS";
3219
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["HOURS"] = 11] = "HOURS";
3220
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_PAID"] = 13] = "TAX_PAID";
3221
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_FREE_COMPONENT"] = 18] = "TAX_FREE_COMPONENT";
3222
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["YEARS_OF_SERVICE"] = 19] = "YEARS_OF_SERVICE";
3223
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["UNTAXED_ELEMENT"] = 24] = "UNTAXED_ELEMENT";
3224
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["NOT_ELIGIBLE_FOR_DEDUCTION"] = 25] = "NOT_ELIGIBLE_FOR_DEDUCTION";
3225
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["FRANKED"] = 26] = "FRANKED";
3226
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["UNFRANKED"] = 27] = "UNFRANKED";
3227
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_OFFSETS_N_R_A_S"] = 29] = "TAX_OFFSETS_N_R_A_S";
3228
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["DISCOUNT_FROM_DEFERRED_SCHEMES"] = 32] = "DISCOUNT_FROM_DEFERRED_SCHEMES";
3229
- })(exports.ChartAccountsMetadataListEnum || (exports.ChartAccountsMetadataListEnum = {}));
3222
+ exports.DocumentTypeEnum = void 0;
3223
+ (function (DocumentTypeEnum) {
3224
+ DocumentTypeEnum[DocumentTypeEnum["INVOICE"] = 1] = "INVOICE";
3225
+ })(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
3230
3226
 
3231
- var ChartAccountsMetadata = /** @class */ (function (_super) {
3232
- __extends(ChartAccountsMetadata, _super);
3233
- function ChartAccountsMetadata() {
3234
- return _super !== null && _super.apply(this, arguments) || this;
3235
- }
3236
- /**
3237
- * Check if metadata id is related to SHARE_PERCENTAGE value
3238
- */
3239
- ChartAccountsMetadata.prototype.isSharePercentage = function () {
3240
- return this.id === exports.ChartAccountsMetadataListEnum.SHARE_PERCENTAGE;
3241
- };
3242
- ChartAccountsMetadata.prototype.isHours = function () {
3243
- return this.id === exports.ChartAccountsMetadataListEnum.HOURS;
3244
- };
3245
- return ChartAccountsMetadata;
3246
- }(ChartAccountsMetadata$1));
3227
+ exports.AnnualFrequencyEnum = void 0;
3228
+ (function (AnnualFrequencyEnum) {
3229
+ AnnualFrequencyEnum[AnnualFrequencyEnum["ANNUAL"] = 1] = "ANNUAL";
3230
+ AnnualFrequencyEnum[AnnualFrequencyEnum["QUARTERLY"] = 3] = "QUARTERLY";
3231
+ AnnualFrequencyEnum[AnnualFrequencyEnum["MONTHLY"] = 12] = "MONTHLY";
3232
+ AnnualFrequencyEnum[AnnualFrequencyEnum["FORTNIGHTLY"] = 26] = "FORTNIGHTLY";
3233
+ AnnualFrequencyEnum[AnnualFrequencyEnum["WEEKLY"] = 52] = "WEEKLY";
3234
+ })(exports.AnnualFrequencyEnum || (exports.AnnualFrequencyEnum = {}));
3235
+
3236
+ exports.ChartAccountsCategoryEnum = void 0;
3237
+ (function (ChartAccountsCategoryEnum) {
3238
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_INCOME"] = 1] = "PROPERTY_INCOME";
3239
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_EXPENSE"] = 2] = "PROPERTY_EXPENSE";
3240
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_DEPRECIATION"] = 3] = "PROPERTY_DEPRECIATION";
3241
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_CAPITAL_WORKS"] = 4] = "PROPERTY_CAPITAL_WORKS";
3242
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["WORK_DEPRECIATION"] = 5] = "WORK_DEPRECIATION";
3243
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["WORK_INCOME"] = 6] = "WORK_INCOME";
3244
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["WORK_EXPENSE"] = 7] = "WORK_EXPENSE";
3245
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["OTHER_INCOME"] = 8] = "OTHER_INCOME";
3246
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["OTHER_EXPENSE"] = 9] = "OTHER_EXPENSE";
3247
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PERSONAL_INCOME"] = 10] = "PERSONAL_INCOME";
3248
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PERSONAL_EXPENSE"] = 11] = "PERSONAL_EXPENSE";
3249
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["SOLE_INCOME"] = 12] = "SOLE_INCOME";
3250
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["SOLE_EXPENSE"] = 13] = "SOLE_EXPENSE";
3251
+ ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["SOLE_DEPRECIATION"] = 14] = "SOLE_DEPRECIATION";
3252
+ })(exports.ChartAccountsCategoryEnum || (exports.ChartAccountsCategoryEnum = {}));
3253
+
3254
+ exports.ChartAccountsEtpEnum = void 0;
3255
+ (function (ChartAccountsEtpEnum) {
3256
+ ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_R"] = 549] = "ETP_R";
3257
+ ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_S"] = 550] = "ETP_S";
3258
+ ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_O"] = 551] = "ETP_O";
3259
+ ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_D"] = 552] = "ETP_D";
3260
+ ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_B"] = 553] = "ETP_B";
3261
+ })(exports.ChartAccountsEtpEnum || (exports.ChartAccountsEtpEnum = {}));
3262
+
3263
+ exports.ChartAccountsHeadingListEnum = void 0;
3264
+ (function (ChartAccountsHeadingListEnum) {
3265
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES"] = 2] = "ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES";
3266
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS"] = 4] = "AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS";
3267
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES"] = 5] = "AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES";
3268
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_CAR_EXPENSES"] = 8] = "WORK_RELATED_CAR_EXPENSES";
3269
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_VEHICLES"] = 9] = "DEPRECIATION_VEHICLES";
3270
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_TRAVEL_EXPENSES"] = 10] = "WORK_RELATED_TRAVEL_EXPENSES";
3271
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["COMPULSORY_WORK_UNIFORM"] = 11] = "COMPULSORY_WORK_UNIFORM";
3272
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PROTECTION_CLOTHING"] = 12] = "PROTECTION_CLOTHING";
3273
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OCCUPATIONAL_SPECIFIC_CLOTHING"] = 13] = "OCCUPATIONAL_SPECIFIC_CLOTHING";
3274
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SELF_EDUCATIONAL_EXPENSES"] = 14] = "SELF_EDUCATIONAL_EXPENSES";
3275
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_WORK_RELATED_EXPENSES"] = 15] = "OTHER_WORK_RELATED_EXPENSES";
3276
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUBSCRIPTIONS"] = 16] = "SUBSCRIPTIONS";
3277
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_RUNNING"] = 17] = "HOME_OFFICE_RUNNING";
3278
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TOOLS_EQUIPMENT"] = 18] = "TOOLS_EQUIPMENT";
3279
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_OCCUPANCY"] = 19] = "HOME_OFFICE_OCCUPANCY";
3280
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE"] = 20] = "AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE";
3281
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["NEWSPAPER"] = 21] = "NEWSPAPER";
3282
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PRINTING_POSTAGE_STATIONERY"] = 22] = "PRINTING_POSTAGE_STATIONERY";
3283
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SEMINARS_ETC"] = 23] = "SEMINARS_ETC";
3284
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TELEPHONE"] = 24] = "TELEPHONE";
3285
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["UNION_FEES"] = 25] = "UNION_FEES";
3286
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER"] = 26] = "OTHER";
3287
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DONATIONS"] = 27] = "DONATIONS";
3288
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PSI"] = 30] = "PSI";
3289
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BONUSES"] = 34] = "BONUSES";
3290
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_DEDUCTIONS"] = 37] = "OTHER_DEDUCTIONS";
3291
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ETP"] = 39] = "ETP";
3292
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_DEDUCTIONS"] = 47] = "INTEREST_DEDUCTIONS";
3293
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DIVIDEND_DEDUCTIONS"] = 48] = "DIVIDEND_DEDUCTIONS";
3294
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PURCHASES_STOCK_INVENTORY"] = 52] = "PURCHASES_STOCK_INVENTORY";
3295
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["CONTRACTORS_COMMISSION"] = 53] = "CONTRACTORS_COMMISSION";
3296
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUPERANNUATION"] = 54] = "SUPERANNUATION";
3297
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BAD_DEBT"] = 55] = "BAD_DEBT";
3298
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_EXPENSES"] = 56] = "LEASE_EXPENSES";
3299
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["RENT_EXPENSES"] = 57] = "RENT_EXPENSES";
3300
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_AUSTRALIA"] = 58] = "INTEREST_EXPENSES_AUSTRALIA";
3301
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_OVERSEAS"] = 59] = "INTEREST_EXPENSES_OVERSEAS";
3302
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["KLMS"] = 60] = "KLMS";
3303
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["FUEL_OIL"] = 61] = "FUEL_OIL";
3304
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SERVICES_MAINTENANCE"] = 62] = "SERVICES_MAINTENANCE";
3305
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["REGISTRATION"] = 63] = "REGISTRATION";
3306
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_INTEREST_PAYMENTS"] = 64] = "LEASE_INTEREST_PAYMENTS";
3307
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INSURANCE"] = 65] = "INSURANCE";
3308
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TYRES_BATTERIES"] = 66] = "TYRES_BATTERIES";
3309
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_EXPENSES"] = 67] = "OTHER_EXPENSES";
3310
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_EXPENSES"] = 68] = "DEPRECIATION_EXPENSES";
3311
+ })(exports.ChartAccountsHeadingListEnum || (exports.ChartAccountsHeadingListEnum = {}));
3312
+
3313
+ exports.ChartAccountsHeadingTaxDeductibleEnum = void 0;
3314
+ (function (ChartAccountsHeadingTaxDeductibleEnum) {
3315
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ALLOWANCES_AND_PAYMENTS"] = 4] = "ALLOWANCES_AND_PAYMENTS";
3316
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
3317
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS"] = 40] = "ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS";
3318
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["SUPERANNUATION_LUMP_SUM"] = 41] = "SUPERANNUATION_LUMP_SUM";
3319
+ })(exports.ChartAccountsHeadingTaxDeductibleEnum || (exports.ChartAccountsHeadingTaxDeductibleEnum = {}));
3320
+
3321
+ exports.ChartAccountsHeadingTaxableEnum = void 0;
3322
+ (function (ChartAccountsHeadingTaxableEnum) {
3323
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["GROSS_INTEREST"] = 7] = "GROSS_INTEREST";
3324
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["DIVIDENDS"] = 38] = "DIVIDENDS";
3325
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["EMPLOYEE_SHARE_SCHEMES"] = 42] = "EMPLOYEE_SHARE_SCHEMES";
3326
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["PARTNERSHIPS_AND_TRUSTS_INCOME"] = 43] = "PARTNERSHIPS_AND_TRUSTS_INCOME";
3327
+ })(exports.ChartAccountsHeadingTaxableEnum || (exports.ChartAccountsHeadingTaxableEnum = {}));
3328
+
3329
+ exports.ChartAccountsHeadingVehicleListEnum = void 0;
3330
+ (function (ChartAccountsHeadingVehicleListEnum) {
3331
+ ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["WORK_RELATED_CAR_EXPENSES"] = 8] = "WORK_RELATED_CAR_EXPENSES";
3332
+ ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["DEPRECIATION_VEHICLES"] = 9] = "DEPRECIATION_VEHICLES";
3333
+ ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["KLMS"] = 60] = "KLMS";
3334
+ ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["FUEL_OIL"] = 61] = "FUEL_OIL";
3335
+ })(exports.ChartAccountsHeadingVehicleListEnum || (exports.ChartAccountsHeadingVehicleListEnum = {}));
3247
3336
 
3248
3337
  exports.ChartAccountsListEnum = void 0;
3249
3338
  (function (ChartAccountsListEnum) {
@@ -3338,31 +3427,86 @@
3338
3427
  ChartAccountsListEnum[ChartAccountsListEnum["PSI_DEDUCTION_OTHER"] = 860] = "PSI_DEDUCTION_OTHER";
3339
3428
  })(exports.ChartAccountsListEnum || (exports.ChartAccountsListEnum = {}));
3340
3429
 
3341
- exports.ChartAccountsCategoryEnum = void 0;
3342
- (function (ChartAccountsCategoryEnum) {
3343
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_INCOME"] = 1] = "PROPERTY_INCOME";
3344
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_EXPENSE"] = 2] = "PROPERTY_EXPENSE";
3345
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_DEPRECIATION"] = 3] = "PROPERTY_DEPRECIATION";
3346
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PROPERTY_CAPITAL_WORKS"] = 4] = "PROPERTY_CAPITAL_WORKS";
3347
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["WORK_DEPRECIATION"] = 5] = "WORK_DEPRECIATION";
3348
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["WORK_INCOME"] = 6] = "WORK_INCOME";
3349
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["WORK_EXPENSE"] = 7] = "WORK_EXPENSE";
3350
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["OTHER_INCOME"] = 8] = "OTHER_INCOME";
3351
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["OTHER_EXPENSE"] = 9] = "OTHER_EXPENSE";
3352
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PERSONAL_INCOME"] = 10] = "PERSONAL_INCOME";
3353
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["PERSONAL_EXPENSE"] = 11] = "PERSONAL_EXPENSE";
3354
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["SOLE_INCOME"] = 12] = "SOLE_INCOME";
3355
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["SOLE_EXPENSE"] = 13] = "SOLE_EXPENSE";
3356
- ChartAccountsCategoryEnum[ChartAccountsCategoryEnum["SOLE_DEPRECIATION"] = 14] = "SOLE_DEPRECIATION";
3357
- })(exports.ChartAccountsCategoryEnum || (exports.ChartAccountsCategoryEnum = {}));
3430
+ exports.ChartAccountsMetadataListEnum = void 0;
3431
+ (function (ChartAccountsMetadataListEnum) {
3432
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_INSTALMENTS"] = 4] = "TAX_INSTALMENTS";
3433
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["FRANKING_CREDIT"] = 5] = "FRANKING_CREDIT";
3434
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["ELIGIBLE_FOR_REDUCTION"] = 6] = "ELIGIBLE_FOR_REDUCTION";
3435
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["SHARE_PERCENTAGE"] = 7] = "SHARE_PERCENTAGE";
3436
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_OFFSETS"] = 8] = "TAX_OFFSETS";
3437
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["HOURS"] = 11] = "HOURS";
3438
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_PAID"] = 13] = "TAX_PAID";
3439
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_FREE_COMPONENT"] = 18] = "TAX_FREE_COMPONENT";
3440
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["YEARS_OF_SERVICE"] = 19] = "YEARS_OF_SERVICE";
3441
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["UNTAXED_ELEMENT"] = 24] = "UNTAXED_ELEMENT";
3442
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["NOT_ELIGIBLE_FOR_DEDUCTION"] = 25] = "NOT_ELIGIBLE_FOR_DEDUCTION";
3443
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["FRANKED"] = 26] = "FRANKED";
3444
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["UNFRANKED"] = 27] = "UNFRANKED";
3445
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_OFFSETS_N_R_A_S"] = 29] = "TAX_OFFSETS_N_R_A_S";
3446
+ ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["DISCOUNT_FROM_DEFERRED_SCHEMES"] = 32] = "DISCOUNT_FROM_DEFERRED_SCHEMES";
3447
+ })(exports.ChartAccountsMetadataListEnum || (exports.ChartAccountsMetadataListEnum = {}));
3358
3448
 
3359
- exports.ChartAccountsHeadingVehicleListEnum = void 0;
3360
- (function (ChartAccountsHeadingVehicleListEnum) {
3361
- ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["WORK_RELATED_CAR_EXPENSES"] = 8] = "WORK_RELATED_CAR_EXPENSES";
3362
- ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["DEPRECIATION_VEHICLES"] = 9] = "DEPRECIATION_VEHICLES";
3363
- ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["KLMS"] = 60] = "KLMS";
3364
- ChartAccountsHeadingVehicleListEnum[ChartAccountsHeadingVehicleListEnum["FUEL_OIL"] = 61] = "FUEL_OIL";
3365
- })(exports.ChartAccountsHeadingVehicleListEnum || (exports.ChartAccountsHeadingVehicleListEnum = {}));
3449
+ exports.ChartAccountsMetadataTypeEnum = void 0;
3450
+ (function (ChartAccountsMetadataTypeEnum) {
3451
+ ChartAccountsMetadataTypeEnum[ChartAccountsMetadataTypeEnum["NUMBER"] = 3] = "NUMBER";
3452
+ ChartAccountsMetadataTypeEnum[ChartAccountsMetadataTypeEnum["BOOLEAN"] = 4] = "BOOLEAN";
3453
+ })(exports.ChartAccountsMetadataTypeEnum || (exports.ChartAccountsMetadataTypeEnum = {}));
3454
+
3455
+ exports.ChartAccountsSalaryAdjustmentsListEnum = void 0;
3456
+ (function (ChartAccountsSalaryAdjustmentsListEnum) {
3457
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["ALLOWANCE"] = 4] = "ALLOWANCE";
3458
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["TIPS"] = 5] = "TIPS";
3459
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["REIMBURSEMENTS"] = 555] = "REIMBURSEMENTS";
3460
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["ADVANCE"] = 556] = "ADVANCE";
3461
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["POST_TAX_DEDUCTIONS_OTHER"] = 644] = "POST_TAX_DEDUCTIONS_OTHER";
3462
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["PRE_TAX_DEDUCTIONS_OTHER"] = 645] = "PRE_TAX_DEDUCTIONS_OTHER";
3463
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["PHONE_ALLOWANCE"] = 646] = "PHONE_ALLOWANCE";
3464
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["UNIFORM_ALLOWANCE"] = 647] = "UNIFORM_ALLOWANCE";
3465
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["META_ALLOWANCE"] = 648] = "META_ALLOWANCE";
3466
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["TRAVEL_ALLOWANCE"] = 649] = "TRAVEL_ALLOWANCE";
3467
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["OTHER_ALLOWANCE"] = 650] = "OTHER_ALLOWANCE";
3468
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["LAFH"] = 651] = "LAFH";
3469
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["WORK_PLACE_GIVING"] = 653] = "WORK_PLACE_GIVING";
3470
+ })(exports.ChartAccountsSalaryAdjustmentsListEnum || (exports.ChartAccountsSalaryAdjustmentsListEnum = {}));
3471
+
3472
+ exports.ChartAccountsSalaryIncludedListEnum = void 0;
3473
+ (function (ChartAccountsSalaryIncludedListEnum) {
3474
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["ALLOWANCE"] = 4] = "ALLOWANCE";
3475
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["TIPS"] = 5] = "TIPS";
3476
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["REIMBURSEMENTS"] = 555] = "REIMBURSEMENTS";
3477
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["ADVANCE"] = 556] = "ADVANCE";
3478
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["PHONE_ALLOWANCE"] = 646] = "PHONE_ALLOWANCE";
3479
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["UNIFORM_ALLOWANCE"] = 647] = "UNIFORM_ALLOWANCE";
3480
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["META_ALLOWANCE"] = 648] = "META_ALLOWANCE";
3481
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["TRAVEL_ALLOWANCE"] = 649] = "TRAVEL_ALLOWANCE";
3482
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["OTHER_ALLOWANCE"] = 650] = "OTHER_ALLOWANCE";
3483
+ ChartAccountsSalaryIncludedListEnum[ChartAccountsSalaryIncludedListEnum["LAFH"] = 651] = "LAFH";
3484
+ })(exports.ChartAccountsSalaryIncludedListEnum || (exports.ChartAccountsSalaryIncludedListEnum = {}));
3485
+
3486
+ exports.ChartAccountsTypeEnum = void 0;
3487
+ (function (ChartAccountsTypeEnum) {
3488
+ ChartAccountsTypeEnum[ChartAccountsTypeEnum["INCOME"] = 1] = "INCOME";
3489
+ ChartAccountsTypeEnum[ChartAccountsTypeEnum["EXPENSE"] = 2] = "EXPENSE";
3490
+ })(exports.ChartAccountsTypeEnum || (exports.ChartAccountsTypeEnum = {}));
3491
+
3492
+ // @TODO Artem TT-2308 move everything
3493
+
3494
+ var ChartAccountsMetadata = /** @class */ (function (_super) {
3495
+ __extends(ChartAccountsMetadata, _super);
3496
+ function ChartAccountsMetadata() {
3497
+ return _super !== null && _super.apply(this, arguments) || this;
3498
+ }
3499
+ /**
3500
+ * Check if metadata id is related to SHARE_PERCENTAGE value
3501
+ */
3502
+ ChartAccountsMetadata.prototype.isSharePercentage = function () {
3503
+ return this.id === exports.ChartAccountsMetadataListEnum.SHARE_PERCENTAGE;
3504
+ };
3505
+ ChartAccountsMetadata.prototype.isHours = function () {
3506
+ return this.id === exports.ChartAccountsMetadataListEnum.HOURS;
3507
+ };
3508
+ return ChartAccountsMetadata;
3509
+ }(ChartAccountsMetadata$1));
3366
3510
 
3367
3511
  /**
3368
3512
  * Grouped chart accounts categories for fast work
@@ -3465,6 +3609,26 @@
3465
3609
  ]
3466
3610
  };
3467
3611
 
3612
+ exports.ChartAccountsTaxLabelsEnum = void 0;
3613
+ (function (ChartAccountsTaxLabelsEnum) {
3614
+ ChartAccountsTaxLabelsEnum["TAX_WITHHELD"] = "Tax withheld";
3615
+ ChartAccountsTaxLabelsEnum["TAX_PAID"] = "Tax Paid";
3616
+ ChartAccountsTaxLabelsEnum["TAX_DEDUCTED"] = "Tax Deducted";
3617
+ })(exports.ChartAccountsTaxLabelsEnum || (exports.ChartAccountsTaxLabelsEnum = {}));
3618
+
3619
+ function enumToList(data) {
3620
+ var list = [];
3621
+ for (var key in data) {
3622
+ if (Number(key) >= 0) {
3623
+ list.push({
3624
+ label: data[key],
3625
+ value: Number(key)
3626
+ });
3627
+ }
3628
+ }
3629
+ return list;
3630
+ }
3631
+
3468
3632
  var ChartAccounts = /** @class */ (function (_super) {
3469
3633
  __extends(ChartAccounts, _super);
3470
3634
  function ChartAccounts() {
@@ -3502,7 +3666,7 @@
3502
3666
  }
3503
3667
  };
3504
3668
  /**
3505
- * Check if chart accounts id is related for 'NRAS Tax Offset' category
3669
+ * special type used for just pre-paying tax to the ATO, uses on tax summary
3506
3670
  */
3507
3671
  ChartAccounts.prototype.isNRAS = function () {
3508
3672
  return this.id === exports.ChartAccountsListEnum.TAX_OFFSETS_N_R_A_S;
@@ -3619,6 +3783,43 @@
3619
3783
  ChartAccounts.prototype.isClaimPercentEditable = function () {
3620
3784
  return (this.isWorkExpense() || this.isSoleExpense()) && (!this.isVehicleExpense() && !this.isPersonalExpense());
3621
3785
  };
3786
+ /**
3787
+ * get label for transaction tax field depended on selected chart account.
3788
+ * tax type depends on chart account heading or category.
3789
+ */
3790
+ ChartAccounts.prototype.getTaxLabel = function () {
3791
+ var _a, _b;
3792
+ // get simple array of ids from enum with taxable chart accounts headings
3793
+ var taxableCAHeadingsIds = enumToList(exports.ChartAccountsHeadingTaxableEnum)
3794
+ .map(function (item) { return item.value; });
3795
+ // get simple array of ids from enum with tax-deductible chart accounts headings
3796
+ var deductibleCAHeadingsIds = enumToList(exports.ChartAccountsHeadingTaxDeductibleEnum)
3797
+ .map(function (item) { return item.value; });
3798
+ // check if one of ids arrays includes current chart accounts heading id and set tax label
3799
+ // otherwise label is empty for this class
3800
+ switch (true) {
3801
+ case taxableCAHeadingsIds.includes((_a = this.heading) === null || _a === void 0 ? void 0 : _a.id):
3802
+ return exports.ChartAccountsTaxLabelsEnum.TAX_PAID;
3803
+ case deductibleCAHeadingsIds.includes((_b = this.heading) === null || _b === void 0 ? void 0 : _b.id):
3804
+ return exports.ChartAccountsTaxLabelsEnum.TAX_DEDUCTED;
3805
+ case CHART_ACCOUNTS_CATEGORIES.workIncome.includes(this.category):
3806
+ return exports.ChartAccountsTaxLabelsEnum.TAX_WITHHELD;
3807
+ default:
3808
+ return null;
3809
+ }
3810
+ };
3811
+ ChartAccounts.prototype.isETP = function () {
3812
+ return this.heading.id === exports.ChartAccountsHeadingListEnum.ETP;
3813
+ };
3814
+ ChartAccounts.prototype.isSalary = function () {
3815
+ return this.id === exports.ChartAccountsListEnum.SALARY_OR_WAGES;
3816
+ };
3817
+ /**
3818
+ * chart accounts included in salary, like tips or allowance
3819
+ */
3820
+ ChartAccounts.prototype.isSalaryIncluded = function () {
3821
+ return this.id in exports.ChartAccountsSalaryIncludedListEnum;
3822
+ };
3622
3823
  return ChartAccounts;
3623
3824
  }(ChartAccounts$1));
3624
3825
  /**
@@ -3844,6 +4045,103 @@
3844
4045
  return TransactionReceipt;
3845
4046
  }(TransactionReceipt$1));
3846
4047
 
4048
+ /**
4049
+ * @TODO Alex/Vik: think and create some new collection type
4050
+ * @TODO Alex: research all constants and make the same structure
4051
+ */
4052
+ var ChartAccountsCategoryECollection = /** @class */ (function () {
4053
+ function ChartAccountsCategoryECollection(items) {
4054
+ this.items = items || [
4055
+ exports.ChartAccountsCategoryEnum.PROPERTY_INCOME,
4056
+ exports.ChartAccountsCategoryEnum.PROPERTY_EXPENSE,
4057
+ exports.ChartAccountsCategoryEnum.PROPERTY_DEPRECIATION,
4058
+ exports.ChartAccountsCategoryEnum.PROPERTY_CAPITAL_WORKS,
4059
+ exports.ChartAccountsCategoryEnum.WORK_DEPRECIATION,
4060
+ exports.ChartAccountsCategoryEnum.WORK_INCOME,
4061
+ exports.ChartAccountsCategoryEnum.WORK_EXPENSE,
4062
+ exports.ChartAccountsCategoryEnum.OTHER_INCOME,
4063
+ exports.ChartAccountsCategoryEnum.OTHER_EXPENSE,
4064
+ exports.ChartAccountsCategoryEnum.PERSONAL_INCOME,
4065
+ exports.ChartAccountsCategoryEnum.PERSONAL_EXPENSE,
4066
+ exports.ChartAccountsCategoryEnum.SOLE_INCOME,
4067
+ exports.ChartAccountsCategoryEnum.SOLE_EXPENSE,
4068
+ exports.ChartAccountsCategoryEnum.SOLE_DEPRECIATION
4069
+ ];
4070
+ }
4071
+ ChartAccountsCategoryECollection.prototype.getByType = function (types) {
4072
+ var _this = this;
4073
+ if (!Array.isArray(types)) {
4074
+ types = [types];
4075
+ }
4076
+ var items = [];
4077
+ types.forEach(function (type) {
4078
+ var filtered = _this.items.filter(function (item) { return exports.ChartAccountsCategoryEnum[item].includes(type.toUpperCase()); });
4079
+ items.push.apply(items, __spreadArray([], __read(filtered)));
4080
+ });
4081
+ return new ChartAccountsCategoryECollection(items);
4082
+ };
4083
+ ChartAccountsCategoryECollection.prototype.getByTankType = function (tankTypes) {
4084
+ var _this = this;
4085
+ if (!Array.isArray(tankTypes)) {
4086
+ tankTypes = [tankTypes];
4087
+ }
4088
+ var items = [];
4089
+ tankTypes.forEach(function (tankType) {
4090
+ var filtered = _this.items.filter(function (item) { return exports.ChartAccountsCategoryEnum[item].includes(tankType.toUpperCase()); });
4091
+ items.push.apply(items, __spreadArray([], __read(filtered)));
4092
+ });
4093
+ return new ChartAccountsCategoryECollection(items);
4094
+ };
4095
+ return ChartAccountsCategoryECollection;
4096
+ }());
4097
+
4098
+ var ChartAccountsDepreciation$1 = /** @class */ (function (_super) {
4099
+ __extends(ChartAccountsDepreciation, _super);
4100
+ function ChartAccountsDepreciation() {
4101
+ return _super !== null && _super.apply(this, arguments) || this;
4102
+ }
4103
+ return ChartAccountsDepreciation;
4104
+ }(AbstractModel));
4105
+
4106
+ var ChartAccountsDepreciation = /** @class */ (function (_super) {
4107
+ __extends(ChartAccountsDepreciation, _super);
4108
+ function ChartAccountsDepreciation() {
4109
+ return _super !== null && _super.apply(this, arguments) || this;
4110
+ }
4111
+ return ChartAccountsDepreciation;
4112
+ }(ChartAccountsDepreciation$1));
4113
+ __decorate([
4114
+ classTransformer.Type(function () { return ChartAccounts; })
4115
+ ], ChartAccountsDepreciation.prototype, "chartAccounts", void 0);
4116
+ __decorate([
4117
+ classTransformer.Transform(function (_a) {
4118
+ var value = _a.value;
4119
+ return +value;
4120
+ })
4121
+ ], ChartAccountsDepreciation.prototype, "limit", void 0);
4122
+ __decorate([
4123
+ classTransformer.Transform(function (_a) {
4124
+ var value = _a.value;
4125
+ return +value;
4126
+ })
4127
+ ], ChartAccountsDepreciation.prototype, "effectiveLife", void 0);
4128
+
4129
+ var ChartAccountsValue$1 = /** @class */ (function (_super) {
4130
+ __extends(ChartAccountsValue, _super);
4131
+ function ChartAccountsValue() {
4132
+ return _super !== null && _super.apply(this, arguments) || this;
4133
+ }
4134
+ return ChartAccountsValue;
4135
+ }(AbstractModel));
4136
+
4137
+ var ChartAccountsValue = /** @class */ (function (_super) {
4138
+ __extends(ChartAccountsValue, _super);
4139
+ function ChartAccountsValue() {
4140
+ return _super !== null && _super.apply(this, arguments) || this;
4141
+ }
4142
+ return ChartAccountsValue;
4143
+ }(ChartAccountsValue$1));
4144
+
3847
4145
  var IncomeSource$1 = /** @class */ (function (_super) {
3848
4146
  __extends(IncomeSource, _super);
3849
4147
  function IncomeSource() {
@@ -3872,6 +4170,13 @@
3872
4170
  function SalaryForecast() {
3873
4171
  return _super !== null && _super.apply(this, arguments) || this;
3874
4172
  }
4173
+ Object.defineProperty(SalaryForecast.prototype, "taxWithheld", {
4174
+ get: function () {
4175
+ return this.grossAmount - this.netPay;
4176
+ },
4177
+ enumerable: false,
4178
+ configurable: true
4179
+ });
3875
4180
  return SalaryForecast;
3876
4181
  }(SalaryForecast$1));
3877
4182
  __decorate([
@@ -4321,6 +4626,23 @@
4321
4626
  return DepreciationForecast;
4322
4627
  }(DepreciationForecast$1));
4323
4628
 
4629
+ /**
4630
+ * Enum with income amount types (Net or Gross)
4631
+ */
4632
+ exports.IncomeAmountTypeEnum = void 0;
4633
+ (function (IncomeAmountTypeEnum) {
4634
+ IncomeAmountTypeEnum[IncomeAmountTypeEnum["NET"] = 0] = "NET";
4635
+ IncomeAmountTypeEnum[IncomeAmountTypeEnum["GROSS"] = 1] = "GROSS";
4636
+ })(exports.IncomeAmountTypeEnum || (exports.IncomeAmountTypeEnum = {}));
4637
+
4638
+ exports.TransactionCategoryEnum = void 0;
4639
+ (function (TransactionCategoryEnum) {
4640
+ TransactionCategoryEnum[TransactionCategoryEnum["PROPERTY"] = 0] = "PROPERTY";
4641
+ TransactionCategoryEnum[TransactionCategoryEnum["WORK"] = 1] = "WORK";
4642
+ TransactionCategoryEnum[TransactionCategoryEnum["SOLE"] = 2] = "SOLE";
4643
+ TransactionCategoryEnum[TransactionCategoryEnum["PERSONAL"] = 3] = "PERSONAL";
4644
+ })(exports.TransactionCategoryEnum || (exports.TransactionCategoryEnum = {}));
4645
+
4324
4646
  /**
4325
4647
  * @TODO Alex: clarify grouping rules and refactor
4326
4648
  */
@@ -4732,7 +5054,7 @@
4732
5054
  if (this.isExpense()) {
4733
5055
  return grossAmount;
4734
5056
  }
4735
- grossAmount += this.transactions.reduce(function (sum, transaction) { return sum + Math.abs(transaction.amount); }, 0);
5057
+ grossAmount += this.transactions.filter(function (t) { var _a; return !((_a = t.chartAccounts) === null || _a === void 0 ? void 0 : _a.isSalaryIncluded()); }).reduce(function (sum, transaction) { return sum + Math.abs(transaction.amount); }, 0);
4736
5058
  if (this.isWorkTank()) {
4737
5059
  grossAmount += this.frankingCredit - this.taxFreeComponent - this.eligibleForReduction;
4738
5060
  }
@@ -5132,6 +5454,7 @@
5132
5454
  return VehicleLogbook;
5133
5455
  }(AbstractModel));
5134
5456
 
5457
+ // problem with DateRange and typescript. See more https://github.com/rotaready/moment-range/issues/263
5135
5458
  var moment = momentRange.extendMoment(moment__namespace);
5136
5459
  var VehicleLogbook = /** @class */ (function (_super) {
5137
5460
  __extends(VehicleLogbook, _super);
@@ -7535,6 +7858,29 @@
7535
7858
  return Document;
7536
7859
  }(Document$1));
7537
7860
 
7861
+ var DOCUMENT_FILE_TYPES = {
7862
+ image: [
7863
+ 'image/png',
7864
+ 'image/jpg',
7865
+ 'image/jpeg',
7866
+ 'image/tiff',
7867
+ 'image/bmp'
7868
+ ],
7869
+ all: [
7870
+ 'image/png',
7871
+ 'image/jpg',
7872
+ 'image/jpeg',
7873
+ 'image/tiff',
7874
+ 'image/bmp',
7875
+ 'application/msword',
7876
+ 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
7877
+ 'application/pdf',
7878
+ 'application/vnd.ms-excel',
7879
+ 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
7880
+ 'text/csv'
7881
+ ]
7882
+ };
7883
+
7538
7884
  var DocumentFolder$1 = /** @class */ (function (_super) {
7539
7885
  __extends(DocumentFolder, _super);
7540
7886
  function DocumentFolder() {
@@ -9571,159 +9917,6 @@
9571
9917
  return ClientInviteCollection;
9572
9918
  }(Collection));
9573
9919
 
9574
- /**
9575
- * @TODO Alex/Vik: think and create some new collection type
9576
- * @TODO Alex: research all constants and make the same structure
9577
- */
9578
- var ChartAccountsCategoryECollection = /** @class */ (function () {
9579
- function ChartAccountsCategoryECollection(items) {
9580
- this.items = items || [
9581
- exports.ChartAccountsCategoryEnum.PROPERTY_INCOME,
9582
- exports.ChartAccountsCategoryEnum.PROPERTY_EXPENSE,
9583
- exports.ChartAccountsCategoryEnum.PROPERTY_DEPRECIATION,
9584
- exports.ChartAccountsCategoryEnum.PROPERTY_CAPITAL_WORKS,
9585
- exports.ChartAccountsCategoryEnum.WORK_DEPRECIATION,
9586
- exports.ChartAccountsCategoryEnum.WORK_INCOME,
9587
- exports.ChartAccountsCategoryEnum.WORK_EXPENSE,
9588
- exports.ChartAccountsCategoryEnum.OTHER_INCOME,
9589
- exports.ChartAccountsCategoryEnum.OTHER_EXPENSE,
9590
- exports.ChartAccountsCategoryEnum.PERSONAL_INCOME,
9591
- exports.ChartAccountsCategoryEnum.PERSONAL_EXPENSE,
9592
- exports.ChartAccountsCategoryEnum.SOLE_INCOME,
9593
- exports.ChartAccountsCategoryEnum.SOLE_EXPENSE,
9594
- exports.ChartAccountsCategoryEnum.SOLE_DEPRECIATION
9595
- ];
9596
- }
9597
- ChartAccountsCategoryECollection.prototype.getByType = function (types) {
9598
- var _this = this;
9599
- if (!Array.isArray(types)) {
9600
- types = [types];
9601
- }
9602
- var items = [];
9603
- types.forEach(function (type) {
9604
- var filtered = _this.items.filter(function (item) { return exports.ChartAccountsCategoryEnum[item].includes(type.toUpperCase()); });
9605
- items.push.apply(items, __spreadArray([], __read(filtered)));
9606
- });
9607
- return new ChartAccountsCategoryECollection(items);
9608
- };
9609
- ChartAccountsCategoryECollection.prototype.getByTankType = function (tankTypes) {
9610
- var _this = this;
9611
- if (!Array.isArray(tankTypes)) {
9612
- tankTypes = [tankTypes];
9613
- }
9614
- var items = [];
9615
- tankTypes.forEach(function (tankType) {
9616
- var filtered = _this.items.filter(function (item) { return exports.ChartAccountsCategoryEnum[item].includes(tankType.toUpperCase()); });
9617
- items.push.apply(items, __spreadArray([], __read(filtered)));
9618
- });
9619
- return new ChartAccountsCategoryECollection(items);
9620
- };
9621
- return ChartAccountsCategoryECollection;
9622
- }());
9623
-
9624
- exports.DocumentTypeEnum = void 0;
9625
- (function (DocumentTypeEnum) {
9626
- DocumentTypeEnum[DocumentTypeEnum["INVOICE"] = 1] = "INVOICE";
9627
- })(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
9628
-
9629
- exports.AnnualFrequencyEnum = void 0;
9630
- (function (AnnualFrequencyEnum) {
9631
- AnnualFrequencyEnum[AnnualFrequencyEnum["ANNUAL"] = 1] = "ANNUAL";
9632
- AnnualFrequencyEnum[AnnualFrequencyEnum["QUARTERLY"] = 3] = "QUARTERLY";
9633
- AnnualFrequencyEnum[AnnualFrequencyEnum["MONTHLY"] = 12] = "MONTHLY";
9634
- AnnualFrequencyEnum[AnnualFrequencyEnum["FORTNIGHTLY"] = 26] = "FORTNIGHTLY";
9635
- AnnualFrequencyEnum[AnnualFrequencyEnum["WEEKLY"] = 52] = "WEEKLY";
9636
- })(exports.AnnualFrequencyEnum || (exports.AnnualFrequencyEnum = {}));
9637
-
9638
- // @TODO Artem TT-2308 move everything
9639
-
9640
- exports.ChartAccountsEtpEnum = void 0;
9641
- (function (ChartAccountsEtpEnum) {
9642
- ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_R"] = 549] = "ETP_R";
9643
- ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_S"] = 550] = "ETP_S";
9644
- ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_O"] = 551] = "ETP_O";
9645
- ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_D"] = 552] = "ETP_D";
9646
- ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_B"] = 553] = "ETP_B";
9647
- })(exports.ChartAccountsEtpEnum || (exports.ChartAccountsEtpEnum = {}));
9648
-
9649
- exports.ChartAccountsHeadingListEnum = void 0;
9650
- (function (ChartAccountsHeadingListEnum) {
9651
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES"] = 2] = "ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES";
9652
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS"] = 4] = "AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS";
9653
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES"] = 5] = "AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES";
9654
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_CAR_EXPENSES"] = 8] = "WORK_RELATED_CAR_EXPENSES";
9655
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_VEHICLES"] = 9] = "DEPRECIATION_VEHICLES";
9656
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_TRAVEL_EXPENSES"] = 10] = "WORK_RELATED_TRAVEL_EXPENSES";
9657
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["COMPULSORY_WORK_UNIFORM"] = 11] = "COMPULSORY_WORK_UNIFORM";
9658
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PROTECTION_CLOTHING"] = 12] = "PROTECTION_CLOTHING";
9659
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OCCUPATIONAL_SPECIFIC_CLOTHING"] = 13] = "OCCUPATIONAL_SPECIFIC_CLOTHING";
9660
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SELF_EDUCATIONAL_EXPENSES"] = 14] = "SELF_EDUCATIONAL_EXPENSES";
9661
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_WORK_RELATED_EXPENSES"] = 15] = "OTHER_WORK_RELATED_EXPENSES";
9662
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUBSCRIPTIONS"] = 16] = "SUBSCRIPTIONS";
9663
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_RUNNING"] = 17] = "HOME_OFFICE_RUNNING";
9664
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TOOLS_EQUIPMENT"] = 18] = "TOOLS_EQUIPMENT";
9665
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_OCCUPANCY"] = 19] = "HOME_OFFICE_OCCUPANCY";
9666
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE"] = 20] = "AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE";
9667
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["NEWSPAPER"] = 21] = "NEWSPAPER";
9668
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PRINTING_POSTAGE_STATIONERY"] = 22] = "PRINTING_POSTAGE_STATIONERY";
9669
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SEMINARS_ETC"] = 23] = "SEMINARS_ETC";
9670
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TELEPHONE"] = 24] = "TELEPHONE";
9671
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["UNION_FEES"] = 25] = "UNION_FEES";
9672
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER"] = 26] = "OTHER";
9673
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DONATIONS"] = 27] = "DONATIONS";
9674
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PSI"] = 30] = "PSI";
9675
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BONUSES"] = 34] = "BONUSES";
9676
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_DEDUCTIONS"] = 37] = "OTHER_DEDUCTIONS";
9677
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ETP"] = 39] = "ETP";
9678
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_DEDUCTIONS"] = 47] = "INTEREST_DEDUCTIONS";
9679
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DIVIDEND_DEDUCTIONS"] = 48] = "DIVIDEND_DEDUCTIONS";
9680
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PURCHASES_STOCK_INVENTORY"] = 52] = "PURCHASES_STOCK_INVENTORY";
9681
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["CONTRACTORS_COMMISSION"] = 53] = "CONTRACTORS_COMMISSION";
9682
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUPERANNUATION"] = 54] = "SUPERANNUATION";
9683
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BAD_DEBT"] = 55] = "BAD_DEBT";
9684
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_EXPENSES"] = 56] = "LEASE_EXPENSES";
9685
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["RENT_EXPENSES"] = 57] = "RENT_EXPENSES";
9686
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_AUSTRALIA"] = 58] = "INTEREST_EXPENSES_AUSTRALIA";
9687
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_OVERSEAS"] = 59] = "INTEREST_EXPENSES_OVERSEAS";
9688
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["KLMS"] = 60] = "KLMS";
9689
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["FUEL_OIL"] = 61] = "FUEL_OIL";
9690
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SERVICES_MAINTENANCE"] = 62] = "SERVICES_MAINTENANCE";
9691
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["REGISTRATION"] = 63] = "REGISTRATION";
9692
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_INTEREST_PAYMENTS"] = 64] = "LEASE_INTEREST_PAYMENTS";
9693
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INSURANCE"] = 65] = "INSURANCE";
9694
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TYRES_BATTERIES"] = 66] = "TYRES_BATTERIES";
9695
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_EXPENSES"] = 67] = "OTHER_EXPENSES";
9696
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_EXPENSES"] = 68] = "DEPRECIATION_EXPENSES";
9697
- })(exports.ChartAccountsHeadingListEnum || (exports.ChartAccountsHeadingListEnum = {}));
9698
-
9699
- exports.ChartAccountsHeadingTaxableEnum = void 0;
9700
- (function (ChartAccountsHeadingTaxableEnum) {
9701
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["GROSS_INTEREST"] = 7] = "GROSS_INTEREST";
9702
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["DIVIDENDS"] = 38] = "DIVIDENDS";
9703
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["EMPLOYEE_SHARE_SCHEMES"] = 42] = "EMPLOYEE_SHARE_SCHEMES";
9704
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["PARTNERSHIPS_AND_TRUSTS_INCOME"] = 43] = "PARTNERSHIPS_AND_TRUSTS_INCOME";
9705
- })(exports.ChartAccountsHeadingTaxableEnum || (exports.ChartAccountsHeadingTaxableEnum = {}));
9706
-
9707
- exports.ChartAccountsHeadingTaxDeductibleEnum = void 0;
9708
- (function (ChartAccountsHeadingTaxDeductibleEnum) {
9709
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ALLOWANCES_AND_PAYMENTS"] = 4] = "ALLOWANCES_AND_PAYMENTS";
9710
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
9711
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS"] = 40] = "ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS";
9712
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["SUPERANNUATION_LUMP_SUM"] = 41] = "SUPERANNUATION_LUMP_SUM";
9713
- })(exports.ChartAccountsHeadingTaxDeductibleEnum || (exports.ChartAccountsHeadingTaxDeductibleEnum = {}));
9714
-
9715
- exports.ChartAccountsMetadataTypeEnum = void 0;
9716
- (function (ChartAccountsMetadataTypeEnum) {
9717
- ChartAccountsMetadataTypeEnum[ChartAccountsMetadataTypeEnum["NUMBER"] = 3] = "NUMBER";
9718
- ChartAccountsMetadataTypeEnum[ChartAccountsMetadataTypeEnum["BOOLEAN"] = 4] = "BOOLEAN";
9719
- })(exports.ChartAccountsMetadataTypeEnum || (exports.ChartAccountsMetadataTypeEnum = {}));
9720
-
9721
- exports.ChartAccountsTypeEnum = void 0;
9722
- (function (ChartAccountsTypeEnum) {
9723
- ChartAccountsTypeEnum[ChartAccountsTypeEnum["INCOME"] = 1] = "INCOME";
9724
- ChartAccountsTypeEnum[ChartAccountsTypeEnum["EXPENSE"] = 2] = "EXPENSE";
9725
- })(exports.ChartAccountsTypeEnum || (exports.ChartAccountsTypeEnum = {}));
9726
-
9727
9920
  exports.ClientDetailsMedicareExemptionEnum = void 0;
9728
9921
  (function (ClientDetailsMedicareExemptionEnum) {
9729
9922
  ClientDetailsMedicareExemptionEnum[ClientDetailsMedicareExemptionEnum["NO"] = 0] = "NO";
@@ -10150,93 +10343,39 @@
10150
10343
  return _this;
10151
10344
  }
10152
10345
  return Badge;
10153
- }(AbstractModel));
10154
-
10155
- var BorrowingExpense$1 = /** @class */ (function (_super) {
10156
- __extends(BorrowingExpense, _super);
10157
- function BorrowingExpense() {
10158
- return _super !== null && _super.apply(this, arguments) || this;
10159
- }
10160
- return BorrowingExpense;
10161
- }(AbstractModel));
10162
-
10163
- var BorrowingExpense = /** @class */ (function (_super) {
10164
- __extends(BorrowingExpense, _super);
10165
- function BorrowingExpense() {
10166
- return _super !== null && _super.apply(this, arguments) || this;
10167
- }
10168
- return BorrowingExpense;
10169
- }(BorrowingExpense$1));
10170
-
10171
- var BorrowingExpenseLoan$1 = /** @class */ (function (_super) {
10172
- __extends(BorrowingExpenseLoan, _super);
10173
- function BorrowingExpenseLoan() {
10174
- return _super !== null && _super.apply(this, arguments) || this;
10175
- }
10176
- return BorrowingExpenseLoan;
10177
- }(AbstractModel));
10178
-
10179
- var BorrowingExpenseLoan = /** @class */ (function (_super) {
10180
- __extends(BorrowingExpenseLoan, _super);
10181
- function BorrowingExpenseLoan() {
10182
- return _super !== null && _super.apply(this, arguments) || this;
10183
- }
10184
- return BorrowingExpenseLoan;
10185
- }(BorrowingExpenseLoan$1));
10186
-
10187
- var ChartAccountsDepreciation$1 = /** @class */ (function (_super) {
10188
- __extends(ChartAccountsDepreciation, _super);
10189
- function ChartAccountsDepreciation() {
10190
- return _super !== null && _super.apply(this, arguments) || this;
10191
- }
10192
- return ChartAccountsDepreciation;
10193
- }(AbstractModel));
10194
-
10195
- var ChartAccountsDepreciation = /** @class */ (function (_super) {
10196
- __extends(ChartAccountsDepreciation, _super);
10197
- function ChartAccountsDepreciation() {
10198
- return _super !== null && _super.apply(this, arguments) || this;
10199
- }
10200
- return ChartAccountsDepreciation;
10201
- }(ChartAccountsDepreciation$1));
10202
- __decorate([
10203
- classTransformer.Type(function () { return ChartAccounts; })
10204
- ], ChartAccountsDepreciation.prototype, "chartAccounts", void 0);
10205
- __decorate([
10206
- classTransformer.Transform(function (_a) {
10207
- var value = _a.value;
10208
- return +value;
10209
- })
10210
- ], ChartAccountsDepreciation.prototype, "limit", void 0);
10211
- __decorate([
10212
- classTransformer.Transform(function (_a) {
10213
- var value = _a.value;
10214
- return +value;
10215
- })
10216
- ], ChartAccountsDepreciation.prototype, "effectiveLife", void 0);
10346
+ }(AbstractModel));
10217
10347
 
10218
- exports.ChartAccountsTaxLabelsEnum = void 0;
10219
- (function (ChartAccountsTaxLabelsEnum) {
10220
- ChartAccountsTaxLabelsEnum["TAX_WITHHELD"] = "Tax withheld";
10221
- ChartAccountsTaxLabelsEnum["TAX_PAID"] = "Tax Paid";
10222
- ChartAccountsTaxLabelsEnum["TAX_DEDUCTED"] = "Tax Deducted";
10223
- })(exports.ChartAccountsTaxLabelsEnum || (exports.ChartAccountsTaxLabelsEnum = {}));
10348
+ var BorrowingExpense$1 = /** @class */ (function (_super) {
10349
+ __extends(BorrowingExpense, _super);
10350
+ function BorrowingExpense() {
10351
+ return _super !== null && _super.apply(this, arguments) || this;
10352
+ }
10353
+ return BorrowingExpense;
10354
+ }(AbstractModel));
10224
10355
 
10225
- var ChartAccountsValue$1 = /** @class */ (function (_super) {
10226
- __extends(ChartAccountsValue, _super);
10227
- function ChartAccountsValue() {
10356
+ var BorrowingExpense = /** @class */ (function (_super) {
10357
+ __extends(BorrowingExpense, _super);
10358
+ function BorrowingExpense() {
10228
10359
  return _super !== null && _super.apply(this, arguments) || this;
10229
10360
  }
10230
- return ChartAccountsValue;
10361
+ return BorrowingExpense;
10362
+ }(BorrowingExpense$1));
10363
+
10364
+ var BorrowingExpenseLoan$1 = /** @class */ (function (_super) {
10365
+ __extends(BorrowingExpenseLoan, _super);
10366
+ function BorrowingExpenseLoan() {
10367
+ return _super !== null && _super.apply(this, arguments) || this;
10368
+ }
10369
+ return BorrowingExpenseLoan;
10231
10370
  }(AbstractModel));
10232
10371
 
10233
- var ChartAccountsValue = /** @class */ (function (_super) {
10234
- __extends(ChartAccountsValue, _super);
10235
- function ChartAccountsValue() {
10372
+ var BorrowingExpenseLoan = /** @class */ (function (_super) {
10373
+ __extends(BorrowingExpenseLoan, _super);
10374
+ function BorrowingExpenseLoan() {
10236
10375
  return _super !== null && _super.apply(this, arguments) || this;
10237
10376
  }
10238
- return ChartAccountsValue;
10239
- }(ChartAccountsValue$1));
10377
+ return BorrowingExpenseLoan;
10378
+ }(BorrowingExpenseLoan$1));
10240
10379
 
10241
10380
  var Chat$1 = /** @class */ (function (_super) {
10242
10381
  __extends(Chat, _super);
@@ -10713,29 +10852,6 @@
10713
10852
  return DepreciationReceipt;
10714
10853
  }(DepreciationReceipt$1));
10715
10854
 
10716
- var DOCUMENT_FILE_TYPES = {
10717
- image: [
10718
- 'image/png',
10719
- 'image/jpg',
10720
- 'image/jpeg',
10721
- 'image/tiff',
10722
- 'image/bmp'
10723
- ],
10724
- all: [
10725
- 'image/png',
10726
- 'image/jpg',
10727
- 'image/jpeg',
10728
- 'image/tiff',
10729
- 'image/bmp',
10730
- 'application/msword',
10731
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
10732
- 'application/pdf',
10733
- 'application/vnd.ms-excel',
10734
- 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
10735
- 'text/csv'
10736
- ]
10737
- };
10738
-
10739
10855
  var EmployeeInvite$1 = /** @class */ (function (_super) {
10740
10856
  __extends(EmployeeInvite, _super);
10741
10857
  function EmployeeInvite() {
@@ -12505,23 +12621,6 @@
12505
12621
  TaxSummaryTypeEnum["FORECASTS"] = "forecasts";
12506
12622
  })(exports.TaxSummaryTypeEnum || (exports.TaxSummaryTypeEnum = {}));
12507
12623
 
12508
- /**
12509
- * Enum with income amount types (Net or Gross)
12510
- */
12511
- exports.IncomeAmountTypeEnum = void 0;
12512
- (function (IncomeAmountTypeEnum) {
12513
- IncomeAmountTypeEnum[IncomeAmountTypeEnum["NET"] = 0] = "NET";
12514
- IncomeAmountTypeEnum[IncomeAmountTypeEnum["GROSS"] = 1] = "GROSS";
12515
- })(exports.IncomeAmountTypeEnum || (exports.IncomeAmountTypeEnum = {}));
12516
-
12517
- exports.TransactionCategoryEnum = void 0;
12518
- (function (TransactionCategoryEnum) {
12519
- TransactionCategoryEnum[TransactionCategoryEnum["PROPERTY"] = 0] = "PROPERTY";
12520
- TransactionCategoryEnum[TransactionCategoryEnum["WORK"] = 1] = "WORK";
12521
- TransactionCategoryEnum[TransactionCategoryEnum["SOLE"] = 2] = "SOLE";
12522
- TransactionCategoryEnum[TransactionCategoryEnum["PERSONAL"] = 3] = "PERSONAL";
12523
- })(exports.TransactionCategoryEnum || (exports.TransactionCategoryEnum = {}));
12524
-
12525
12624
  var MyAccountHistory = /** @class */ (function () {
12526
12625
  function MyAccountHistory() {
12527
12626
  }
@@ -12986,13 +13085,12 @@
12986
13085
  };
12987
13086
  /**
12988
13087
  * Get list of chart accounts heading
12989
- * @param categories
12990
13088
  */
12991
- ChartAccountsService.prototype.getChartAccountsHeadings = function (categories) {
13089
+ ChartAccountsService.prototype.getChartAccountsHeadings = function (categories, chartAccountsIds) {
12992
13090
  if (categories === void 0) { categories = CHART_ACCOUNTS_CATEGORIES.all; }
12993
13091
  return this.getChartAccounts()
12994
13092
  .pipe(operators.map(function (chartAccounts) {
12995
- var filteredChartAccounts = chartAccounts.filter(function (ca) { return categories.includes(ca.category); });
13093
+ var filteredChartAccounts = chartAccounts.filter(function (ca) { return categories.includes(ca.category) && (!chartAccountsIds || chartAccountsIds.includes(ca.id)); });
12996
13094
  var headings = [];
12997
13095
  filteredChartAccounts.forEach(function (ca) {
12998
13096
  var heading = headings.find(function (h) { var _a; return h.id === ((_a = ca.heading) === null || _a === void 0 ? void 0 : _a.id); });
@@ -15560,12 +15658,12 @@
15560
15658
  }] }, { type: ToastService }, { type: SseService }];
15561
15659
  } });
15562
15660
 
15563
- var MessagesEnum$1;
15661
+ var MessagesEnum$2;
15564
15662
  (function (MessagesEnum) {
15565
15663
  MessagesEnum["LOGO_UPDATED"] = "Logo updated successfully";
15566
15664
  MessagesEnum["LOGO_ERROR_FORMAT"] = "Wrong file format. Allowed extensions: jpg, img, png";
15567
15665
  MessagesEnum["LOGO_ERROR_SIZE"] = "The file is too big. Maximum size is 2mb";
15568
- })(MessagesEnum$1 || (MessagesEnum$1 = {}));
15666
+ })(MessagesEnum$2 || (MessagesEnum$2 = {}));
15569
15667
 
15570
15668
  var SoleBusinessService = /** @class */ (function (_super) {
15571
15669
  __extends(SoleBusinessService, _super);
@@ -15593,7 +15691,7 @@
15593
15691
  replace(tempCache, classTransformer.plainToClass(SoleBusiness, updatedBusiness));
15594
15692
  _this.cache = tempCache;
15595
15693
  _this.cacheSubject.next(_this.cache);
15596
- _this.toastService.success(MessagesEnum$1.LOGO_UPDATED);
15694
+ _this.toastService.success(MessagesEnum$2.LOGO_UPDATED);
15597
15695
  }), operators.catchError(function (error) {
15598
15696
  // Show error when user provided wrong image (format or size)
15599
15697
  if (error.status === 422) {
@@ -16458,19 +16556,6 @@
16458
16556
  }] }, { type: ToastService }];
16459
16557
  } });
16460
16558
 
16461
- function enumToList(data) {
16462
- var list = [];
16463
- for (var key in data) {
16464
- if (Number(key) >= 0) {
16465
- list.push({
16466
- label: data[key],
16467
- value: Number(key)
16468
- });
16469
- }
16470
- }
16471
- return list;
16472
- }
16473
-
16474
16559
  /**
16475
16560
  * Service for transactions business logic
16476
16561
  */
@@ -16592,7 +16677,7 @@
16592
16677
  transactions = ___default["default"].cloneDeep(transactions);
16593
16678
  return this.http.post(this.environment.apiV2 + "/" + this.url, transactions)
16594
16679
  .pipe(operators.map(function (response) {
16595
- var _c;
16680
+ var _b;
16596
16681
  var addedTransactions = response.map(function (item) { return classTransformer.plainToClass(Transaction, item); });
16597
16682
  transactions.forEach(function (transaction, index) {
16598
16683
  // @TODO backend: need to upload file in the same backend endpoint with transaction add/update
@@ -16616,7 +16701,7 @@
16616
16701
  }
16617
16702
  });
16618
16703
  if (_this.cache) {
16619
- (_c = _this.cache).push.apply(_c, __spreadArray([], __read(addedTransactions)));
16704
+ (_b = _this.cache).push.apply(_b, __spreadArray([], __read(addedTransactions)));
16620
16705
  _this.updateCache();
16621
16706
  }
16622
16707
  _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.TRANSACTIONS_CREATED, addedTransactions));
@@ -16727,31 +16812,6 @@
16727
16812
  }
16728
16813
  return amount;
16729
16814
  };
16730
- /**
16731
- * get label for transaction tax field depended of selected chart account.
16732
- * tax type depends of chart account heading or category.
16733
- */
16734
- TransactionService.prototype.getTaxLabel = function (chartAccounts) {
16735
- var _a, _b;
16736
- // get simple array of ids from enum with taxable chart accounts headings
16737
- var taxableCAHeadingsIds = enumToList(exports.ChartAccountsHeadingTaxableEnum)
16738
- .map(function (item) { return item.value; });
16739
- // get simple array of ids from enum with tax deductible chart accounts headings
16740
- var deductibleCAHeadingsIds = enumToList(exports.ChartAccountsHeadingTaxDeductibleEnum)
16741
- .map(function (item) { return item.value; });
16742
- // check if one of ids arrays includes current chart accounts heading id and set tax label
16743
- // otherwise label is empty for this class
16744
- switch (true) {
16745
- case taxableCAHeadingsIds.includes((_a = chartAccounts.heading) === null || _a === void 0 ? void 0 : _a.id):
16746
- return exports.ChartAccountsTaxLabelsEnum.TAX_PAID;
16747
- case deductibleCAHeadingsIds.includes((_b = chartAccounts.heading) === null || _b === void 0 ? void 0 : _b.id):
16748
- return exports.ChartAccountsTaxLabelsEnum.TAX_DEDUCTED;
16749
- case CHART_ACCOUNTS_CATEGORIES.workIncome.includes(chartAccounts.category):
16750
- return exports.ChartAccountsTaxLabelsEnum.TAX_WITHHELD;
16751
- default:
16752
- return null;
16753
- }
16754
- };
16755
16815
  /**
16756
16816
  * Listen to EventDispatcherService event related to Depreciation changing
16757
16817
  */
@@ -18646,16 +18706,16 @@
18646
18706
  };
18647
18707
  }
18648
18708
 
18649
- var MessagesEnum;
18709
+ var MessagesEnum$1;
18650
18710
  (function (MessagesEnum) {
18651
18711
  MessagesEnum["INVALID_DATE"] = "The date should not be before $1";
18652
- })(MessagesEnum || (MessagesEnum = {}));
18712
+ })(MessagesEnum$1 || (MessagesEnum$1 = {}));
18653
18713
 
18654
18714
  /**
18655
18715
  * Validation function, that checks If date form value is more than provided date
18656
18716
  */
18657
18717
  function minDateValidator(date, message) {
18658
- if (message === void 0) { message = MessagesEnum.INVALID_DATE.replace('$1', new i1$1.DatePipe('en-US').transform(date)); }
18718
+ if (message === void 0) { message = MessagesEnum$1.INVALID_DATE.replace('$1', new i1$1.DatePipe('en-US').transform(date)); }
18659
18719
  return function (control) {
18660
18720
  if (!control.value) {
18661
18721
  return null;
@@ -18695,6 +18755,50 @@
18695
18755
  };
18696
18756
  }
18697
18757
 
18758
+ /**
18759
+ * Validation function, that checks If provided date is within a current financial year
18760
+ */
18761
+ function currentFinYearValidator() {
18762
+ var currentFinYear = new FinancialYear();
18763
+ return function (control) {
18764
+ if (!control.value || control.value >= currentFinYear.startDate && control.value <= currentFinYear.endDate) {
18765
+ return null;
18766
+ }
18767
+ return { notCurrentFinYear: true };
18768
+ };
18769
+ }
18770
+
18771
+ var MAX_SIZE = 4194304;
18772
+ var FileValidator = /** @class */ (function () {
18773
+ function FileValidator() {
18774
+ }
18775
+ // File max size check
18776
+ FileValidator.fileMaxSize = function (maxSize) {
18777
+ if (maxSize === void 0) { maxSize = MAX_SIZE; }
18778
+ var validatorFn = function (file) {
18779
+ return file.size > maxSize ? { fileMaxSize: { maxSize: maxSize } } : null;
18780
+ };
18781
+ return FileValidator.fileValidation(validatorFn);
18782
+ };
18783
+ // File extension check
18784
+ FileValidator.fileExtensions = function (allowedExtensions) {
18785
+ if (allowedExtensions === void 0) { allowedExtensions = DOCUMENT_FILE_TYPES.all; }
18786
+ var validatorFn = function (file) {
18787
+ return allowedExtensions.includes(file.type) ? null : { fileExtension: { allowedExtensions: allowedExtensions.join() } };
18788
+ };
18789
+ return FileValidator.fileValidation(validatorFn);
18790
+ };
18791
+ FileValidator.fileValidation = function (validatorFn) {
18792
+ return function (formControl) {
18793
+ if (!formControl.value) {
18794
+ return null;
18795
+ }
18796
+ return validatorFn(formControl.value);
18797
+ };
18798
+ };
18799
+ return FileValidator;
18800
+ }());
18801
+
18698
18802
  /**
18699
18803
  * Validator for address, check if corelogic suggestion selected correctly
18700
18804
  */
@@ -20787,6 +20891,347 @@
20787
20891
  }(AbstractForm));
20788
20892
  VehicleLogbookForm.maxDescriptionLength = 60;
20789
20893
 
20894
+ /**
20895
+ * general validation rules
20896
+ */
20897
+ exports.FormValidationsEnum = void 0;
20898
+ (function (FormValidationsEnum) {
20899
+ FormValidationsEnum[FormValidationsEnum["INPUT_MAX_LENGTH"] = 60] = "INPUT_MAX_LENGTH";
20900
+ FormValidationsEnum[FormValidationsEnum["TEXT_MAX_LENGTH"] = 300] = "TEXT_MAX_LENGTH";
20901
+ FormValidationsEnum[FormValidationsEnum["FILE_MAX_SIZE"] = 4194304] = "FILE_MAX_SIZE";
20902
+ // @TODO move to file uploader component
20903
+ FormValidationsEnum["FILE_ACCEPTED_TYPES"] = "Accepted file type: .doc .jpg .png .pdf .tiff .bmp .excel .csv";
20904
+ })(exports.FormValidationsEnum || (exports.FormValidationsEnum = {}));
20905
+
20906
+ /**
20907
+ * @TODO refactor, move specific fields like property in separated forms
20908
+ * @TODO remove useless getters
20909
+ */
20910
+ var TransactionBaseForm = /** @class */ (function (_super) {
20911
+ __extends(TransactionBaseForm, _super);
20912
+ function TransactionBaseForm(transaction, registeredForGst, controls) {
20913
+ if (controls === void 0) { controls = {}; }
20914
+ var _this = this;
20915
+ var _a;
20916
+ _this = _super.call(this, Object.assign({
20917
+ chartAccounts: new forms.FormControl(transaction.chartAccounts, [forms.Validators.required, autocompleteValidator()]),
20918
+ claimPercent: new forms.FormControl({ value: transaction.claimPercent, disabled: true }, [forms.Validators.required, forms.Validators.min(0), forms.Validators.max(100)]),
20919
+ amount: new forms.FormControl(transaction.amount, forms.Validators.required),
20920
+ amountWithGST: new forms.FormControl(transaction.amountWithGst, forms.Validators.required),
20921
+ isGST: new forms.FormControl({ value: transaction.isGST, disabled: !((_a = transaction.chartAccounts) === null || _a === void 0 ? void 0 : _a.isGST) || !registeredForGst }),
20922
+ gstAmount: new forms.FormControl({ value: transaction.gstAmount, disabled: true }, forms.Validators.required),
20923
+ date: new forms.FormControl(transaction.date, [forms.Validators.required, currentFinYearValidator()]),
20924
+ description: new forms.FormControl(transaction.description, forms.Validators.maxLength(exports.FormValidationsEnum.TEXT_MAX_LENGTH)),
20925
+ // @TODO Alex: refactor (TT-1996)
20926
+ file: new forms.FormControl(transaction['receipt'], [
20927
+ FileValidator.fileExtensions(DOCUMENT_FILE_TYPES.all), FileValidator.fileMaxSize(+exports.FormValidationsEnum.FILE_MAX_SIZE)
20928
+ ]),
20929
+ property: new forms.FormControl({ value: transaction.property, disabled: transaction.chartAccounts }),
20930
+ }, controls), transaction) || this;
20931
+ _this.registeredForGst = registeredForGst;
20932
+ _this.watchChartAccounts();
20933
+ if (_this.isGstApplicable()) {
20934
+ _this.watchAmountWithGST();
20935
+ _this.watchIsGst();
20936
+ }
20937
+ return _this;
20938
+ }
20939
+ TransactionBaseForm.prototype.watchIsGst = function () {
20940
+ var _this = this;
20941
+ this.get('isGST').valueChanges.subscribe(function (isGST) {
20942
+ _this.updateAmount();
20943
+ _this.updateGstAmount();
20944
+ });
20945
+ };
20946
+ TransactionBaseForm.prototype.watchAmountWithGST = function () {
20947
+ var _this = this;
20948
+ this.get('amountWithGST').valueChanges.subscribe(function () {
20949
+ _this.updateAmount();
20950
+ _this.updateGstAmount();
20951
+ });
20952
+ };
20953
+ TransactionBaseForm.prototype.watchChartAccounts = function () {
20954
+ var _this = this;
20955
+ this.get('chartAccounts').valueChanges.subscribe(function (value) {
20956
+ if (!(value instanceof ChartAccounts)) {
20957
+ return;
20958
+ }
20959
+ // recalculate claim percent for selected chart accounts
20960
+ _this.updateClaimPercent(value);
20961
+ if (!_this.isGstApplicable()) {
20962
+ return;
20963
+ }
20964
+ // update gst if applicable
20965
+ if (value.isGST) {
20966
+ _this.get('isGST').enable();
20967
+ _this.get('isGST').patchValue(true);
20968
+ }
20969
+ else {
20970
+ _this.get('isGST').patchValue(false);
20971
+ _this.get('isGST').disable();
20972
+ }
20973
+ });
20974
+ };
20975
+ TransactionBaseForm.prototype.updateGstAmount = function () {
20976
+ this.get('gstAmount').patchValue((this.amountWithGST - this.amount).toFixed(2));
20977
+ };
20978
+ TransactionBaseForm.prototype.updateAmount = function () {
20979
+ this.get('amount').patchValue(this.isGST ? (this.amountWithGST / ChartAccounts.GSTCoefficient).toFixed(2) : this.amountWithGST);
20980
+ };
20981
+ TransactionBaseForm.prototype.isGstApplicable = function () {
20982
+ return !!this.registeredForGst && !!this.model.business;
20983
+ };
20984
+ Object.defineProperty(TransactionBaseForm.prototype, "amount", {
20985
+ get: function () {
20986
+ return this.get('amount').value;
20987
+ },
20988
+ enumerable: false,
20989
+ configurable: true
20990
+ });
20991
+ Object.defineProperty(TransactionBaseForm.prototype, "amountWithGST", {
20992
+ get: function () {
20993
+ return this.get('amountWithGST').value;
20994
+ },
20995
+ enumerable: false,
20996
+ configurable: true
20997
+ });
20998
+ Object.defineProperty(TransactionBaseForm.prototype, "isGST", {
20999
+ get: function () {
21000
+ return this.get('isGST').value;
21001
+ },
21002
+ enumerable: false,
21003
+ configurable: true
21004
+ });
21005
+ /**
21006
+ * propertyClaimPercent for propertyExpense (except platform fees, which already include claimPercent),
21007
+ * taxablePercent for others
21008
+ * can be adjusted only for property/sole expenses
21009
+ */
21010
+ TransactionBaseForm.prototype.updateClaimPercent = function (chartAccounts) {
21011
+ var _a;
21012
+ if (chartAccounts.isClaimPercentEditable()) {
21013
+ this.get('claimPercent').enable();
21014
+ }
21015
+ // property claim (ownership% x shared%) for property expenses, taxable percent for others
21016
+ var claimPercent = chartAccounts.taxablePercent;
21017
+ if (chartAccounts.isPropertyExpense() && chartAccounts.id !== exports.ChartAccountsListEnum.PLATFORM_FEES) {
21018
+ claimPercent *= (_a = this.value.property) === null || _a === void 0 ? void 0 : _a.claimCoefficient;
21019
+ }
21020
+ this.get('claimPercent').setValue(claimPercent);
21021
+ };
21022
+ return TransactionBaseForm;
21023
+ }(AbstractForm));
21024
+
21025
+ var MessagesEnum;
21026
+ (function (MessagesEnum) {
21027
+ MessagesEnum["DATE_VALIDATION_ERROR"] = "The transaction date is before the ownership date, please update the date to confirm";
21028
+ })(MessagesEnum || (MessagesEnum = {}));
21029
+
21030
+ var TransactionForm = /** @class */ (function (_super) {
21031
+ __extends(TransactionForm, _super);
21032
+ function TransactionForm(transaction, registeredForGst, allocations, controls) {
21033
+ if (controls === void 0) { controls = {}; }
21034
+ var _this = _super.call(this, transaction, registeredForGst, Object.assign(controls, { transactions: new forms.FormArray([]) })) || this;
21035
+ // convert child transactions to controls
21036
+ transaction.transactions.map(function (transaction) {
21037
+ _this.addTransactionControl(transaction);
21038
+ });
21039
+ // forbid to add transactions before property ownership
21040
+ if (transaction.property) {
21041
+ _this.get('date').addValidators(minDateValidator(transaction.property.myShare.fromDate, MessagesEnum.DATE_VALIDATION_ERROR));
21042
+ }
21043
+ // property usually comes with fees, add empty control for new transactions
21044
+ if (!transaction.id && transaction.property && !transaction.transactions.length) {
21045
+ _this.addTransactionControl();
21046
+ }
21047
+ // forbid to edit amount for allocated transactions to prevent wrong allocations
21048
+ if (allocations.length) {
21049
+ _this.get('amount').disable();
21050
+ _this.get('date').disable();
21051
+ }
21052
+ return _this;
21053
+ }
21054
+ TransactionForm.prototype.addTransactionControl = function (transaction) {
21055
+ if (transaction === void 0) { transaction = classTransformer.plainToClass(Transaction, {}); }
21056
+ var formGroup = new forms.FormGroup({
21057
+ id: new forms.FormControl(transaction.id),
21058
+ chartAccounts: new forms.FormControl(transaction.chartAccounts, [forms.Validators.required, autocompleteValidator()]),
21059
+ amount: new forms.FormControl(Math.abs(transaction.amount), [forms.Validators.required]),
21060
+ });
21061
+ this.get('transactions').push(formGroup);
21062
+ };
21063
+ TransactionForm.prototype.removeTransactionControl = function (index) {
21064
+ this.get('transactions').removeAt(index);
21065
+ };
21066
+ /**
21067
+ * income transactions might include adjustments (child transactions), like tips or fees.
21068
+ * Adjustments inherit most of the fields from parent transaction
21069
+ */
21070
+ TransactionForm.prototype.buildTransactions = function (transaction) {
21071
+ var _this = this;
21072
+ return this.get('transactions').value.map(function (childTransaction) { return Object.assign({
21073
+ description: childTransaction.chartAccounts.name,
21074
+ date: transaction.date,
21075
+ claimPercent: transaction.claimPercent,
21076
+ source: exports.TransactionSourceEnum.BANK_TRANSACTION,
21077
+ type: childTransaction.chartAccounts.isExpense() ? exports.TransactionTypeEnum.DEBIT : exports.TransactionTypeEnum.CREDIT,
21078
+ incomeSource: transaction.incomeSource,
21079
+ property: transaction.property
21080
+ }, _this.model.transactions.find(function (transaction) { return transaction.id === childTransaction['id']; }) || {}, childTransaction); });
21081
+ };
21082
+ TransactionForm.prototype.submit = function (data) {
21083
+ if (data === void 0) { data = {}; }
21084
+ return _super.prototype.submit.call(this, Object.assign(data, { transactions: this.buildTransactions(this.currentValue) }));
21085
+ };
21086
+ return TransactionForm;
21087
+ }(TransactionBaseForm));
21088
+
21089
+ var WorkIncomeForm = /** @class */ (function (_super) {
21090
+ __extends(WorkIncomeForm, _super);
21091
+ function WorkIncomeForm(transaction, registeredForGst, allocations) {
21092
+ var _this = this;
21093
+ var _a;
21094
+ _this = _super.call(this, transaction, registeredForGst, allocations, {
21095
+ // additional data related to work income (like tax instalments)
21096
+ metadata: new forms.FormArray((transaction.metadata || []).map(function (transactionMetadata) {
21097
+ return new forms.FormGroup({
21098
+ value: new forms.FormControl(transactionMetadata.value),
21099
+ chartAccountsMetadata: new forms.FormControl(transactionMetadata.chartAccountsMetadata)
21100
+ });
21101
+ })),
21102
+ tax: new forms.FormControl({
21103
+ value: transaction.tax,
21104
+ disabled: !transaction.chartAccounts || transaction.chartAccounts.isNRAS(),
21105
+ }, forms.Validators.required),
21106
+ incomeSource: new forms.FormControl(transaction.incomeSource, [forms.Validators.required, autocompleteValidator()]),
21107
+ }) || this;
21108
+ // salary adjustments (like tips)
21109
+ if (transaction.id) {
21110
+ _this.get('amount').setValue(_this.getAmount(transaction));
21111
+ _this.get('chartAccounts').disable();
21112
+ }
21113
+ if (!((_a = transaction.chartAccounts) === null || _a === void 0 ? void 0 : _a.isSalary())) {
21114
+ _this.get('transactions').disable();
21115
+ }
21116
+ _this.listenEvents();
21117
+ return _this;
21118
+ }
21119
+ WorkIncomeForm.prototype.listenEvents = function () {
21120
+ this.watchIncomeSource();
21121
+ this.watchChartAccounts();
21122
+ };
21123
+ WorkIncomeForm.prototype.watchIncomeSource = function () {
21124
+ var _this = this;
21125
+ this.get('incomeSource').valueChanges.subscribe(function (incomeSource) {
21126
+ // prefill salary tax with its income source forecast
21127
+ if (incomeSource instanceof IncomeSource && incomeSource.isSalaryIncome() && !_this.get('tax').value) {
21128
+ _this.get('tax').setValue(incomeSource.salaryForecasts[0].taxWithheld);
21129
+ }
21130
+ });
21131
+ };
21132
+ WorkIncomeForm.prototype.watchChartAccounts = function () {
21133
+ var _this = this;
21134
+ _super.prototype.watchChartAccounts.call(this);
21135
+ this.get('chartAccounts').valueChanges.subscribe(function (value) {
21136
+ // some fields depend on ChartAccounts and can't be filled until it's selected
21137
+ if (!(value instanceof ChartAccounts)) {
21138
+ _this.get('tax').disable();
21139
+ _this.get('transactions').disable();
21140
+ return;
21141
+ }
21142
+ _this.buildMetadataForm();
21143
+ // tax make no sense for pre-paying tax category
21144
+ if (value.isNRAS()) {
21145
+ _this.get('tax').disable();
21146
+ }
21147
+ else {
21148
+ _this.get('tax').enable();
21149
+ }
21150
+ // adjustments possible only for salary chartAccounts
21151
+ if (value.isSalary()) {
21152
+ _this.get('transactions').enable();
21153
+ }
21154
+ else {
21155
+ _this.get('transactions').disable();
21156
+ }
21157
+ });
21158
+ };
21159
+ /**
21160
+ * depends on chartAccounts the form could include different extra fields
21161
+ */
21162
+ WorkIncomeForm.prototype.buildMetadataForm = function () {
21163
+ var _this = this;
21164
+ // Remove all controls in the FormArray before pushing
21165
+ this.get('metadata').clear();
21166
+ // create form controls for each metadata object from selected chart accounts
21167
+ (this.get('chartAccounts').value.metadata).forEach(function (chartAccountsMetadata) {
21168
+ _this.get('metadata').push(new forms.FormGroup({
21169
+ value: new forms.FormControl(chartAccountsMetadata.isSharePercentage() ? 100 : 0),
21170
+ chartAccountsMetadata: new forms.FormControl(chartAccountsMetadata),
21171
+ }));
21172
+ });
21173
+ };
21174
+ /**
21175
+ * @param transaction
21176
+ * @param includeAdjustments reduce result by adjustments included in salary if false or increase amount with included salary adjustments to match received payment if true,
21177
+ * salary/wage comes to bankAccount together with related chartAccounts like tips (kind of salary, but reported in different tax summary section),
21178
+ * adjustments used to clarify received payment by separating it into multiple transactions,
21179
+ * formAmount always match received payment, it also matches parent transactionAmount when there are no adjustments,
21180
+ * otherwise it includes such adjustments, so we should exclude it from formAmount to create a salary transaction (on submit)
21181
+ * but include in form->amount to match bank transaction (on edit),
21182
+ * ie bankTransaction=1000$, it includes 900$ salary and 100$ tips (should be reported in different tax summary sections),
21183
+ * so we should show 1000$ in formAmount, but create 2 transactions with 900$ and 100$
21184
+ */
21185
+ WorkIncomeForm.prototype.getAmount = function (transaction, includeAdjustments) {
21186
+ if (includeAdjustments === void 0) { includeAdjustments = true; }
21187
+ if (!transaction.chartAccounts || !transaction.chartAccounts.isSalary()) {
21188
+ return transaction.amount;
21189
+ }
21190
+ var includedTransactions = new Collection(transaction.transactions).filter(function (t) { return t.chartAccounts.isSalaryIncluded(); });
21191
+ return transaction.amount + includedTransactions.sumBy('amount') * (includeAdjustments ? 1 : -1);
21192
+ };
21193
+ WorkIncomeForm.prototype.submit = function (data) {
21194
+ if (data === void 0) { data = {}; }
21195
+ return _super.prototype.submit.call(this, Object.assign(data, { amount: this.getAmount(this.currentValue, false) }));
21196
+ };
21197
+ return WorkIncomeForm;
21198
+ }(TransactionForm));
21199
+
21200
+ var DepreciationForm = /** @class */ (function (_super) {
21201
+ __extends(DepreciationForm, _super);
21202
+ function DepreciationForm(depreciation, registeredForGst) {
21203
+ var _this = _super.call(this, depreciation, registeredForGst) || this;
21204
+ _this.get('claimPercent').setValue(depreciation.currentYearForecast.claimPercent);
21205
+ _this.addControl('isCloseBalanceCorrect', new forms.FormControl(true));
21206
+ _this.addControl('closeBalance', new forms.FormControl({ value: depreciation.closeBalance || 0, disabled: true }, forms.Validators.required));
21207
+ _this.addControl('financialYear', new forms.FormControl(depreciation.financialYear || new FinancialYear().year));
21208
+ // forbid to change chartAccounts/claimPercent for existing depreciations
21209
+ if (depreciation.id) {
21210
+ _this.get('chartAccounts').disable({ emitEvent: false });
21211
+ _this.get('claimPercent').disable({ emitEvent: false });
21212
+ }
21213
+ // @TODO should be watched?
21214
+ // if depreciation has 'depreciationCapitalProject' value - set value and disable 'date' form control
21215
+ if (depreciation.depreciationCapitalProject) {
21216
+ _this.get('date').setValue(depreciation.depreciationCapitalProject.effectiveDate);
21217
+ _this.get('date').disable();
21218
+ }
21219
+ else {
21220
+ _this.get('date').setValue(depreciation.date);
21221
+ }
21222
+ _this.get('isCloseBalanceCorrect').valueChanges.subscribe(function (isSelected) {
21223
+ if (isSelected) {
21224
+ _this.get('closeBalance').disable();
21225
+ }
21226
+ else {
21227
+ _this.get('closeBalance').enable();
21228
+ }
21229
+ });
21230
+ return _this;
21231
+ }
21232
+ return DepreciationForm;
21233
+ }(TransactionBaseForm));
21234
+
20790
21235
  // @TODO Alex: Create indexes everywhere and break this file to imports from indexes
20791
21236
 
20792
21237
  /**
@@ -20889,6 +21334,7 @@
20889
21334
  exports.DepreciationCollection = DepreciationCollection;
20890
21335
  exports.DepreciationForecast = DepreciationForecast;
20891
21336
  exports.DepreciationForecastCollection = DepreciationForecastCollection;
21337
+ exports.DepreciationForm = DepreciationForm;
20892
21338
  exports.DepreciationGroup = DepreciationGroup;
20893
21339
  exports.DepreciationGroupItem = DepreciationGroupItem;
20894
21340
  exports.DepreciationLvpReportItem = DepreciationLvpReportItem;
@@ -20916,6 +21362,7 @@
20916
21362
  exports.ExportFormatterService = ExportFormatterService;
20917
21363
  exports.ExportableCollection = ExportableCollection;
20918
21364
  exports.FacebookService = FacebookService;
21365
+ exports.FileValidator = FileValidator;
20919
21366
  exports.FinancialYear = FinancialYear;
20920
21367
  exports.Firm = Firm;
20921
21368
  exports.FirmService = FirmService;
@@ -21104,8 +21551,10 @@
21104
21551
  exports.TransactionAllocationService = TransactionAllocationService;
21105
21552
  exports.TransactionBase = TransactionBase;
21106
21553
  exports.TransactionBaseCollection = TransactionBaseCollection;
21554
+ exports.TransactionBaseForm = TransactionBaseForm;
21107
21555
  exports.TransactionCalculationService = TransactionCalculationService;
21108
21556
  exports.TransactionCollection = TransactionCollection;
21557
+ exports.TransactionForm = TransactionForm;
21109
21558
  exports.TransactionMetadata = TransactionMetadata;
21110
21559
  exports.TransactionReceipt = TransactionReceipt;
21111
21560
  exports.TransactionReceiptService = TransactionReceiptService;
@@ -21142,6 +21591,7 @@
21142
21591
  exports.VehicleLogbookForm = VehicleLogbookForm;
21143
21592
  exports.VehicleLogbookService = VehicleLogbookService;
21144
21593
  exports.VehicleService = VehicleService;
21594
+ exports.WorkIncomeForm = WorkIncomeForm;
21145
21595
  exports.XlsxService = XlsxService;
21146
21596
  exports.atLeastOneCheckedValidator = atLeastOneCheckedValidator;
21147
21597
  exports.atoLinks = atoLinks;
@@ -21151,6 +21601,7 @@
21151
21601
  exports.compareMatOptions = compareMatOptions;
21152
21602
  exports.conditionalValidator = conditionalValidator;
21153
21603
  exports.createDate = createDate;
21604
+ exports.currentFinYearValidator = currentFinYearValidator;
21154
21605
  exports.displayMatOptions = displayMatOptions;
21155
21606
  exports.enumToList = enumToList;
21156
21607
  exports.fieldsSumValidator = fieldsSumValidator;