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
@@ -2,7 +2,7 @@ import { __decorate } from "tslib";
2
2
  import { Depreciation as DepreciationBase } from '../../db/Models/depreciation/depreciation';
3
3
  import { DepreciationTypeEnum } from '../../db/Enums/depreciation-type.enum';
4
4
  import { DepreciationCalculationEnum } from '../../db/Enums/depreciation-calculation.enum';
5
- import { ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum } from '../../db/Enums';
5
+ import { ChartAccountsHeadingVehicleListEnum } from '../../db/Enums';
6
6
  import { DepreciationCapitalProject } from './depreciation-capital-project';
7
7
  import { DepreciationForecast } from './depreciation-forecast';
8
8
  import { FinancialYear } from '../financial-year';
@@ -18,14 +18,10 @@ export class Depreciation extends DepreciationBase {
18
18
  super(...arguments);
19
19
  this.forecasts = [];
20
20
  this.type = DepreciationTypeEnum.PLANT_EQUIPMENT;
21
- /**
22
- * @TODO remove after ? signs removed from db models
23
- */
24
21
  this.amount = 0;
25
22
  }
26
- static { this.WRITTEN_OFF_THRESHOLD = 300; }
27
- static { this.LOW_VALUE_POOL_THRESHOLD = 1000; }
28
- // Type checking
23
+ static { this.writtenOffThreshold = 300; }
24
+ static { this.lowValuePoolThreshold = 1000; }
29
25
  isCapital() {
30
26
  return this.type === DepreciationTypeEnum.CAPITAL_WORKS;
31
27
  }
@@ -35,7 +31,6 @@ export class Depreciation extends DepreciationBase {
35
31
  isAsset() {
36
32
  return this.type === DepreciationTypeEnum.PLANT_EQUIPMENT;
37
33
  }
38
- // Calculation checking
39
34
  isSBPCalculation() {
40
35
  return this.calculation === DepreciationCalculationEnum.SBP;
41
36
  }
@@ -54,7 +49,7 @@ export class Depreciation extends DepreciationBase {
54
49
  && !this.isSBPCalculation()
55
50
  && this.isDiminishing()
56
51
  && !this.isWrittenOff()
57
- && this.currentYearForecast.closeBalance <= Depreciation.LOW_VALUE_POOL_THRESHOLD;
52
+ && this.currentYearForecast.closeBalance <= Depreciation.lowValuePoolThreshold;
58
53
  }
59
54
  isSBP() {
60
55
  return this.isAsset() && this.isSBPCalculation() && !this.isWrittenOff();
@@ -74,12 +69,6 @@ export class Depreciation extends DepreciationBase {
74
69
  isVehicleDepreciation() {
75
70
  return this.chartAccounts.heading?.id === ChartAccountsHeadingVehicleListEnum.DEPRECIATION_VEHICLES;
76
71
  }
77
- /**
78
- * Get depreciation purchase date
79
- */
80
- getDate() {
81
- return this.date;
82
- }
83
72
  /**
84
73
  * @TODO Vik: Research a problem with depreciations without current year forecast
85
74
  */
@@ -101,9 +90,6 @@ export class Depreciation extends DepreciationBase {
101
90
  getCloseBalanceByYear(year) {
102
91
  return this.getForecastByYear(year)?.closeBalance || 0;
103
92
  }
104
- isBuildingAtCost() {
105
- return this.chartAccounts.id === ChartAccountsListEnum.BUILDING_AT_COST;
106
- }
107
93
  /**
108
94
  * Create a new transaction from current depreciation
109
95
  */
@@ -124,7 +110,7 @@ export class Depreciation extends DepreciationBase {
124
110
  }
125
111
  get amountWithGst() {
126
112
  // gst applies only to new assets
127
- if (this.isNew()) {
113
+ if (this.isCurrentYearBuy()) {
128
114
  return super.amountWithGst;
129
115
  }
130
116
  return this.amount;
@@ -135,7 +121,7 @@ export class Depreciation extends DepreciationBase {
135
121
  /**
136
122
  * assets purchased in the current financial year
137
123
  */
138
- isNew() {
124
+ isCurrentYearBuy() {
139
125
  return new FinancialYear(this.date).year === new FinancialYear().year;
140
126
  }
141
127
  }
@@ -169,7 +155,7 @@ __decorate([
169
155
  forecast.closeBalance < 1000 &&
170
156
  obj.calculation === DepreciationCalculationEnum.DIMINISHING &&
171
157
  obj.type === DepreciationTypeEnum.PLANT_EQUIPMENT &&
172
- !(obj.amount > Depreciation.WRITTEN_OFF_THRESHOLD && obj.amount < Depreciation.LOW_VALUE_POOL_THRESHOLD) &&
158
+ !(obj.amount > Depreciation.writtenOffThreshold && obj.amount < Depreciation.lowValuePoolThreshold) &&
173
159
  !(obj.writeOffDate && new FinancialYear(new Date(obj.writeOffDate)).year === obj.financialYear);
174
160
  });
175
161
  return value;
@@ -187,4 +173,4 @@ __decorate([
187
173
  __decorate([
188
174
  Exclude()
189
175
  ], Depreciation.prototype, "gstClaimAmount", null);
190
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwcmVjaWF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi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JjZW50OiBjbGFpbVBlcmNlbnQsXG4gICAgICAgIHNoYXJlZENsYWltUGVyY2VudDogY2xhaW1QZXJjZW50LFxuICAgICAgfSlcbiAgICApO1xuICB9XG5cbiAgLyoqXG4gICAqIEBUT0RPIE1pY2hhZWw6IHJlbW92ZSBhbmQgY2hlY2sgZXZlcnl3aGVyZSBpbiByZXBvcnRzXG4gICAqL1xuICBnZXQgY2xhaW1BbW91bnQoKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5jdXJyZW50WWVhckZvcmVjYXN0Py5jbGFpbUFtb3VudCB8fCAwO1xuICB9XG5cbiAgQEV4Y2x1ZGUoKVxuICBnZXQgYW1vdW50V2l0aEdzdCgpOiBudW1iZXIge1xuICAgIC8vIGdzdCBhcHBsaWVzIG9ubHkgdG8gbmV3IGFzc2V0c1xuICAgIGlmICh0aGlzLmlzQ3VycmVudFllYXJCdXkoKSkge1xuICAgICAgcmV0dXJuIHN1cGVyLmFtb3VudFdpdGhHc3Q7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRoaXMuYW1vdW50O1xuICB9XG5cbiAgQEV4Y2x1ZGUoKVxuICBnZXQgZ3N0Q2xhaW1BbW91bnQoKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5nc3RBbW91bnQgKiB0aGlzLmN1cnJlbnRZZWFyRm9yZWNhc3Q/LmNsYWltUmF0ZTtcbiAgfVxuXG4gIC8qKlxuICAgKiBhc3NldHMgcHVyY2hhc2VkIGluIHRoZSBjdXJyZW50IGZpbmFuY2lhbCB5ZWFyXG4gICAqL1xuICBpc0N1cnJlbnRZZWFyQnV5KCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiBuZXcgRmluYW5jaWFsWWVhcih0aGlzLmRhdGUpLnllYXIgPT09IG5ldyBGaW5hbmNpYWxZZWFyKCkueWVhclxuICB9XG59XG4iXX0=
@@ -54,4 +54,4 @@ export class FinancialYear {
54
54
  return months;
55
55
  }
56
56
  }
57
- //# sourceMappingUR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uICB9XHJcbn1cclxuIl19
@@ -61,9 +61,6 @@ export class Property extends PropertyBase {
61
61
  get forecastedCashPosition() {
62
62
  return this.currentYearForecast?.cashPosition || 0;
63
63
  }
64
- get marketValueGrowth() {
65
- return (this.marketValue - this.purchasePrice) / this.marketValue;
66
- }
67
64
  get myShare() {
68
65
  return this.shares.find((share) => share.user.id === +localStorage.getItem('userId'));
69
66
  }
@@ -250,4 +247,4 @@ __decorate([
250
247
  __decorate([
251
248
  Exclude()
252
249
  ], Property.prototype, "documentFile", void 0);
253
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL3Byb3BlcnR5L3Byb3BlcnR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsUUFBUSxJQUFJLFlBQVksRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBQzdFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUNoRCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUMvRCxPQUFPLEVBQUUsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2xELE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDckMsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdkQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDekQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdkQsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLFNB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hib2FyZCtQcm9wZXJ0eVxuICAgKi9cbiAgZ2V0VGF4UG9zaXRpb24odHJhbnNhY3Rpb25zOiBUcmFuc2FjdGlvbkNvbGxlY3Rpb24sIGRlcHJlY2lhdGlvbnM6IERlcHJlY2lhdGlvbkNvbGxlY3Rpb24pOiBudW1iZXIge1xuICAgIHJldHVybiB0cmFuc2FjdGlvbnMuZ3Jvc3NDbGFpbUFtb3VudCAtIE1hdGguYWJzKGRlcHJlY2lhdGlvbnMuY2xhaW1BbW91bnQpO1xuICB9XG5cbiAgZ2V0IG1vbnRobHlJbmNvbWUoKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5jdXJyZW50WWVhckZvcmVjYXN0LmluY29tZSAvIDEyO1xuICB9XG5cbiAgZ2V0IG1vbnRobHlFeHBlbnNlKCk6IG51bWJlciB7XG4gICAgcmV0dXJuIHRoaXMuY3VycmVudFllYXJGb3JlY2FzdC5leHBlbnNlIC8gMTI7XG4gIH1cbn1cbiJdfQ==
@@ -3,4 +3,6 @@ export * from './my-tax';
3
3
  export * from './property';
4
4
  export * from './sole';
5
5
  export * from './vehicle-expense/vehicle-expense';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL3JlcG9ydC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsUUFBUSxDQUFDO0FBQ3ZCLGNBQWMsbUNBQW1DLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2RlcHJlY2lhdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL215LXRheCc7XG5leHBvcnQgKiBmcm9tICcuL3Byb3BlcnR5JztcbmV4cG9ydCAqIGZyb20gJy4vc29sZSc7XG5leHBvcnQgKiBmcm9tICcuL3ZlaGljbGUtZXhwZW5zZS92ZWhpY2xlLWV4cGVuc2UnO1xuIl19
6
+ export * from './report.interface';
7
+ export * from './reports.const';
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL3JlcG9ydC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsUUFBUSxDQUFDO0FBQ3ZCLGNBQWMsbUNBQW1DLENBQUM7QUFDbEQsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGlCQUFpQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9kZXByZWNpYXRpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9teS10YXgnO1xuZXhwb3J0ICogZnJvbSAnLi9wcm9wZXJ0eSc7XG5leHBvcnQgKiBmcm9tICcuL3NvbGUnO1xuZXhwb3J0ICogZnJvbSAnLi92ZWhpY2xlLWV4cGVuc2UvdmVoaWNsZS1leHBlbnNlJztcbmV4cG9ydCAqIGZyb20gJy4vcmVwb3J0LmludGVyZmFjZSc7XG5leHBvcnQgKiBmcm9tICcuL3JlcG9ydHMuY29uc3QnO1xuIl19
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0LmludGVyZmFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvcmVwb3J0L3JlcG9ydC5pbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFVzZXJSb2xlc0VudW0gfSBmcm9tICd0YXh0YW5rLWNvcmUvY29tbW9uJztcblxuZXhwb3J0IGludGVyZmFjZSBJUmVwb3J0IHtcbiAgdGl0bGU6IHN0cmluZztcbiAgZGVzY3JpcHRpb246IHN0cmluZztcbiAgcm91dGU6IHN0cmluZztcbiAgcm9sZXM6IFVzZXJSb2xlc0VudW1bXTtcbn1cbiJdfQ==
@@ -0,0 +1,73 @@
1
+ import { UserRolesEnum } from 'taxtank-core/common';
2
+ import { Collection } from '../../collections';
3
+ export const REPORTS = new Collection([
4
+ // @TODO TT-4385
5
+ // {
6
+ // title: 'Income & Expense Report',
7
+ // description: 'Income and expense report with prior year comparison and monthly view option. Filter by Tank, property, business or personal categories',
8
+ // route: './income-expense',
9
+ // roles: [UserRolesEnum.CLIENT],
10
+ // },
11
+ {
12
+ title: 'Transactions Report',
13
+ description: 'Detailed report of the transactions allocated to each category. Filter by tank, property, business or your own search criteria',
14
+ route: './transactions',
15
+ roles: [UserRolesEnum.CLIENT]
16
+ },
17
+ {
18
+ title: 'MyTax Report',
19
+ description: 'Coded to the ATO\'s MyTax report, our interactive report enable you to self lodge faster, easier and more accurately online without the stress',
20
+ route: './my-tax',
21
+ roles: [UserRolesEnum.CLIENT]
22
+ },
23
+ // @TODO TT-4386
24
+ {
25
+ title: 'Net Asset',
26
+ description: 'See your current net financial position, including a breakdown of net assets and liabilities across all tanks',
27
+ route: './net-assets',
28
+ roles: [UserRolesEnum.CLIENT]
29
+ },
30
+ {
31
+ title: 'Property Schedule',
32
+ description: 'Compliant property schedule detailing incomes, expenses and depreciation for each property and ownership percentage',
33
+ route: './property-transactions',
34
+ roles: [UserRolesEnum.PROPERTY_TANK]
35
+ },
36
+ {
37
+ title: 'Depreciation Report',
38
+ description: 'Register of building & improvements depreciation (capital works) and plant & equipment depreciation for each property',
39
+ route: './depreciation',
40
+ roles: [UserRolesEnum.WORK_TANK, UserRolesEnum.PROPERTY_TANK, UserRolesEnum.SOLE_TANK]
41
+ },
42
+ {
43
+ title: 'Low Value Pool Report',
44
+ description: 'Register of new assets valued between $301 and $1,000 and existing assets that fall below the $1,000 threshold',
45
+ route: './low-value-pool',
46
+ roles: [UserRolesEnum.WORK_TANK, UserRolesEnum.PROPERTY_TANK, UserRolesEnum.SOLE_TANK]
47
+ },
48
+ {
49
+ title: 'CGT Report',
50
+ description: 'Calculate net capital gains across all asset classes, including the application of losses and eligible concessions',
51
+ route: './cgt',
52
+ roles: [UserRolesEnum.PROPERTY_TANK, UserRolesEnum.HOLDING_TANK]
53
+ },
54
+ {
55
+ title: 'Motor Vehicle Report',
56
+ description: 'Displays work-related vehicle expenses based upon your logbook claim method or percentage',
57
+ route: './vehicle-expenses',
58
+ roles: [UserRolesEnum.WORK_TANK, UserRolesEnum.SOLE_TANK]
59
+ },
60
+ {
61
+ title: 'Business Schedule',
62
+ description: 'Compliant schedule detailing profit and loss for each primary and non-primary production business',
63
+ route: './business-schedule',
64
+ roles: [UserRolesEnum.SOLE_TANK]
65
+ },
66
+ {
67
+ title: 'BAS Report',
68
+ description: 'Summarises your GST obligations from applicable sales and purchases to enable accurate ATO lodgements',
69
+ route: './bas',
70
+ roles: [UserRolesEnum.SOLE_TANK]
71
+ },
72
+ ]);
73
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0cy5jb25zdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcm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dXG4gIH0sXG5dKTtcbiJdfQ==
@@ -133,7 +133,7 @@ export class ServiceSubscription extends ServiceSubscriptionBase {
133
133
  */
134
134
  applyPromoCode(promoCode) {
135
135
  this.promoCode = null;
136
- if (this.isAnnual() && !promoCode.isAnnualApplicable()) {
136
+ if (this.isAnnual() && !promoCode?.isAnnualApplicable()) {
137
137
  return false;
138
138
  }
139
139
  this.promoCode = promoCode;
@@ -158,4 +158,4 @@ __decorate([
158
158
  __decorate([
159
159
  Expose()
160
160
  ], ServiceSubscription.prototype, "promoCodeId", null);
161
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS1zdWJzY3JpcHRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL3NlcnZpY2Utc3Vic2NyaXB0aW9uL3NlcnZpY2Utc3Vic2NyaXB0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsbUJBQW1CLElBQUksdUJBQXVCLEVBQUUsTUFBTSxtREFBbUQsQ0FBQztBQUNuSCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUN0RSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDcEQsT0FBTyxFQUFFLE1BQU0sRUFBRSxJQUFJLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsNkJBQTZCLEVBQUUsTUFBTSw4REFBOEQsQ0FBQztBQUM3RyxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDbkQsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDL0QsT0FBTyxFQUFFLGdCQUFnQixFQ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GFuZCB0aGUgbnVtYmVyIG9mIHByb3BlcnRpZXMgdGhlIHVzZXIgaGFzXG4gICAqL1xuICBnZXRSZWNvbW1lbmRlZFByb3BlcnRpZXNRdHkocHJvcGVydHlJdGVtOiBTZXJ2aWNlU3Vic2NyaXB0aW9uSXRlbSwgcHJvcGVydGllc1F0eTogbnVtYmVyKTogbnVtYmVyIHtcbiAgICBjb25zdCBtaW46IG51bWJlciA9IHByb3BlcnR5SXRlbS5wcmljZS5wcm9kdWN0Lm1pblF0eTtcblxuICAgIHJldHVybiBNYXRoLm1heChtaW4sIHByb3BlcnRpZXNRdHkpO1xuICB9XG5cbiAgcHJvbW9Db2RlRW5kRGF0ZSgpOiBudW1iZXIge1xuICAgIHJldHVybiArbW9tZW50KHRoaXMuc3RhcnREYXRlKS5hZGQodGhpcy5wcm9tb0NvZGU/LmR1cmF0aW9uTW9udGhzLCAnbW9udGhzJyk7XG4gIH1cblxuICAvKipcbiAgICogYXBwbHkgcHJvbW9jb2RlIGlmIGFwcGxpY2FibGVcbiAgICovXG4gIGFwcGx5UHJvbW9Db2RlKHByb21vQ29kZTogU2VydmljZVByb21vQ29kZSk6IGJvb2xlYW4ge1xuICAgIHRoaXMucHJvbW9Db2RlID0gbnVsbDtcbiAgICBpZiAodGhpcy5pc0FubnVhbCgpICYmICFwcm9tb0NvZGUuaXNBbm51YWxBcHBsaWNhYmxlKCkpIHtcbiAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG5cbiAgICB0aGlzLnByb21vQ29kZSA9IHByb21vQ29kZTtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfVxufVxuIl19
161
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS1zdWJzY3JpcHRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL3NlcnZp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H1cblxuICAvKipcbiAgICogYXBwbHkgcHJvbW9jb2RlIGlmIGFwcGxpY2FibGVcbiAgICovXG4gIGFwcGx5UHJvbW9Db2RlKHByb21vQ29kZTogU2VydmljZVByb21vQ29kZSk6IGJvb2xlYW4ge1xuICAgIHRoaXMucHJvbW9Db2RlID0gbnVsbDtcbiAgICBpZiAodGhpcy5pc0FubnVhbCgpICYmICFwcm9tb0NvZGU/LmlzQW5udWFsQXBwbGljYWJsZSgpKSB7XG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuXG4gICAgdGhpcy5wcm9tb0NvZGUgPSBwcm9tb0NvZGU7XG4gICAgcmV0dXJuIHRydWU7XG4gIH1cbn1cbiJdfQ==
@@ -140,4 +140,4 @@ __decorate([
140
140
  __decorate([
141
141
  Type(() => BankAccount)
142
142
  ], SoleInvoice.prototype, "bankAccount", void 0);
143
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy9zb2xlL3NvbGUtaW52b2ljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsSUFBSSxlQUFlLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUNuRixPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQy9CLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdEQsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxJQUFJLEVBQUUsWUFBWSxFQUFFLE1B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