taxtank-core 0.33.5 → 0.33.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. package/esm2022/common/src/common.module.mjs +4 -4
  2. package/esm2022/common/src/interceptors/interceptors.module.mjs +4 -4
  3. package/esm2022/common/src/interceptors/jwt-interceptor.mjs +5 -5
  4. package/esm2022/common/src/services/auth/auth.service.mjs +5 -5
  5. package/esm2022/common/src/services/auth/jwt.service.mjs +3 -3
  6. package/esm2022/common/src/services/mixpanel.service.mjs +5 -5
  7. package/esm2022/src/lib/collections/bank-account.collection.mjs +5 -41
  8. package/esm2022/src/lib/collections/collection-dictionary.mjs +12 -10
  9. package/esm2022/src/lib/collections/collection.mjs +5 -5
  10. package/esm2022/src/lib/collections/depreciation.collection.mjs +6 -18
  11. package/esm2022/src/lib/collections/property/property.collection.mjs +9 -5
  12. package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +3 -15
  13. package/esm2022/src/lib/core.module.mjs +4 -4
  14. package/esm2022/src/lib/db/Enums/bank/bank-account-type.enum.mjs +2 -2
  15. package/esm2022/src/lib/db/Models/bank/bank-account.mjs +1 -1
  16. package/esm2022/src/lib/db/Models/transaction/transaction-base.mjs +6 -40
  17. package/esm2022/src/lib/forms/abstract.form.mjs +1 -1
  18. package/esm2022/src/lib/forms/address/address.form.mjs +1 -1
  19. package/esm2022/src/lib/forms/firm/client-movement.form.mjs +4 -4
  20. package/esm2022/src/lib/forms/firm/employee-details.form.mjs +4 -4
  21. package/esm2022/src/lib/forms/property/property-share.form.mjs +2 -2
  22. package/esm2022/src/lib/interceptors/basiq-client-id.interceptor.mjs +4 -4
  23. package/esm2022/src/lib/interceptors/basiq-token.interceptor.mjs +4 -4
  24. package/esm2022/src/lib/interceptors/corelogic-interceptor.mjs +5 -5
  25. package/esm2022/src/lib/interceptors/financial-year-interceptor.mjs +5 -5
  26. package/esm2022/src/lib/interceptors/interceptors.module.mjs +4 -4
  27. package/esm2022/src/lib/interceptors/preloader.interceptor.mjs +4 -4
  28. package/esm2022/src/lib/interceptors/rewardful.interceptor.mjs +5 -5
  29. package/esm2022/src/lib/interceptors/user-switcher-interceptor.mjs +5 -5
  30. package/esm2022/src/lib/models/bank/bank-account.mjs +6 -3
  31. package/esm2022/src/lib/models/bank/type-loan.const.mjs +2 -5
  32. package/esm2022/src/lib/models/depreciation/depreciation.mjs +8 -22
  33. package/esm2022/src/lib/models/financial-year/financial-year.mjs +1 -1
  34. package/esm2022/src/lib/models/property/property.mjs +1 -4
  35. package/esm2022/src/lib/models/report/index.mjs +3 -1
  36. package/esm2022/src/lib/models/report/report.interface.mjs +2 -0
  37. package/esm2022/src/lib/models/report/reports.const.mjs +73 -0
  38. package/esm2022/src/lib/models/service-subscription/service-subscription.mjs +2 -2
  39. package/esm2022/src/lib/models/sole/sole-invoice.mjs +1 -1
  40. package/esm2022/src/lib/models/transaction/transaction.mjs +1 -19
  41. package/esm2022/src/lib/models/vehicle/vehicle-claim.mjs +1 -1
  42. package/esm2022/src/lib/pipes/app-currency.pipe.mjs +3 -3
  43. package/esm2022/src/lib/pipes/safe-url.pipe.mjs +4 -4
  44. package/esm2022/src/lib/services/account-setup/account-setup.service.mjs +4 -4
  45. package/esm2022/src/lib/services/asset/assets.service.mjs +5 -5
  46. package/esm2022/src/lib/services/bank/bank-account-calculation.service.mjs +3 -3
  47. package/esm2022/src/lib/services/data.service.mjs +3 -3
  48. package/esm2022/src/lib/services/event/event-dispatcher.service.mjs +3 -3
  49. package/esm2022/src/lib/services/event/sse.service.mjs +5 -5
  50. package/esm2022/src/lib/services/export/export-formatter.service.mjs +4 -4
  51. package/esm2022/src/lib/services/firm/current-firm-branch.service.mjs +3 -3
  52. package/esm2022/src/lib/services/header-title/header-title.service.mjs +4 -4
  53. package/esm2022/src/lib/services/http/address/address.service.mjs +5 -5
  54. package/esm2022/src/lib/services/http/bank/bank-account/bank-account.service.mjs +5 -5
  55. package/esm2022/src/lib/services/http/bank/bank-connection/bank-connection.service.mjs +5 -5
  56. package/esm2022/src/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +5 -5
  57. package/esm2022/src/lib/services/http/bank/bank.service.mjs +3 -3
  58. package/esm2022/src/lib/services/http/bank/basiq/basiq-token.service.mjs +3 -3
  59. package/esm2022/src/lib/services/http/bank/basiq/basiq.service.mjs +6 -6
  60. package/esm2022/src/lib/services/http/budget/budget.service.mjs +3 -3
  61. package/esm2022/src/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +3 -3
  62. package/esm2022/src/lib/services/http/chart-accounts/chart-accounts.service.mjs +3 -3
  63. package/esm2022/src/lib/services/http/chat/chat.service.mjs +5 -5
  64. package/esm2022/src/lib/services/http/chat/message-document.service.mjs +5 -5
  65. package/esm2022/src/lib/services/http/chat/message.service.mjs +5 -5
  66. package/esm2022/src/lib/services/http/client/annual-client-details.service.mjs +3 -3
  67. package/esm2022/src/lib/services/http/client/capital-loss/capital-loss.service.mjs +4 -4
  68. package/esm2022/src/lib/services/http/client/client-coupon.service.mjs +3 -3
  69. package/esm2022/src/lib/services/http/client/occupation/occupation.service.mjs +5 -5
  70. package/esm2022/src/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +3 -3
  71. package/esm2022/src/lib/services/http/depreciation/depreciation.service.mjs +5 -5
  72. package/esm2022/src/lib/services/http/document/document-folder/document-folder.service.mjs +3 -3
  73. package/esm2022/src/lib/services/http/document/document.service.mjs +3 -3
  74. package/esm2022/src/lib/services/http/facebook/facebook.service.mjs +6 -6
  75. package/esm2022/src/lib/services/http/file/file.service.mjs +3 -3
  76. package/esm2022/src/lib/services/http/firm/client-invite/client-invite.service.mjs +5 -5
  77. package/esm2022/src/lib/services/http/firm/client-movement/client-movement.service.mjs +5 -5
  78. package/esm2022/src/lib/services/http/firm/employee/employee.service.mjs +3 -3
  79. package/esm2022/src/lib/services/http/firm/employee-invite/employee-invite.service.mjs +3 -3
  80. package/esm2022/src/lib/services/http/firm/firm-branch/firm-branch.service.mjs +4 -4
  81. package/esm2022/src/lib/services/http/firm/firm.service.mjs +5 -5
  82. package/esm2022/src/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +5 -5
  83. package/esm2022/src/lib/services/http/google/google.service.mjs +5 -5
  84. package/esm2022/src/lib/services/http/holding/holding-import/holding-import.service.mjs +4 -4
  85. package/esm2022/src/lib/services/http/holding/holding-sale.service.mjs +3 -3
  86. package/esm2022/src/lib/services/http/holding/holding-type.service.mjs +3 -3
  87. package/esm2022/src/lib/services/http/holding/holding.service.mjs +5 -5
  88. package/esm2022/src/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +5 -5
  89. package/esm2022/src/lib/services/http/income-source/income-source.service.mjs +5 -5
  90. package/esm2022/src/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +5 -5
  91. package/esm2022/src/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +5 -5
  92. package/esm2022/src/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +5 -5
  93. package/esm2022/src/lib/services/http/loan/loan.service.mjs +5 -5
  94. package/esm2022/src/lib/services/http/pdf/pdf.service.mjs +5 -5
  95. package/esm2022/src/lib/services/http/property/borrowing-report/borrowing-report.service.mjs +3 -3
  96. package/esm2022/src/lib/services/http/property/property-category/property-category.service.mjs +3 -3
  97. package/esm2022/src/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +3 -3
  98. package/esm2022/src/lib/services/http/property/property-document/property-document.service.mjs +3 -3
  99. package/esm2022/src/lib/services/http/property/property-sale/property-sale.service.mjs +3 -3
  100. package/esm2022/src/lib/services/http/property/property-share/property-share.service.mjs +5 -5
  101. package/esm2022/src/lib/services/http/property/property-valuation/property-valuation.service.mjs +3 -3
  102. package/esm2022/src/lib/services/http/property/property.service.mjs +5 -5
  103. package/esm2022/src/lib/services/http/rest/rest-old.service.mjs +5 -5
  104. package/esm2022/src/lib/services/http/rest/rest.service.mjs +5 -5
  105. package/esm2022/src/lib/services/http/service-notification/service-notification.service.mjs +5 -5
  106. package/esm2022/src/lib/services/http/setup-item/setup-item.service.mjs +3 -3
  107. package/esm2022/src/lib/services/http/sole/bas-report/bas-report.service.mjs +3 -3
  108. package/esm2022/src/lib/services/http/sole/sole-business/sole-business.service.mjs +3 -3
  109. package/esm2022/src/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +3 -3
  110. package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +3 -3
  111. package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +5 -5
  112. package/esm2022/src/lib/services/http/sole/sole-contact/sole-contact.service.mjs +3 -3
  113. package/esm2022/src/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +5 -5
  114. package/esm2022/src/lib/services/http/sole/sole-details/sole-details.service.mjs +5 -5
  115. package/esm2022/src/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +5 -5
  116. package/esm2022/src/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +3 -3
  117. package/esm2022/src/lib/services/http/subscription/service-payment/service-payment.service.mjs +3 -3
  118. package/esm2022/src/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +5 -5
  119. package/esm2022/src/lib/services/http/subscription/service-price/service-price.service.mjs +3 -3
  120. package/esm2022/src/lib/services/http/subscription/service-product/service-product.service.mjs +3 -3
  121. package/esm2022/src/lib/services/http/subscription/service-subscription/subscription.service.mjs +5 -5
  122. package/esm2022/src/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +5 -5
  123. package/esm2022/src/lib/services/http/tax-review/tax-review.service.mjs +5 -5
  124. package/esm2022/src/lib/services/http/tax-summary/tax-summary.service.mjs +5 -5
  125. package/esm2022/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +3 -3
  126. package/esm2022/src/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +5 -5
  127. package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +6 -23
  128. package/esm2022/src/lib/services/http/user/financial-year/financial-year.service.mjs +5 -5
  129. package/esm2022/src/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +3 -3
  130. package/esm2022/src/lib/services/http/user/user-event-type/user-event-type.service.mjs +3 -3
  131. package/esm2022/src/lib/services/http/user/user.service.mjs +5 -5
  132. package/esm2022/src/lib/services/http/user/users-invite/users-invite.service.mjs +3 -3
  133. package/esm2022/src/lib/services/http/vehicle/vehicle-claim-details.service.mjs +5 -5
  134. package/esm2022/src/lib/services/http/vehicle/vehicle-claim.service.mjs +5 -5
  135. package/esm2022/src/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.mjs +3 -3
  136. package/esm2022/src/lib/services/http/vehicle/vehicle.service.mjs +4 -4
  137. package/esm2022/src/lib/services/http/youtube/youtube.service.mjs +6 -6
  138. package/esm2022/src/lib/services/intercom/intercom.service.mjs +5 -5
  139. package/esm2022/src/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +4 -4
  140. package/esm2022/src/lib/services/json/holding/holding-type-exchange.service.mjs +4 -4
  141. package/esm2022/src/lib/services/json/income-source/income-source-type.service.mjs +4 -4
  142. package/esm2022/src/lib/services/json/tax-exemption/tax-exemption.service.mjs +4 -4
  143. package/esm2022/src/lib/services/json/tax-return/tax-return-item.service.mjs +4 -4
  144. package/esm2022/src/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +3 -3
  145. package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +4 -4
  146. package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +3 -3
  147. package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +3 -3
  148. package/esm2022/src/lib/services/preloader/preloader.service.mjs +4 -4
  149. package/esm2022/src/lib/services/property/corelogic/corelogic.service.mjs +5 -5
  150. package/esm2022/src/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +5 -5
  151. package/esm2022/src/lib/services/property/property-calculation/property-calculation.service.mjs +3 -3
  152. package/esm2022/src/lib/services/report/property/property-transaction-report.service.mjs +4 -4
  153. package/esm2022/src/lib/services/toast/toast.service.mjs +3 -3
  154. package/esm2022/src/lib/services/user/user-switcher.service.mjs +3 -3
  155. package/esm2022/src/lib/services/xlsx/xlsx.service.mjs +3 -3
  156. package/esm2022/src/lib/validators/unique-email.validator.mjs +4 -4
  157. package/fesm2022/taxtank-core-common.mjs +26 -26
  158. package/fesm2022/taxtank-core.mjs +632 -701
  159. package/fesm2022/taxtank-core.mjs.map +1 -1
  160. package/package.json +1 -1
  161. package/src/lib/collections/bank-account.collection.d.ts +1 -21
  162. package/src/lib/collections/collection-dictionary.d.ts +1 -1
  163. package/src/lib/collections/collection.d.ts +3 -4
  164. package/src/lib/collections/depreciation.collection.d.ts +1 -1
  165. package/src/lib/collections/property/property.collection.d.ts +1 -1
  166. package/src/lib/db/Enums/bank/bank-account-type.enum.d.ts +1 -0
  167. package/src/lib/db/Models/bank/bank-account.d.ts +0 -1
  168. package/src/lib/db/Models/transaction/transaction-base.d.ts +0 -9
  169. package/src/lib/models/bank/bank-account.d.ts +1 -0
  170. package/src/lib/models/bank/type-loan.const.d.ts +0 -3
  171. package/src/lib/models/depreciation/depreciation.d.ts +3 -11
  172. package/src/lib/models/property/property.d.ts +0 -1
  173. package/src/lib/models/report/index.d.ts +2 -0
  174. package/src/lib/models/report/report.interface.d.ts +7 -0
  175. package/src/lib/models/report/reports.const.d.ts +3 -0
  176. package/src/lib/models/transaction/transaction.d.ts +1 -6
  177. package/src/lib/services/http/transaction/transaction.service.d.ts +0 -6
@@ -8,8 +8,8 @@ export class DepreciationCollection extends Collection {
8
8
  getSoleDepreciations() {
9
9
  return this.filter((depreciation) => depreciation.isSoleTank());
10
10
  }
11
- getNew() {
12
- return this.filter((depreciation) => depreciation.isNew());
11
+ getCurrentYearBuy() {
12
+ return this.filter(depreciation => depreciation.isCurrentYearBuy());
13
13
  }
14
14
  /**
15
15
  * Get total amount of all depreciations in the collection
@@ -18,7 +18,7 @@ export class DepreciationCollection extends Collection {
18
18
  return this.items.reduce((sum, depreciation) => sum + depreciation.amount, 0);
19
19
  }
20
20
  get claimAmount() {
21
- return this.items.reduce((sum, depreciation) => sum + depreciation.currentYearForecast.claimAmount, 0);
21
+ return this.sumBy('currentYearForecast.claimAmount');
22
22
  }
23
23
  getClaimedAmountByYear(year = +localStorage.getItem('financialYear')) {
24
24
  const closeBalance = this.items.reduce((sum, depreciation) => sum + depreciation.getCloseBalanceByYear(year), 0);
@@ -31,7 +31,7 @@ export class DepreciationCollection extends Collection {
31
31
  return this.items.reduce((sum, depreciation) => sum + depreciation.getCloseBalanceByYear(year), 0);
32
32
  }
33
33
  getCurrentYearForecastAmount() {
34
- return this.items.reduce((sum, depreciation) => sum + depreciation.currentYearForecast.amount, 0);
34
+ return this.sumBy('currentYearForecast.amount');
35
35
  }
36
36
  get closeBalance() {
37
37
  return this.sumBy('currentYearForecast.closeBalance');
@@ -82,19 +82,7 @@ export class DepreciationCollection extends Collection {
82
82
  return this.filter((depreciation) => depreciation.isVehicleDepreciation());
83
83
  }
84
84
  getByTankType(tankType) {
85
- return this.create(this.items.filter((depreciation) => {
86
- switch (tankType) {
87
- case TankTypeEnum.PROPERTY:
88
- return depreciation.isPropertyTank();
89
- case TankTypeEnum.WORK:
90
- return depreciation.isWorkTank();
91
- case TankTypeEnum.SOLE:
92
- return depreciation.isSoleTank();
93
- // case for other tank or some extra
94
- default:
95
- return false;
96
- }
97
- }));
85
+ return this.filterBy('tankType', tankType);
98
86
  }
99
87
  /**
100
88
  * Create TransactionCollection from depreciation items
@@ -113,4 +101,4 @@ export class DepreciationCollection extends Collection {
113
101
  : this.getVehicleDepreciations().filterBy('tankType', TankTypeEnum.WORK);
114
102
  }
115
103
  }
116
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwcmVjaWF0aW9uLmNvbGxlY3Rpb24uan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c2luZXNzLmlkXG4gICAgICA/IHRoaXMuZ2V0VmVoaWNsZURlcHJlY2lhdGlvbnMoKS5maWx0ZXJCeSgnYnVzaW5lc3MuaWQnLCB2ZWhpY2xlQ2xhaW0uYnVzaW5lc3MuaWQpXG4gICAgICAvLyB3b3JrIHRhbmsgbWF5IGhhdmUgb25seSBvbmUgdmVoaWNsZSBjbGFpbSwgc28gd2UgbmVlZCB0byBmaWx0ZXIgYnkgdGFuayB0eXBlXG4gICAgICA6IHRoaXMuZ2V0VmVoaWNsZURlcHJlY2lhdGlvbnMoKS5maWx0ZXJCeSgndGFua1R5cGUnLCBUYW5rVHlwZUVudW0uV09SSyk7XG4gIH1cbn1cbiJdfQ==
@@ -29,10 +29,14 @@ export class PropertyCollection extends Collection {
29
29
  return this.sumBy('growthPercent');
30
30
  }
31
31
  get marketValue() {
32
- return this.sumBy('marketValue');
32
+ return this.sumBy('valuation.marketValue');
33
33
  }
34
- get marketValueGrowth() {
35
- return (this.marketValue - this.purchasePrice) / this.purchasePrice;
34
+ get sharedMarketValue() {
35
+ let sharedMarketValue = 0;
36
+ this.items.forEach(property => {
37
+ sharedMarketValue += property.shareRatio * property.marketValue;
38
+ });
39
+ return sharedMarketValue;
36
40
  }
37
41
  /**
38
42
  * Get list of unique property categories from collection
@@ -103,11 +107,11 @@ export class PropertyCollection extends Collection {
103
107
  propertiesByCategory.set(categoryById.get(key), this.filterBy('id', movementsByCategory.get(key).map(movement => movement.property.id)));
104
108
  });
105
109
  if (allowEmpty) {
106
- categories.remove(...propertiesByCategory.keys()).toArray().forEach(category => {
110
+ categories.remove(Array.from(propertiesByCategory.keys())).toArray().forEach(category => {
107
111
  propertiesByCategory.set(category, new PropertyCollection());
108
112
  });
109
113
  }
110
114
  return propertiesByCategory;
111
115
  }
112
116
  }
113
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHkuY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiI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q3VycmVudCgpLmdyb3VwQnkoJ3Byb3BlcnR5Q2F0ZWdvcnkuaWQnKTtcblxuICAgIGNvbnN0IHByb3BlcnRpZXNCeUNhdGVnb3J5ID0gbmV3IE1hcDxQcm9wZXJ0eUNhdGVnb3J5LCBQcm9wZXJ0eUNvbGxlY3Rpb24+O1xuICAgIG1vdmVtZW50c0J5Q2F0ZWdvcnkua2V5cy5mb3JFYWNoKGtleSA9PiB7XG4gICAgICBwcm9wZXJ0aWVzQnlDYXRlZ29yeS5zZXQoXG4gICAgICAgIGNhdGVnb3J5QnlJZC5nZXQoa2V5KSxcbiAgICAgICAgdGhpcy5maWx0ZXJCeSgnaWQnLCBtb3ZlbWVudHNCeUNhdGVnb3J5LmdldChrZXkpLm1hcChtb3ZlbWVudCA9PiBtb3ZlbWVudC5wcm9wZXJ0eS5pZCkpXG4gICAgICApO1xuICAgIH0pO1xuXG4gICAgaWYgKGFsbG93RW1wdHkpIHtcbiAgICAgIGNhdGVnb3JpZXMucmVtb3ZlKEFycmF5LmZyb20ocHJvcGVydGllc0J5Q2F0ZWdvcnkua2V5cygpKSkudG9BcnJheSgpLmZvckVhY2goY2F0ZWdvcnkgPT4ge1xuICAgICAgICBwcm9wZXJ0aWVzQnlDYXRlZ29yeS5zZXQoY2F0ZWdvcnksIG5ldyBQcm9wZXJ0eUNvbGxlY3Rpb24oKSk7XG4gICAgICB9KTtcbiAgICB9XG5cbiAgICByZXR1cm4gcHJvcGVydGllc0J5Q2F0ZWdvcnk7XG4gIH1cbn1cbiJdfQ==
@@ -111,7 +111,7 @@ export class TransactionCollection extends ExportableCollection {
111
111
  * Get new collection of property transactions
112
112
  */
113
113
  getPropertyTransactions() {
114
- return new TransactionCollection(this.items.filter((transaction) => transaction.isPropertyTank()));
114
+ return this.filterBy('tankType', TankTypeEnum.PROPERTY);
115
115
  }
116
116
  getDebitTransactions() {
117
117
  return new TransactionCollection(this.items.filter((transaction) => transaction.isDebit()));
@@ -144,19 +144,7 @@ export class TransactionCollection extends ExportableCollection {
144
144
  * Get new transaction collection filtered by tank type
145
145
  */
146
146
  getByTankType(tankType) {
147
- return this.create(this.items.filter((transaction) => {
148
- switch (tankType) {
149
- case TankTypeEnum.PROPERTY:
150
- return transaction.isPropertyTank();
151
- case TankTypeEnum.WORK:
152
- return transaction.isWorkTank();
153
- case TankTypeEnum.SOLE:
154
- return transaction.isSoleTank();
155
- // Transaction may be not related to any tank type (personal)
156
- default:
157
- return false;
158
- }
159
- }));
147
+ return this.filterBy('tankType', tankType);
160
148
  }
161
149
  getExportHeader() {
162
150
  return ['Date', 'Description', 'Debit', 'Credit'];
@@ -240,4 +228,4 @@ export class TransactionCollection extends ExportableCollection {
240
228
  return this.filter(transaction => transaction.claimPercent > 0);
241
229
  }
242
230
  }
243
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9jb2xsZWN0aW9ucy90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi5jb2xsZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxVQUFVLEVBSVgsTUFBTSxjQUFjLENBQUM7QUFFdEIsT0FBTyxFQUE2QixxQkFBcUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ2xGLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUM3RCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUNoRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDakQsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQ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HRyYW5zYWN0aW9ucy5nZXRJbmNvbWVUcmFuc2FjdGlvbnMoKTtcblxuICAgIHJldHVybiBpbmNvbWVzLnN1bUJ5KCdjbGFpbUFtb3VudCcpICsgZXhwZW5zZXMuc3VtQnkoJ2NsYWltQW1vdW50Jyk7XG4gIH1cblxuICBnZXRUYXhhYmxlKCk6IHRoaXMge1xuICAgIHJldHVybiB0aGlzLmZpbHRlcih0cmFuc2FjdGlvbiA9PiB0cmFuc2FjdGlvbi5jbGFpbVBlcmNlbnQgPiAwKTtcbiAgfVxufVxuIl19
@@ -6,13 +6,13 @@ import * as i0 from "@angular/core";
6
6
  * https://angular.io/guide/creating-libraries
7
7
  */
8
8
  export class CoreModule {
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
10
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CoreModule, imports: [CommonModule,
9
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
10
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CoreModule, imports: [CommonModule,
11
11
  InterceptorsModule] }); }
12
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CoreModule, imports: [CommonModule,
12
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoreModule, imports: [CommonModule,
13
13
  InterceptorsModule] }); }
14
14
  }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CoreModule, decorators: [{
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoreModule, decorators: [{
16
16
  type: NgModule,
17
17
  args: [{
18
18
  declarations: [],
@@ -4,10 +4,10 @@ export var BankAccountTypeEnum;
4
4
  BankAccountTypeEnum[BankAccountTypeEnum["SAVINGS"] = 2] = "SAVINGS";
5
5
  BankAccountTypeEnum[BankAccountTypeEnum["CREDIT_CARD"] = 3] = "CREDIT_CARD";
6
6
  // @TODO Alex: should be removed by backend (TT-2107)
7
- // MORTGAGE = 4,
7
+ BankAccountTypeEnum[BankAccountTypeEnum["MORTGAGE"] = 4] = "MORTGAGE";
8
8
  BankAccountTypeEnum[BankAccountTypeEnum["LOAN"] = 5] = "LOAN";
9
9
  BankAccountTypeEnum[BankAccountTypeEnum["INVESTMENT"] = 6] = "INVESTMENT";
10
10
  BankAccountTypeEnum[BankAccountTypeEnum["TERM_DEPOSIT"] = 7] = "TERM_DEPOSIT";
11
11
  BankAccountTypeEnum[BankAccountTypeEnum["OFFSET"] = 10] = "OFFSET";
12
12
  })(BankAccountTypeEnum || (BankAccountTypeEnum = {}));
13
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LXR5cGUuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9FbnVtcy9iYW5rL2JhbmstYWNjb3VudC10eXBlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksbUJBVVg7QUFWRCxXQUFZLG1CQUFtQjtJQUM3QiwyRUFBZSxDQUFBO0lBQ2YsbUVBQVcsQ0FBQTtJQUNYLDJFQUFlLENBQUE7SUFDZixxREFBcUQ7SUFDckQsZ0JBQWdCO0lBQ2hCLDZEQUFRLENBQUE7SUFDUix5RUFBYyxDQUFBO0lBQ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VudW0gQmFua0FjY291bnRUeXBlRW51bSB7XG4gIFRSQU5TQUNUSU9OID0gMSxcbiAgU0FWSU5HUyA9IDIsXG4gIENSRURJVF9DQVJEID0gMyxcbiAgLy8gQFRPRE8gQWxleDogc2hvdWxkIGJlIHJlbW92ZWQgYnkgYmFja2VuZCAoVFQtMjEwNylcbiAgTU9SVEdBR0UgPSA0LFxuICBMT0FOID0gNSxcbiAgSU5WRVNUTUVOVCA9IDYsXG4gIFRFUk1fREVQT1NJVCA9IDcsXG4gIE9GRlNFVCA9IDEwLFxufVxuIl19
@@ -7,4 +7,4 @@ export class BankAccount extends ObservableModel {
7
7
  __decorate([
8
8
  Type(() => Number)
9
9
  ], BankAccount.prototype, "currentBalance", void 0);
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2RiL01vZGVscy9iYW5rL2JhbmstYWNjb3VudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBT0EsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3RELE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUV6QyxNQUFNLE9BQU8sV0FBWSxTQUFRLGVBQWU7YUFDdkMsY0FBUyxHQUFHLGFBQWEsQ0FBQzs7QUFTakM7SUFEQyxJQUFJLENBQUMsR0FBRyxFQUFFLENBQUMsTUFBTSxDQUFDO21EQUNLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFua0FjY291bnRTdGF0dXNFbnVtLCBCYW5rQWNjb3VudFR5cGVFbnVtIH0gZnJvbSAnLi4vLi4vRW51bXMnO1xuaW1wb3J0IHsgQmFua0Nvbm5lY3Rpb24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dXJyZW5jeT86IHN0cmluZztcbiAgbWlncmF0ZUZyb20/OiBEYXRlO1xuICBtaWdyYXRlVG8/OiBEYXRlO1xuICBsYXN0VHJhbnNhY3Rpb25EYXRlPzogRGF0ZTtcbiAgYmFsYW5jZUluaXREYXRlPzogRGF0ZTtcbiAgZGVsZXRlZEF0PzogRGF0ZTtcbiAgY3JlYXRlZEF0PzogRGF0ZTtcbiAgdXBkYXRlZEF0PzogRGF0ZTtcbiAgYmFua0Nvbm5lY3Rpb24/OiBCYW5rQ29ubmVjdGlvbjtcbiAgYmFua0FjY291bnRQcm9wZXJ0aWVzPzogQmFua0FjY291bnRQcm9wZXJ0eVtdO1xuICBidXNpbmVzc0FsbG9jYXRpb25zPzogU29sZUJ1c2luZXNzQWxsb2NhdGlvbltdO1xuICBiYW5rVHJhbnNhY3Rpb25zPzogQmFua1RyYW5zYWN0aW9uW107XG4gIGJhbGFuY2VzPzogQmFua0FjY291bnRCYWxhbmNlW107XG4gIGxvYW4/OiBMb2FuO1xufVxuIl19
@@ -29,57 +29,23 @@ export class TransactionBase extends ObservableModel {
29
29
  /**
30
30
  * @TODO remove when AllocateForm is refactored and not merging with Transaction class which cause the issue
31
31
  */
32
- set tankType(tankType) {
33
- }
34
- /**
35
- * Check if current tank is Property
36
- */
32
+ set tankType(tankType) { }
37
33
  isPropertyTank() {
38
- // chart accounts may be empty for new instances
39
- if (this.chartAccounts) {
40
- return CHART_ACCOUNTS_CATEGORIES.property.includes(this.chartAccounts.category);
41
- }
42
- return !!this.property;
34
+ return CHART_ACCOUNTS_CATEGORIES.property.includes(this.chartAccounts?.category);
43
35
  }
44
- /**
45
- * Check if current tank is Work
46
- */
47
36
  isWorkTank() {
48
- // chart accounts may be empty for new instances
49
- if (this.chartAccounts) {
50
- return CHART_ACCOUNTS_CATEGORIES.work.includes(this.chartAccounts?.category);
51
- }
52
- return !this.isPropertyTank() && !this.isSoleTank();
37
+ return CHART_ACCOUNTS_CATEGORIES.work.includes(this.chartAccounts?.category);
53
38
  }
54
- /**
55
- * Check if current tank is Sole
56
- */
57
39
  isSoleTank() {
58
- // chart accounts may be empty for new instances
59
- if (this.chartAccounts) {
60
- return CHART_ACCOUNTS_CATEGORIES.sole.includes(this.chartAccounts?.category);
61
- }
62
- return !!this.business;
40
+ return CHART_ACCOUNTS_CATEGORIES.sole.includes(this.chartAccounts?.category);
63
41
  }
64
42
  isHoldingTank() {
65
- // chart accounts may be empty for new instances
66
- if (this.chartAccounts) {
67
- return CHART_ACCOUNTS_CATEGORIES.holding.includes(this.chartAccounts?.category);
68
- }
69
- // @TODO Alex we need another way to distinguish work/holding
70
- return !this.isPropertyTank() && !this.isSoleTank();
43
+ return CHART_ACCOUNTS_CATEGORIES.holding.includes(this.chartAccounts?.category);
71
44
  }
72
45
  isOtherTank() {
73
- // chart accounts may be empty for new instances
74
- if (!this.chartAccounts) {
75
- return false;
76
- }
77
46
  return CHART_ACCOUNTS_CATEGORIES.other.includes(this.chartAccounts?.category);
78
47
  }
79
48
  isPersonalTank() {
80
- if (!this.chartAccounts) {
81
- return false;
82
- }
83
49
  return CHART_ACCOUNTS_CATEGORIES.personal.includes(this.chartAccounts?.category);
84
50
  }
85
51
  get amountWithGst() {
@@ -119,4 +85,4 @@ __decorate([
119
85
  __decorate([
120
86
  Exclude()
121
87
  ], TransactionBase.prototype, "gstClaimAmount", null);
122
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tYmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9Nb2RlbHMvdHJhbnNhY3Rpb24vdHJhbnNhY3Rpb24tYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsT0FBTyxFQUFFLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxhQUFhL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xlYW4ge1xuICAgIHJldHVybiBDSEFSVF9BQ0NPVU5UU19DQVRFR09SSUVTLnBlcnNvbmFsLmluY2x1ZGVzKHRoaXMuY2hhcnRBY2NvdW50cz8uY2F0ZWdvcnkpO1xuICB9XG5cbiAgQEV4Y2x1ZGUoKVxuICBnZXQgYW1vdW50V2l0aEdzdCgpOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLmlzR1NUID8gdGhpcy5hbW91bnQgKiBDaGFydEFjY291bnRzLkdTVENvZWZmaWNpZW50IDogdGhpcy5hbW91bnQ7XG4gIH1cblxuICBARXhjbHVkZSgpXG4gIGdldCBnc3RBbW91bnQoKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5hbW91bnRXaXRoR3N0IC0gdGhpcy5hbW91bnQ7XG4gIH1cblxuICBARXhjbHVkZSgpXG4gIGdldCBnc3RDbGFpbUFtb3VudCgpOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLmdzdEFtb3VudCAqIHRoaXMuY2xhaW1SYXRpbztcbiAgfVxuXG4gIC8qKlxuICAgKiBiYXNlIGdyb3NzQW1vdW50LCBleHRlbmRzIGluIGNoaWxkIGNsYXNzZXNcbiAgICovXG4gIGdldCBncm9zc0Ftb3VudCgpOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLmFtb3VudCArIHRoaXMuZ3N0QW1vdW50O1xuICB9XG5cbiAgZ2V0IGdyb3NzQ2xhaW1BbW91bnQoKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5ncm9zc0Ftb3VudCAqIHRoaXMuY2xhaW1SYXRpbztcbiAgfVxufVxuIl19
@@ -113,4 +113,4 @@ export class AbstractForm extends FormGroup {
113
113
  return this.get(name).value !== this.initialValue[name];
114
114
  }
115
115
  }
116
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3QuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi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