taxtank-core 0.24.4 → 0.27.0

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 (239) hide show
  1. package/bundles/taxtank-core.umd.js +7216 -6718
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/depreciation.collection.js +11 -1
  4. package/esm2015/lib/collections/index.js +3 -0
  5. package/esm2015/lib/collections/loan/loan-payment.collection.js +14 -1
  6. package/esm2015/lib/collections/loan/loan.collection.js +11 -1
  7. package/esm2015/lib/collections/report/vehicle-expense/vehicle-expense.collection.js +1 -1
  8. package/esm2015/lib/collections/transaction/transaction.collection.js +20 -1
  9. package/esm2015/lib/collections/vehicle/index.js +3 -0
  10. package/esm2015/lib/collections/vehicle/vehicle-claim.collection.js +27 -0
  11. package/esm2015/lib/collections/vehicle/vehicle-logbook.collection.js +106 -0
  12. package/esm2015/lib/db/Enums/bank-account-type.enum.js +3 -2
  13. package/esm2015/lib/db/Enums/vehicle-claim-details-method.enum.js +6 -0
  14. package/esm2015/lib/db/Models/sole/sole-business.js +1 -1
  15. package/esm2015/lib/db/Models/sole/sole-invoice-template.js +1 -1
  16. package/esm2015/lib/db/Models/transaction/transaction-base.js +15 -2
  17. package/esm2015/lib/db/Models/vehicle/vehicle-claim-details.js +4 -0
  18. package/esm2015/lib/db/Models/vehicle/vehicle-claim.js +1 -1
  19. package/esm2015/lib/db/Models/vehicle/vehicle-logbook.js +1 -1
  20. package/esm2015/lib/db/Models/vehicle/vehicle.js +1 -1
  21. package/esm2015/lib/forms/abstract.form.js +23 -1
  22. package/esm2015/lib/forms/bank/bank-account/bank-account-add-manual.form.js +8 -5
  23. package/esm2015/lib/forms/bank/bank-account/bank-account-allocation.form.js +16 -9
  24. package/esm2015/lib/forms/bank/bank-account/bank-account-import.form.js +8 -3
  25. package/esm2015/lib/forms/index.js +3 -4
  26. package/esm2015/lib/forms/loan/index.js +2 -0
  27. package/esm2015/lib/forms/loan/loan.form.js +86 -0
  28. package/esm2015/lib/forms/report/my-tax/my-tax-deductions.form.js +2 -2
  29. package/esm2015/lib/forms/sole/index.js +3 -1
  30. package/esm2015/lib/forms/sole/sole-business-allocations.form.js +65 -0
  31. package/esm2015/lib/forms/sole/sole-invoice-template.form.js +13 -0
  32. package/esm2015/lib/forms/vehicle/index.js +5 -0
  33. package/esm2015/lib/forms/vehicle/vehicle-claim-details.form.js +21 -0
  34. package/esm2015/lib/forms/vehicle/vehicle-claim.form.js +12 -102
  35. package/esm2015/lib/forms/vehicle/vehicle-logbook.form.js +56 -0
  36. package/esm2015/lib/forms/vehicle/vehicle.form.js +5 -2
  37. package/esm2015/lib/interceptors/basiq.interceptor.js +3 -3
  38. package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
  39. package/esm2015/lib/interceptors/financial-year-interceptor.js +3 -3
  40. package/esm2015/lib/interceptors/interceptors.module.js +4 -4
  41. package/esm2015/lib/interceptors/jwt-interceptor.js +3 -3
  42. package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
  43. package/esm2015/lib/interceptors/user-switcher-interceptor.js +3 -3
  44. package/esm2015/lib/models/bank/bank-account-types.const.js +1 -2
  45. package/esm2015/lib/models/bank/bank-account.js +10 -5
  46. package/esm2015/lib/models/bank/type-loan.const.js +1 -2
  47. package/esm2015/lib/models/endpoint/endpoints.const.js +13 -4
  48. package/esm2015/lib/models/event/app-event-type.enum.js +7 -4
  49. package/esm2015/lib/models/index.js +2 -1
  50. package/esm2015/lib/models/loan/loan.js +36 -2
  51. package/esm2015/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.js +5 -5
  52. package/esm2015/lib/models/sole/sole-business.js +2 -2
  53. package/esm2015/lib/models/sole/sole-invoice-template.js +5 -2
  54. package/esm2015/lib/models/vehicle/index.js +6 -0
  55. package/esm2015/lib/models/vehicle/logbook-period.js +23 -0
  56. package/esm2015/lib/models/vehicle/vehicle-claim-details.js +26 -0
  57. package/esm2015/lib/models/vehicle/vehicle-claim.js +64 -0
  58. package/esm2015/lib/models/vehicle/vehicle-logbook.js +32 -0
  59. package/esm2015/lib/models/vehicle/vehicle.js +10 -0
  60. package/esm2015/lib/services/account-setup/account-setup.service.js +3 -3
  61. package/esm2015/lib/services/asset/assets.service.js +3 -3
  62. package/esm2015/lib/services/auth/auth.service.js +3 -3
  63. package/esm2015/lib/services/auth/jwt.service.js +3 -3
  64. package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
  65. package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
  66. package/esm2015/lib/services/event/event-dispatcher.service.js +3 -3
  67. package/esm2015/lib/services/event/sse.service.js +3 -3
  68. package/esm2015/lib/services/export/export-formatter.service.js +3 -3
  69. package/esm2015/lib/services/header-title/header-title.service.js +3 -3
  70. package/esm2015/lib/services/http/address/address.service.js +3 -3
  71. package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +3 -3
  72. package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +3 -3
  73. package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +3 -3
  74. package/esm2015/lib/services/http/bank/bank.service.js +3 -3
  75. package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +3 -3
  76. package/esm2015/lib/services/http/bank/basiq/basiq.service.js +3 -3
  77. package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +3 -3
  78. package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +3 -3
  79. package/esm2015/lib/services/http/chat/chat.service.js +3 -3
  80. package/esm2015/lib/services/http/chat/message/message.service.js +3 -3
  81. package/esm2015/lib/services/http/chat/message-document/message-document.service.js +3 -3
  82. package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
  83. package/esm2015/lib/services/http/depreciation/depreciation.service.js +13 -8
  84. package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +3 -3
  85. package/esm2015/lib/services/http/facebook/facebook.service.js +3 -3
  86. package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
  87. package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
  88. package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
  89. package/esm2015/lib/services/http/firm/employee/employee.service.js +3 -3
  90. package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +3 -3
  91. package/esm2015/lib/services/http/firm/firm.service.js +3 -3
  92. package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
  93. package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +3 -3
  94. package/esm2015/lib/services/http/income-source/income-source.service.js +3 -3
  95. package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +3 -3
  96. package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +3 -3
  97. package/esm2015/lib/services/http/index.js +3 -1
  98. package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +3 -3
  99. package/esm2015/lib/services/http/loan/loan.service.js +3 -3
  100. package/esm2015/lib/services/http/property/property-category/property-category.service.js +3 -3
  101. package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +3 -3
  102. package/esm2015/lib/services/http/property/property-document/property-document.service.js +3 -3
  103. package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +3 -3
  104. package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +3 -3
  105. package/esm2015/lib/services/http/property/property-share/property-share.service.js +3 -3
  106. package/esm2015/lib/services/http/property/property.service.js +3 -3
  107. package/esm2015/lib/services/http/rest/rest.service.js +3 -3
  108. package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
  109. package/esm2015/lib/services/http/sole/index.js +2 -1
  110. package/esm2015/lib/services/http/sole/sole-business/sole-business.service.js +3 -3
  111. package/esm2015/lib/services/http/sole/sole-contact/sole-contact.service.js +3 -3
  112. package/esm2015/lib/services/http/sole/sole-details/sole-details.service.js +3 -3
  113. package/esm2015/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.js +21 -0
  114. package/esm2015/lib/services/http/subscription/service-price.service.js +3 -3
  115. package/esm2015/lib/services/http/subscription/subscription.service.js +3 -3
  116. package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +3 -3
  117. package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
  118. package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
  119. package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +3 -3
  120. package/esm2015/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.js +3 -3
  121. package/esm2015/lib/services/http/transaction/transaction.service.js +15 -4
  122. package/esm2015/lib/services/http/tutorial-video/tutorial-video.service.js +3 -3
  123. package/esm2015/lib/services/http/user/index.js +5 -0
  124. package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
  125. package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +3 -3
  126. package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +3 -3
  127. package/esm2015/lib/services/http/user/user.service.js +3 -3
  128. package/esm2015/lib/services/http/user/users-invite/users-invite.service.js +3 -3
  129. package/esm2015/lib/services/http/vehicle/index.js +5 -0
  130. package/esm2015/lib/services/http/vehicle/vehicle-claim-details.service.js +91 -0
  131. package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +68 -9
  132. package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +13 -49
  133. package/esm2015/lib/services/http/vehicle/vehicle.service.js +5 -55
  134. package/esm2015/lib/services/index.js +2 -1
  135. package/esm2015/lib/services/intercom/intercom.service.js +3 -3
  136. package/esm2015/lib/services/kompassify/kompassify.service.js +3 -3
  137. package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +3 -3
  138. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +3 -3
  139. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +3 -3
  140. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +3 -3
  141. package/esm2015/lib/services/preloader/preloader.service.js +3 -3
  142. package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
  143. package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
  144. package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
  145. package/esm2015/lib/services/report/property/property-transaction-report.service.js +3 -3
  146. package/esm2015/lib/services/toast/toast.service.js +3 -3
  147. package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
  148. package/esm2015/lib/services/user/user-switcher.service.js +3 -3
  149. package/esm2015/lib/services/vehicle/index.js +2 -0
  150. package/esm2015/lib/services/vehicle/logbook-best-period.service.js +72 -0
  151. package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
  152. package/esm2015/lib/tt-core.module.js +4 -4
  153. package/esm2015/lib/validators/index.js +3 -1
  154. package/esm2015/lib/validators/min-date/messages.enum.js +5 -0
  155. package/esm2015/lib/validators/min-date/min-date.validator.js +14 -0
  156. package/esm2015/public-api.js +3 -14
  157. package/fesm2015/taxtank-core.js +2775 -2336
  158. package/fesm2015/taxtank-core.js.map +1 -1
  159. package/lib/collections/depreciation.collection.d.ts +6 -1
  160. package/lib/collections/index.d.ts +1 -0
  161. package/lib/collections/loan/loan-payment.collection.d.ts +4 -0
  162. package/lib/collections/loan/loan.collection.d.ts +6 -0
  163. package/lib/collections/report/vehicle-expense/vehicle-expense.collection.d.ts +1 -1
  164. package/lib/collections/transaction/transaction.collection.d.ts +9 -0
  165. package/lib/collections/vehicle/index.d.ts +2 -0
  166. package/lib/collections/vehicle/vehicle-claim.collection.d.ts +14 -0
  167. package/lib/collections/vehicle/vehicle-logbook.collection.d.ts +38 -0
  168. package/lib/db/Enums/bank-account-type.enum.d.ts +0 -1
  169. package/lib/db/Enums/vehicle-claim-details-method.enum.d.ts +4 -0
  170. package/lib/db/Models/sole/sole-business.d.ts +2 -0
  171. package/lib/db/Models/sole/sole-invoice-template.d.ts +1 -0
  172. package/lib/db/Models/transaction/transaction-base.d.ts +2 -0
  173. package/lib/db/Models/vehicle/vehicle-claim-details.d.ts +10 -0
  174. package/lib/db/Models/vehicle/vehicle-claim.d.ts +3 -5
  175. package/lib/db/Models/vehicle/vehicle-logbook.d.ts +3 -2
  176. package/lib/forms/abstract.form.d.ts +12 -0
  177. package/lib/forms/index.d.ts +2 -3
  178. package/lib/forms/loan/index.d.ts +1 -0
  179. package/lib/forms/loan/loan.form.d.ts +25 -0
  180. package/lib/forms/sole/index.d.ts +2 -0
  181. package/lib/forms/sole/sole-business-allocations.form.d.ts +17 -0
  182. package/lib/forms/sole/sole-invoice-template.form.d.ts +5 -0
  183. package/lib/forms/vehicle/index.d.ts +4 -0
  184. package/lib/forms/vehicle/vehicle-claim-details.form.d.ts +13 -0
  185. package/lib/forms/vehicle/vehicle-claim.form.d.ts +8 -38
  186. package/lib/forms/vehicle/vehicle-logbook.form.d.ts +20 -0
  187. package/lib/forms/vehicle/vehicle.form.d.ts +4 -1
  188. package/lib/models/bank/bank-account.d.ts +3 -2
  189. package/lib/models/event/app-event-type.enum.d.ts +6 -3
  190. package/lib/models/index.d.ts +1 -0
  191. package/lib/models/loan/loan.d.ts +26 -0
  192. package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts +3 -2
  193. package/lib/models/sole/sole-business.d.ts +1 -1
  194. package/lib/models/sole/sole-invoice-template.d.ts +1 -0
  195. package/lib/models/vehicle/index.d.ts +5 -0
  196. package/lib/models/vehicle/logbook-period.d.ts +15 -0
  197. package/lib/models/vehicle/vehicle-claim-details.d.ts +8 -0
  198. package/lib/models/{logbook → vehicle}/vehicle-claim.d.ts +11 -17
  199. package/lib/models/vehicle/vehicle-logbook.d.ts +17 -0
  200. package/lib/models/{logbook → vehicle}/vehicle.d.ts +0 -5
  201. package/lib/services/http/depreciation/depreciation.service.d.ts +1 -1
  202. package/lib/services/http/index.d.ts +2 -0
  203. package/lib/services/http/sole/index.d.ts +1 -0
  204. package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts +11 -0
  205. package/lib/services/http/transaction/transaction.service.d.ts +1 -0
  206. package/lib/services/http/user/index.d.ts +4 -0
  207. package/lib/services/http/vehicle/index.d.ts +4 -0
  208. package/lib/services/http/vehicle/vehicle-claim-details.service.d.ts +34 -0
  209. package/lib/services/http/vehicle/vehicle-claim.service.d.ts +22 -5
  210. package/lib/services/http/vehicle/vehicle-logbook.service.d.ts +6 -15
  211. package/lib/services/http/vehicle/vehicle.service.d.ts +2 -20
  212. package/lib/services/index.d.ts +1 -0
  213. package/lib/services/vehicle/index.d.ts +1 -0
  214. package/lib/services/vehicle/logbook-best-period.service.d.ts +28 -0
  215. package/lib/validators/index.d.ts +2 -0
  216. package/lib/validators/min-date/messages.enum.d.ts +3 -0
  217. package/lib/validators/min-date/min-date.validator.d.ts +5 -0
  218. package/package.json +1 -1
  219. package/public-api.d.ts +2 -13
  220. package/esm2015/lib/collections/vehicle-logbook.collection.js +0 -88
  221. package/esm2015/lib/collections/vehicle.collection.js +0 -9
  222. package/esm2015/lib/db/Enums/vehicle-claim-method.enum.js +0 -6
  223. package/esm2015/lib/forms/bank/bank-account/bank-account-loan.form.js +0 -23
  224. package/esm2015/lib/models/logbook/default-vehicle-expense.js +0 -20
  225. package/esm2015/lib/models/logbook/logbook-period.js +0 -18
  226. package/esm2015/lib/models/logbook/logbook-purpose-options.const.js +0 -6
  227. package/esm2015/lib/models/logbook/vehicle-claim.js +0 -94
  228. package/esm2015/lib/models/logbook/vehicle-logbook.js +0 -22
  229. package/esm2015/lib/models/logbook/vehicle.js +0 -17
  230. package/esm2015/lib/services/http/vehicle/messages.enum.js +0 -13
  231. package/lib/collections/vehicle-logbook.collection.d.ts +0 -30
  232. package/lib/collections/vehicle.collection.d.ts +0 -6
  233. package/lib/db/Enums/vehicle-claim-method.enum.d.ts +0 -4
  234. package/lib/forms/bank/bank-account/bank-account-loan.form.d.ts +0 -8
  235. package/lib/models/logbook/default-vehicle-expense.d.ts +0 -5
  236. package/lib/models/logbook/logbook-period.d.ts +0 -10
  237. package/lib/models/logbook/logbook-purpose-options.const.d.ts +0 -4
  238. package/lib/models/logbook/vehicle-logbook.d.ts +0 -12
  239. package/lib/services/http/vehicle/messages.enum.d.ts +0 -11
@@ -4,6 +4,7 @@ import { Depreciation } from '../models/depreciation/depreciation';
4
4
  import { DepreciationCapitalProject } from '../models/depreciation/depreciation-capital-project';
5
5
  import { TransactionCollection } from './transaction/transaction.collection';
6
6
  import { ChartAccountsCategoryEnum } from '../db/Enums/chart-accounts-category.enum';
7
+ import { VehicleClaim } from '../models';
7
8
  export declare class DepreciationCollection extends Collection<Depreciation> {
8
9
  /**
9
10
  * Get total amount of all depreciations in the collection
@@ -30,10 +31,14 @@ export declare class DepreciationCollection extends Collection<Depreciation> {
30
31
  /**
31
32
  * Get a new collection of depreciations related to vehicles
32
33
  */
33
- getVehicleDepreciations(): DepreciationCollection;
34
+ getVehicleDepreciations(): this;
34
35
  getByTankType(tankType: TankTypeEnum): this;
35
36
  /**
36
37
  * Create TransactionCollection from depreciation items
37
38
  */
38
39
  toTransactions(): TransactionCollection;
40
+ /**
41
+ * Get depreciations by vehicle claim. Only vehicle depreciations may be related to vehicle claim
42
+ */
43
+ getByVehicleClaim(vehicleClaim: VehicleClaim): this;
39
44
  }
@@ -0,0 +1 @@
1
+ export * from './vehicle';
@@ -1,7 +1,11 @@
1
1
  import { ExportableCollection } from '../exportable.collection';
2
2
  import { ExportCell } from '../../models/export/export-cell';
3
3
  import { LoanPayment } from '../../models/loan/loan-payment';
4
+ import { FinancialYear } from '../../models/financial-year/financial-year';
4
5
  export declare class LoanPaymentCollection extends ExportableCollection<LoanPayment> {
5
6
  getExportHeader(): string[];
6
7
  getExportBody(): ExportCell[][];
8
+ get paymentDue(): number;
9
+ getByFinYear(finYear?: FinancialYear): this;
10
+ getForCurrentYear(): this;
7
11
  }
@@ -1,5 +1,7 @@
1
1
  import { Collection } from '../collection';
2
2
  import { Loan } from '../../models/loan/loan';
3
+ import { CollectionDictionary } from '../collection-dictionary';
4
+ import { LoanPaymentCollection } from './loan-payment.collection';
3
5
  export declare class LoanCollection extends Collection<Loan> {
4
6
  /**
5
7
  * Get new collection of loans filtered by bank accounts ids
@@ -11,4 +13,8 @@ export declare class LoanCollection extends Collection<Loan> {
11
13
  * @param id id of bank account
12
14
  */
13
15
  getByBankAccountId(id: number): Loan;
16
+ /**
17
+ * Get list of current fin year payments grouped by loan id
18
+ */
19
+ groupCurrentYearPaymentsByLoans(): CollectionDictionary<LoanPaymentCollection>;
14
20
  }
@@ -2,7 +2,7 @@ import { Collection } from '../../collection';
2
2
  import { VehicleExpense } from '../../../models/report/vehicle-expense/vehicle-expense';
3
3
  import { TransactionCollection } from '../../transaction/transaction.collection';
4
4
  import { DepreciationCollection } from '../../depreciation.collection';
5
- import { VehicleClaim } from '../../../models/logbook/vehicle-claim';
5
+ import { VehicleClaim } from '../../../models/vehicle/vehicle-claim';
6
6
  export declare class VehicleExpenseCollection extends Collection<VehicleExpense> {
7
7
  constructor(transactions: TransactionCollection, depreciations: DepreciationCollection, vehicleClaim: VehicleClaim);
8
8
  private setItems;
@@ -6,6 +6,7 @@ import { ExportableCollection } from '../exportable.collection';
6
6
  import { ExportCell } from '../../models/export/export-cell';
7
7
  import { Collection } from '../collection';
8
8
  import { TransactionMetadata } from '../../models/transaction/transaction-metadata';
9
+ import { VehicleClaim } from '../../models';
9
10
  /**
10
11
  * Collection of transactions
11
12
  */
@@ -82,4 +83,12 @@ export declare class TransactionCollection extends ExportableCollection<Transact
82
83
  getExportHeader(): string[];
83
84
  getExportFooter(): ExportCell[];
84
85
  getExportBody(): ExportCell[][];
86
+ /**
87
+ * Get list of vehicle transactions filtered by vehicle claim
88
+ */
89
+ getByVehicleClaim(vehicleClaim: VehicleClaim): this;
90
+ /**
91
+ * Get list of vehicle transactions except KLMS transactions
92
+ */
93
+ getLogbookTransactions(): this;
85
94
  }
@@ -0,0 +1,2 @@
1
+ export * from './vehicle-claim.collection';
2
+ export * from './vehicle-logbook.collection';
@@ -0,0 +1,14 @@
1
+ import { Collection } from '../collection';
2
+ import { VehicleClaim } from '../../models';
3
+ export declare class VehicleClaimCollection extends Collection<VehicleClaim> {
4
+ /**
5
+ * Get remaining kilometers limit. Total limit ({@link VehicleClaim.totalKmsLimit}) - claimed kilometers from other vehicle claims
6
+ * @param claim may not exist when user come to vehicle claim page 1st time and not created claim yet
7
+ */
8
+ getKlmsLimitForClaim(claim?: VehicleClaim): number;
9
+ /**
10
+ * Get remaining work usage limit. Total limit ({@link VehicleClaim.totalWorkUsagePercent}) - claimed percent from other vehicle claims
11
+ * @param claim may not exist when user come to vehicle claim page 1st time and not created claim yet
12
+ */
13
+ getWorkUsageLimitForClaim(claim?: VehicleClaim): number;
14
+ }
@@ -0,0 +1,38 @@
1
+ import { Collection } from '../collection';
2
+ import { LogbookPeriod, VehicleClaim, VehicleLogbook } from '../../models';
3
+ export declare class VehicleLogbookCollection extends Collection<VehicleLogbook> {
4
+ /**
5
+ * Best period may be calculated only when user has logbooks minimum for {@link VehicleLogbook.periodDuration}
6
+ * @TODO Vik: Best period: move this and related logic to backend
7
+ */
8
+ isBestPeriodExist(): boolean;
9
+ /**
10
+ * Get collection of non-personal logbooks (work-related, sole-related).
11
+ * @TODO Vik: Best period: move this and related logic to backend
12
+ */
13
+ getClaimableLogbooks(): this;
14
+ /**
15
+ * Logbook Period is the best when it has the biggest work usage percent
16
+ * Best period duration is defined as {@link VehicleLogbook.periodDuration} by the ATO
17
+ * @TODO Vik: Best period: move this and related logic to backend
18
+ */
19
+ getBestPeriod(): LogbookPeriod;
20
+ /**
21
+ * Calculate total kilometers traveled
22
+ */
23
+ get kilometers(): number;
24
+ /**
25
+ * Calculate work usage (percent of business-related kilometers from total kilometers)
26
+ * @TODO Alex: TT-2089 replace with getter
27
+ */
28
+ getWorkUsage(): number;
29
+ /**
30
+ * Get LOGBOOK_PERIOD_DURATION date range from passed start date
31
+ * @TODO Vik: Best period: move this and related logic to backend
32
+ */
33
+ private getPeriodRange;
34
+ /**
35
+ * Get list of logbooks related to passed vehicle claim
36
+ */
37
+ getByVehicleClaim(claim: VehicleClaim): this;
38
+ }
@@ -2,7 +2,6 @@ export declare enum BankAccountTypeEnum {
2
2
  TRANSACTION = 1,
3
3
  SAVINGS = 2,
4
4
  CREDIT_CARD = 3,
5
- MORTGAGE = 4,
6
5
  LOAN = 5,
7
6
  INVESTMENT = 6,
8
7
  TERM_DEPOSIT = 7,
@@ -0,0 +1,4 @@
1
+ export declare enum VehicleClaimDetailsMethodEnum {
2
+ KMS = 1,
3
+ LOGBOOK = 2
4
+ }
@@ -7,6 +7,7 @@ import { VehicleClaim } from '../vehicle/vehicle-claim';
7
7
  import { Transaction } from '../transaction/transaction';
8
8
  import { Depreciation } from '../depreciation/depreciation';
9
9
  import { AbstractModel } from '../abstract-model';
10
+ import { VehicleLogbook } from '../vehicle/vehicle-logbook';
10
11
  export declare class SoleBusiness extends AbstractModel {
11
12
  name?: string;
12
13
  code?: string;
@@ -21,6 +22,7 @@ export declare class SoleBusiness extends AbstractModel {
21
22
  invoices?: SoleInvoice[];
22
23
  invoiceTemplates?: SoleInvoiceTemplate[];
23
24
  vehicleClaims?: VehicleClaim[];
25
+ vehicleLogbooks?: VehicleLogbook[];
24
26
  transactions?: Transaction[];
25
27
  depreciations?: Depreciation[];
26
28
  }
@@ -2,6 +2,7 @@ import { SoleBusiness } from './sole-business';
2
2
  import { BankAccount } from '../bank/bank-account';
3
3
  import { AbstractModel } from '../abstract-model';
4
4
  export declare class SoleInvoiceTemplate extends AbstractModel {
5
+ name?: string;
5
6
  isTaxIncluded?: boolean;
6
7
  term?: number;
7
8
  id?: number;
@@ -2,6 +2,7 @@ import { Property } from '../property/property';
2
2
  import { ChartAccounts } from '../chart-accounts/chart-accounts';
3
3
  import { AbstractModel } from '../abstract-model';
4
4
  import { SoleBusiness } from '../sole/sole-business';
5
+ import { TankTypeEnum } from '../../Enums/tank-type.enum';
5
6
  export declare class TransactionBase extends AbstractModel {
6
7
  id?: number;
7
8
  amount?: number;
@@ -16,6 +17,7 @@ export declare class TransactionBase extends AbstractModel {
16
17
  */
17
18
  file: File;
18
19
  claimPercent?: number;
20
+ get tankType(): TankTypeEnum;
19
21
  /**
20
22
  * Check if current tank is Property
21
23
  */
@@ -0,0 +1,10 @@
1
+ import { VehicleClaimDetailsMethodEnum } from '../../Enums/vehicle-claim-details-method.enum';
2
+ import { User } from '../user/user';
3
+ import { AbstractModel } from '../abstract-model';
4
+ export declare class VehicleClaimDetails extends AbstractModel {
5
+ financialYear?: number;
6
+ method?: VehicleClaimDetailsMethodEnum;
7
+ isManual?: boolean;
8
+ id?: number;
9
+ user?: User;
10
+ }
@@ -1,14 +1,12 @@
1
- import { VehicleClaimMethodEnum } from '../../Enums/vehicle-claim-method.enum';
2
1
  import { User } from '../user/user';
3
2
  import { AbstractModel } from '../abstract-model';
4
3
  import { SoleBusiness } from '../sole/sole-business';
4
+ import { VehicleClaimDetails } from './vehicle-claim-details';
5
5
  export declare class VehicleClaim extends AbstractModel {
6
- financialYear?: number;
7
- method?: VehicleClaimMethodEnum;
6
+ id?: number;
8
7
  kilometers?: number;
9
8
  workUsage?: number;
10
- isManual?: boolean;
11
- id?: number;
9
+ details?: VehicleClaimDetails;
12
10
  user?: User;
13
11
  business?: SoleBusiness;
14
12
  }
@@ -1,16 +1,17 @@
1
- import { VehicleLogbookPurposeEnum } from '../../Enums/vehicle-logbook-purpose.enum';
2
1
  import { Vehicle } from './vehicle';
3
2
  import { User } from '../user/user';
3
+ import { SoleBusiness } from '../sole/sole-business';
4
4
  import { AbstractModel } from '../abstract-model';
5
5
  export declare class VehicleLogbook extends AbstractModel {
6
6
  date?: Date;
7
7
  odometerStart?: number;
8
8
  odometerEnd?: number;
9
- purpose?: VehicleLogbookPurposeEnum;
9
+ isPersonal?: boolean;
10
10
  description?: string;
11
11
  id?: number;
12
12
  createdAt?: Date;
13
13
  updatedAt?: Date;
14
+ business?: SoleBusiness;
14
15
  vehicle?: Vehicle;
15
16
  createdBy?: User;
16
17
  updatedBy?: User;
@@ -3,15 +3,25 @@ import { EventEmitter, Type } from '@angular/core';
3
3
  /**
4
4
  * Abstract form class
5
5
  * @TODO rename to AbstractFormGroup
6
+ * @TODO Alex: refactor: check and improve logic
6
7
  */
7
8
  export declare abstract class AbstractForm<Model> extends FormGroup {
9
+ /**
10
+ * Initial form value for comparison with changes to check saved/unsaved state
11
+ */
12
+ private initialValue;
8
13
  protected modelClass: Type<Model>;
9
14
  model: Model;
10
15
  submitted: boolean;
16
+ /**
17
+ * Flag display if some form values changed
18
+ */
19
+ unsaved: boolean;
11
20
  onSubmit: EventEmitter<Model>;
12
21
  protected constructor(controls: {
13
22
  [key: string]: AbstractControl;
14
23
  }, model?: Model, validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null);
24
+ get saved(): boolean;
15
25
  /**
16
26
  * Check validation and return a new instance of generic model.
17
27
  * Merge form value to initial object
@@ -21,5 +31,7 @@ export declare abstract class AbstractForm<Model> extends FormGroup {
21
31
  addControl(name: string, control: AbstractControl, options?: {
22
32
  emitEvent?: boolean;
23
33
  }): this;
34
+ markAsUnsaved(): void;
35
+ markAsSaved(): void;
24
36
  private createModelInstance;
25
37
  }
@@ -1,7 +1,7 @@
1
1
  export * from './abstract.form';
2
+ export * from './loan';
2
3
  export * from './bank/bank-account/bank-account-allocation.form';
3
4
  export * from './bank/bank-account/bank-account-import.form';
4
- export * from './bank/bank-account/bank-account-loan.form';
5
5
  export * from './bank/bank-account/bank-account-add-manual.form';
6
6
  export * from './bank/bank-account/bank-account-properties.form';
7
7
  export * from './bank/bank-account/bank-accounts-import.form';
@@ -11,7 +11,6 @@ export * from './login/login.form';
11
11
  export * from './register/register-client.form';
12
12
  export * from './register/register-firm.form';
13
13
  export * from './user';
14
- export * from './vehicle/vehicle.form';
15
- export * from './vehicle/vehicle-claim.form';
16
14
  export * from './report/my-tax';
17
15
  export * from './sole';
16
+ export * from './vehicle';
@@ -0,0 +1 @@
1
+ export * from './loan.form';
@@ -0,0 +1,25 @@
1
+ import { AbstractForm } from '../abstract.form';
2
+ import { Loan } from '../../models/loan/loan';
3
+ import { LoanTypeEnum } from '../../db/Enums/loan-type.enum';
4
+ /**
5
+ * Form with loan details.
6
+ * Loan could be created from bank account (Bank Loan) or directly from loan page (Vehicle Loan)
7
+ */
8
+ export declare class LoanForm extends AbstractForm<Loan> {
9
+ private loan;
10
+ static mortgageLoanTypes: LoanTypeEnum[];
11
+ constructor(loan?: Loan);
12
+ listenEvents(): void;
13
+ /**
14
+ * Set term automatically by loan type changes
15
+ */
16
+ listenTypeChanges(): void;
17
+ /**
18
+ * term validation depends on selected repaymentFrequency
19
+ */
20
+ listenRepaymentFrequencyChanges(): void;
21
+ /**
22
+ * For vehicle loans term has a maximum value depended of repayment frequency
23
+ */
24
+ private updateTermValidation;
25
+ }
@@ -1,3 +1,5 @@
1
1
  export * from './sole-business.form';
2
+ export * from './sole-business-allocations.form';
2
3
  export * from './sole-contact.form';
3
4
  export * from './sole-details.form';
5
+ export * from './sole-invoice-template.form';
@@ -0,0 +1,17 @@
1
+ import { FormArray } from '@angular/forms';
2
+ import { SoleBusinessAllocation } from '../../models';
3
+ /**
4
+ * Form array with bank account business allocations
5
+ * @TODO create AbstractFormArray
6
+ */
7
+ export declare class SoleBusinessAllocationsForm extends FormArray {
8
+ constructor(businessAllocations?: SoleBusinessAllocation[]);
9
+ add(): void;
10
+ enablePercent(): void;
11
+ disablePercent(): void;
12
+ /**
13
+ * Percentage available for adding a new bank account business allocation.
14
+ * Remaining percent can't be more than 100 and less than 0
15
+ */
16
+ private getRemainingPercent;
17
+ }
@@ -0,0 +1,5 @@
1
+ import { AbstractForm } from '../abstract.form';
2
+ import { SoleInvoiceTemplate } from '../../models';
3
+ export declare class SoleInvoiceTemplateForm extends AbstractForm<SoleInvoiceTemplate> {
4
+ constructor(invoiceTemplate: SoleInvoiceTemplate);
5
+ }
@@ -0,0 +1,4 @@
1
+ export * from './vehicle.form';
2
+ export * from './vehicle-claim.form';
3
+ export * from './vehicle-claim-details.form';
4
+ export * from './vehicle-logbook.form';
@@ -0,0 +1,13 @@
1
+ import { AbstractForm } from '../abstract.form';
2
+ import { VehicleClaimDetails } from '../../models';
3
+ import { VehicleLogbookCollection } from '../../collections';
4
+ /**
5
+ * Add/Edit vehicle claim details form
6
+ */
7
+ export declare class VehicleClaimDetailsForm extends AbstractForm<VehicleClaimDetails> {
8
+ /**
9
+ * @param vehicleClaimDetails required because we create a new details with prefilled data (like Financial year)
10
+ * @param logbooks required for isManual field disabled state management
11
+ */
12
+ constructor(vehicleClaimDetails: VehicleClaimDetails, logbooks: VehicleLogbookCollection);
13
+ }
@@ -1,43 +1,13 @@
1
1
  import { AbstractForm } from '../abstract.form';
2
- import { VehicleClaim } from '../../models/logbook/vehicle-claim';
3
- import { VehicleLogbookCollection } from '../../collections/vehicle-logbook.collection';
2
+ import { VehicleClaim } from '../../models';
3
+ import { VehicleClaimDetails } from '../../models';
4
+ /**
5
+ * Add/Edit Vehicle Claim form
6
+ */
4
7
  export declare class VehicleClaimForm extends AbstractForm<VehicleClaim> {
5
- private vehicleClaim;
6
- private logbooks;
7
- constructor(vehicleClaim: VehicleClaim, logbooks: VehicleLogbookCollection);
8
8
  /**
9
- * Check if vehicle claim method changed
9
+ * @param vehicleClaim required even for the new claim, because claim needs business for sole tank
10
+ * @param details required for form controls disabled state management
10
11
  */
11
- isMethodChanged(): boolean;
12
- /**
13
- * Check if KLMs method selected
14
- */
15
- isKLMsMethod(): boolean;
16
- /**
17
- * Check if Logbook method selected
18
- */
19
- isLogbookMethod(): boolean;
20
- /**
21
- * Check if user selected manual calculation
22
- */
23
- isManual(): boolean;
24
- /**
25
- * @TODO save model, add generics and handle it in AbstractForm
26
- */
27
- submit(): VehicleClaim;
28
- private setIsManualState;
29
- /**
30
- * Handle method field value changes.
31
- * Set work usage value depended of selected method.
32
- */
33
- private listenMethodChanges;
34
- /**
35
- * Handle isManual field value changes.
36
- * Enable/disable fields depended of isManual value
37
- */
38
- private listenIsManualChanges;
39
- /**
40
- * Set automatic calculated values depended of current method for non-manual vehicle claim
41
- */
42
- private setValues;
12
+ constructor(vehicleClaim: VehicleClaim, details: VehicleClaimDetails);
43
13
  }
@@ -0,0 +1,20 @@
1
+ import { AbstractForm } from '../abstract.form';
2
+ import { VehicleLogbook } from '../../models';
3
+ import { VehicleLogbookCollection } from '../../collections';
4
+ /**
5
+ * Add/Edit vehicle logbook form.
6
+ * Behavior cases:
7
+ * 1) Create the first logbook OR Edit the single logbook: all fields enabled
8
+ * 2) Create the non-first logbook OR Edit the last logbook: odometerStart disabled
9
+ * 3) Edit the non-last logbook: odometerStart, odometerEnd, date disabled
10
+ */
11
+ export declare class VehicleLogbookForm extends AbstractForm<VehicleLogbook> {
12
+ private logbook;
13
+ private logbooks;
14
+ static maxDescriptionLength: number;
15
+ /**
16
+ * @param logbook required because we need to set vehicle allocation and we can not set in in the form
17
+ * @param logbooks list of all logbooks related to current logbook's vehicle. Required for form fields validation and disabled state management
18
+ */
19
+ constructor(logbook: VehicleLogbook, logbooks: VehicleLogbookCollection);
20
+ }
@@ -1,5 +1,8 @@
1
1
  import { AbstractForm } from '../abstract.form';
2
- import { Vehicle } from '../../models/logbook/vehicle';
2
+ import { Vehicle } from '../../models';
3
+ /**
4
+ * Add/Edit Vehicle form
5
+ */
3
6
  export declare class VehicleForm extends AbstractForm<Vehicle> {
4
7
  private vehicle;
5
8
  static maxNameLength: number;
@@ -5,12 +5,14 @@ import { TankTypeEnum } from '../../db/Enums/tank-type.enum';
5
5
  import { BankAccountBalance } from '../../db/Models/bank/bank-account-balance';
6
6
  import { BankAccountProperty } from './bank-account-property';
7
7
  import { BankConnection } from './bank-connection';
8
+ import { SoleBusinessAllocation } from '../sole';
8
9
  export declare class BankAccount extends BankAccountBase {
9
- static loanTypes: BankAccountTypeEnum[];
10
10
  bankAccountProperties: BankAccountProperty[];
11
+ businessAllocations: SoleBusinessAllocation[];
11
12
  balances: BankAccountBalance[];
12
13
  loan: Loan;
13
14
  bankConnection: BankConnection;
15
+ type: BankAccountTypeEnum;
14
16
  /**
15
17
  * Get current opening balance amount
16
18
  */
@@ -25,7 +27,6 @@ export declare class BankAccount extends BankAccountBase {
25
27
  isSavingsAccount(): boolean;
26
28
  /**
27
29
  * check if bank account type is Loan
28
- * @TODO nicole check
29
30
  */
30
31
  isLoan(): boolean;
31
32
  /**
@@ -48,7 +48,10 @@ export declare enum AppEventTypeEnum {
48
48
  USER_UPDATED = 46,
49
49
  VEHICLE_CLAIM_UPDATED = 47,
50
50
  VEHICLE_CLAIM_CREATED = 48,
51
- VEHICLE_LOGBOOK_CREATED = 49,
52
- VEHICLE_LOGBOOK_UPDATED = 50,
53
- VEHICLE_LOGBOOK_DELETED = 51
51
+ VEHICLE_CLAIM_DETAILS_UPDATED = 49,
52
+ VEHICLE_CLAIM_DETAILS_CREATED = 50,
53
+ VEHICLE_LOGBOOK_CREATED = 51,
54
+ VEHICLE_LOGBOOK_UPDATED = 52,
55
+ VEHICLE_LOGBOOK_DELETED = 53,
56
+ VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED = 54
54
57
  }
@@ -1 +1,2 @@
1
1
  export * from './sole';
2
+ export * from './vehicle';
@@ -2,6 +2,14 @@ import { Loan as LoanBase } from '../../db/Models/loan/loan';
2
2
  import { LoanPayment } from './loan-payment';
3
3
  import { LoanPayout } from './loan-payout';
4
4
  export declare class Loan extends LoanBase {
5
+ /**
6
+ * 30 years is default mortgage term
7
+ */
8
+ static mortgageDefaultTerm: number;
9
+ /**
10
+ * 5 years is default bank loan term
11
+ */
12
+ static loanDefaultTerm: number;
5
13
  payments: LoanPayment[];
6
14
  commencementDate: Date;
7
15
  payout: LoanPayout;
@@ -15,4 +23,22 @@ export declare class Loan extends LoanBase {
15
23
  * @param year financial year for filter
16
24
  */
17
25
  getLastPaymentByYear(year: number): LoanPayment;
26
+ /**
27
+ * The size of loan interest
28
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/212369955/Loans+vehicle+loans
29
+ * @TODO Vik/Nicole: need to update documentation. Derek gave the right formulas to Mikhail
30
+ */
31
+ getInterest(): number;
32
+ /**
33
+ * The last payment size
34
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/212369955/Loans+vehicle+loans
35
+ * @TODO Vik/Nicole: need to update documentation. Derek gave the right formulas to Mikhail
36
+ */
37
+ getBalloonPayment(): number;
38
+ /**
39
+ * Percent of ballon payment from all payments
40
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/212369955/Loans+vehicle+loans
41
+ * @TODO Vik/Nicole: need to update documentation. Derek gave the right formulas to Mikhail
42
+ */
43
+ getBalloonPaymentPercentage(): number;
18
44
  }
@@ -1,12 +1,13 @@
1
1
  import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
2
  import { DepreciationCollection } from '../../../../collections/depreciation.collection';
3
- import { VehicleClaim } from '../../../logbook/vehicle-claim';
4
3
  import { DeductionClothingTypeEnum } from './deduction-clothing-type.enum';
5
4
  import { DeductionSelfEducationTypeEnum } from './deduction-self-education-type.enum';
5
+ import { VehicleClaim, VehicleClaimDetails } from '../../../vehicle';
6
6
  export declare class MyTaxDeductions {
7
7
  transactions: TransactionCollection;
8
8
  depreciations: DepreciationCollection;
9
9
  vehicleClaim: VehicleClaim;
10
+ vehicleClaimDetails: VehicleClaimDetails;
10
11
  vehicleClaimRate: number;
11
12
  workRelatedClothingExpenses: TransactionCollection;
12
13
  workRelatedSelfEducationExpenses: TransactionCollection;
@@ -30,7 +31,7 @@ export declare class MyTaxDeductions {
30
31
  personalSuperContributionsTotalAmount: number;
31
32
  forestryManagedInvestmentSchemesDeductionsTotalAmount: number;
32
33
  otherDeductionsTotalAmount: number;
33
- constructor(transactions: TransactionCollection, depreciations: DepreciationCollection, vehicleClaim: VehicleClaim, vehicleClaimRate: number);
34
+ constructor(transactions: TransactionCollection, depreciations: DepreciationCollection, vehicleClaim: VehicleClaim, vehicleClaimDetails: VehicleClaimDetails, vehicleClaimRate: number);
34
35
  private getVehicleExpensesTotalAmount;
35
36
  private setVehicleClaimData;
36
37
  /**
@@ -4,7 +4,7 @@ import { SoleBusinessAllocation } from './sole-business-allocation';
4
4
  import { SoleBusinessLoss } from './sole-business-loss';
5
5
  import { SoleInvoice } from './sole-invoice';
6
6
  import { SoleInvoiceTemplate } from './sole-invoice-template';
7
- import { VehicleClaim } from '../logbook/vehicle-claim';
7
+ import { VehicleClaim } from '../vehicle/vehicle-claim';
8
8
  import { Depreciation } from '../depreciation/depreciation';
9
9
  import { Transaction } from '../transaction/transaction';
10
10
  import { Photoable } from '../../interfaces/photoable';
@@ -4,4 +4,5 @@ import { SoleInvoiceTemplate as SoleInvoiceTemplateBase } from '../../db/Models/
4
4
  export declare class SoleInvoiceTemplate extends SoleInvoiceTemplateBase {
5
5
  business: SoleBusiness;
6
6
  bankAccount: BankAccount;
7
+ static create(businessId: number): SoleInvoiceTemplate;
7
8
  }
@@ -0,0 +1,5 @@
1
+ export * from './logbook-period';
2
+ export * from './vehicle';
3
+ export * from './vehicle-claim';
4
+ export * from './vehicle-claim-details';
5
+ export * from './vehicle-logbook';
@@ -0,0 +1,15 @@
1
+ import { VehicleLogbookCollection } from '../../collections';
2
+ import { VehicleClaim } from './vehicle-claim';
3
+ /**
4
+ * Class contains traveled kilometers and work usage percent in 12 weeks date range
5
+ * @TODO Vik: Best period: move this and related logic to backend
6
+ */
7
+ export declare class LogbookPeriod {
8
+ from: Date;
9
+ to: Date;
10
+ kilometers: number;
11
+ workUsage: number;
12
+ logbooks: VehicleLogbookCollection;
13
+ isEndOfYear(): boolean;
14
+ getWorkUsageByClaim(claim: VehicleClaim): number;
15
+ }
@@ -0,0 +1,8 @@
1
+ import { VehicleClaimDetails as VehicleClaimDetailsBase } from '../../db/Models/vehicle/vehicle-claim-details';
2
+ import { User } from '../user/user';
3
+ export declare class VehicleClaimDetails extends VehicleClaimDetailsBase {
4
+ user: User;
5
+ isLogbookMethod(): boolean;
6
+ isKlmsMethod(): boolean;
7
+ static create(): VehicleClaimDetails;
8
+ }