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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.33.5",
3
+ "version": "0.33.7",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.0.0",
@@ -1,5 +1,4 @@
1
1
  import { Collection } from './collection';
2
- import { BankAccountTypeEnum } from '../db/Enums';
3
2
  import { TankTypeEnum } from '../db/Enums/tank-type.enum';
4
3
  import { BankAccount, BankAccountProperty, Property } from '../models';
5
4
  import { CollectionDictionary } from './collection-dictionary';
@@ -8,14 +7,6 @@ import { LoanCollection } from './loan';
8
7
  * Collection of bank accounts.
9
8
  */
10
9
  export declare class BankAccountCollection extends Collection<BankAccount> {
11
- /**
12
- * get list of bank accounts with passed types
13
- */
14
- getByType(types: BankAccountTypeEnum | BankAccountTypeEnum[], isExclude?: boolean): BankAccount[];
15
- /**
16
- * get amount of current loans
17
- */
18
- getCurrentLoanAmount(): number;
19
10
  /**
20
11
  * get collection filtered by property id
21
12
  */
@@ -30,23 +21,12 @@ export declare class BankAccountCollection extends Collection<BankAccount> {
30
21
  * get collection of active bank accounts
31
22
  */
32
23
  getActive(): BankAccountCollection;
33
- /**
34
- * Get collection of loan bank accounts
35
- */
36
24
  getLoanAccounts(): BankAccountCollection;
25
+ getDebitAccounts(): BankAccountCollection;
37
26
  get loans(): LoanCollection;
38
- getSavingsAccounts(): BankAccountCollection;
39
27
  getOpeningBalance(): number;
40
28
  get currentBalance(): number;
41
29
  get bankShortNames(): string;
42
- /**
43
- * Get Collection of bank accounts with property tank type
44
- */
45
- getPropertyBankAccounts(): BankAccountCollection;
46
- /**
47
- * Get Collection of bank accounts with work tank type
48
- */
49
- getWorkBankAccounts(): BankAccountCollection;
50
30
  /**
51
31
  * Get Collection of bank accounts by tank type
52
32
  */
@@ -4,7 +4,7 @@ import { AbstractModel } from '../db/Models';
4
4
  * @TODO refactor with Map
5
5
  * List of collections grouped by passed property
6
6
  */
7
- export declare class CollectionDictionary<Collection extends BaseCollection<AbstractModel>> {
7
+ export declare class CollectionDictionary<Collection extends BaseCollection<object>> {
8
8
  /**
9
9
  * List of grouped collections
10
10
  */
@@ -1,10 +1,9 @@
1
1
  import { CollectionDictionary } from './collection-dictionary';
2
- import { AbstractModel } from '../db/Models';
3
2
  import { Dictionary, FinancialYear } from '../models';
4
3
  /**
5
4
  * Base collection class. Contains common properties and methods for all collections
6
5
  */
7
- export declare class Collection<Model extends AbstractModel> implements Iterable<Model> {
6
+ export declare class Collection<Model extends object> implements Iterable<Model> {
8
7
  items: Model[];
9
8
  /**
10
9
  * index of current item, used to iterate over the collection
@@ -47,13 +46,13 @@ export declare class Collection<Model extends AbstractModel> implements Iterable
47
46
  * @TODO performance check this.create performance and why we do it instead of changing collection
48
47
  */
49
48
  unshift(...items: Model[]): this;
50
- remove(...items: Model[]): this;
49
+ remove(items: Model[], path?: string): this;
51
50
  /**
52
51
  * @TODO it's filter, not remove
53
52
  */
54
53
  removeBy(path: string, values: any): this;
55
54
  replaceBy(path: string, value: any, item: Model): this;
56
- diff(items: Model[]): this;
55
+ diff(items: Model[], path?: string): this;
57
56
  minBy(path: string): Model;
58
57
  maxBy(path: string): Model;
59
58
  /**
@@ -7,7 +7,7 @@ import { ChartAccountsCategoryEnum } from '../db/Enums';
7
7
  import { VehicleClaim } from '../models';
8
8
  export declare class DepreciationCollection extends Collection<Depreciation> {
9
9
  getSoleDepreciations(): this;
10
- getNew(): this;
10
+ getCurrentYearBuy(): this;
11
11
  /**
12
12
  * Get total amount of all depreciations in the collection
13
13
  */
@@ -20,7 +20,7 @@ export declare class PropertyCollection extends Collection<Property> {
20
20
  get purchasePrice(): number;
21
21
  get growthPercent(): number;
22
22
  get marketValue(): number;
23
- get marketValueGrowth(): number;
23
+ get sharedMarketValue(): number;
24
24
  /**
25
25
  * Get list of unique property categories from collection
26
26
  */
@@ -2,6 +2,7 @@ export declare enum BankAccountTypeEnum {
2
2
  TRANSACTION = 1,
3
3
  SAVINGS = 2,
4
4
  CREDIT_CARD = 3,
5
+ MORTGAGE = 4,
5
6
  LOAN = 5,
6
7
  INVESTMENT = 6,
7
8
  TERM_DEPOSIT = 7,
@@ -16,7 +16,6 @@ export declare class BankAccount extends ObservableModel {
16
16
  accountNumber?: string;
17
17
  currentBalance?: number;
18
18
  currency?: string;
19
- isManual?: boolean;
20
19
  migrateFrom?: Date;
21
20
  migrateTo?: Date;
22
21
  lastTransactionDate?: Date;
@@ -25,17 +25,8 @@ export declare abstract class TransactionBase extends ObservableModel {
25
25
  * @TODO remove when AllocateForm is refactored and not merging with Transaction class which cause the issue
26
26
  */
27
27
  set tankType(tankType: TankTypeEnum);
28
- /**
29
- * Check if current tank is Property
30
- */
31
28
  isPropertyTank(): boolean;
32
- /**
33
- * Check if current tank is Work
34
- */
35
29
  isWorkTank(): boolean;
36
- /**
37
- * Check if current tank is Sole
38
- */
39
30
  isSoleTank(): boolean;
40
31
  isHoldingTank(): boolean;
41
32
  isOtherTank(): boolean;
@@ -92,4 +92,5 @@ export declare class BankAccount extends BankAccountBase {
92
92
  * Loan is paid if it has no unallocated transactions and the bank balance is $0.
93
93
  */
94
94
  isLoanPaid(taxTankBalance: number): boolean;
95
+ isManual(): boolean;
95
96
  }
@@ -1,5 +1,2 @@
1
1
  import { BankAccountTypeEnum } from '../../db/Enums';
2
- /**
3
- * @TODO credit card has nothing to do with loan
4
- */
5
2
  export declare const TYPE_LOAN: BankAccountTypeEnum[];
@@ -10,8 +10,8 @@ import { Expense } from '../../interfaces';
10
10
  * @TODO Alex: clarify grouping rules and refactor
11
11
  */
12
12
  export declare class Depreciation extends DepreciationBase implements Expense {
13
- static WRITTEN_OFF_THRESHOLD: number;
14
- static LOW_VALUE_POOL_THRESHOLD: number;
13
+ static writtenOffThreshold: number;
14
+ static lowValuePoolThreshold: number;
15
15
  purchaseDate: Date;
16
16
  date: Date;
17
17
  lowValuePoolDate: Date;
@@ -22,9 +22,6 @@ export declare class Depreciation extends DepreciationBase implements Expense {
22
22
  chartAccounts: ChartAccounts;
23
23
  bankTransaction: BankTransaction;
24
24
  type: DepreciationTypeEnum;
25
- /**
26
- * @TODO remove after ? signs removed from db models
27
- */
28
25
  amount: number;
29
26
  isCapital(): boolean;
30
27
  isBorrowingExpense(): boolean;
@@ -41,10 +38,6 @@ export declare class Depreciation extends DepreciationBase implements Expense {
41
38
  * Check if depreciation chart accounts heading related to vehicles category
42
39
  */
43
40
  isVehicleDepreciation(): boolean;
44
- /**
45
- * Get depreciation purchase date
46
- */
47
- getDate(): Date;
48
41
  /**
49
42
  * @TODO Vik: Research a problem with depreciations without current year forecast
50
43
  */
@@ -52,7 +45,6 @@ export declare class Depreciation extends DepreciationBase implements Expense {
52
45
  getForecastByYear(year: number): DepreciationForecast;
53
46
  getClaimAmountByYear(year: number): number;
54
47
  getCloseBalanceByYear(year: number): number;
55
- isBuildingAtCost(): boolean;
56
48
  /**
57
49
  * Create a new transaction from current depreciation
58
50
  */
@@ -66,5 +58,5 @@ export declare class Depreciation extends DepreciationBase implements Expense {
66
58
  /**
67
59
  * assets purchased in the current financial year
68
60
  */
69
- isNew(): boolean;
61
+ isCurrentYearBuy(): boolean;
70
62
  }
@@ -49,7 +49,6 @@ export declare class Property extends PropertyBase {
49
49
  get forecastedRentalReturn(): number;
50
50
  get forecastedTaxPosition(): number;
51
51
  get forecastedCashPosition(): number;
52
- get marketValueGrowth(): number;
53
52
  get myShare(): PropertyShare;
54
53
  get claimPercent(): number;
55
54
  get claimCoefficient(): number;
@@ -3,3 +3,5 @@ export * from './my-tax';
3
3
  export * from './property';
4
4
  export * from './sole';
5
5
  export * from './vehicle-expense/vehicle-expense';
6
+ export * from './report.interface';
7
+ export * from './reports.const';
@@ -0,0 +1,7 @@
1
+ import { UserRolesEnum } from 'taxtank-core/common';
2
+ export interface IReport {
3
+ title: string;
4
+ description: string;
5
+ route: string;
6
+ roles: UserRolesEnum[];
7
+ }
@@ -0,0 +1,3 @@
1
+ import { IReport } from './report.interface';
2
+ import { Collection } from '../../collections';
3
+ export declare const REPORTS: Collection<IReport>;
@@ -1,5 +1,5 @@
1
1
  import { Transaction as TransactionBase } from '../../db/Models/transaction/transaction';
2
- import { ChartAccountsCategoryEnum, ChartAccountsMetaFieldListEnum } from '../../db/Enums';
2
+ import { ChartAccountsMetaFieldListEnum } from '../../db/Enums';
3
3
  import { TransactionOperationEnum } from '../../db/Enums/transaction-operation.enum';
4
4
  import { Property } from '../property';
5
5
  import { ChartAccounts } from '../chart-accounts';
@@ -43,11 +43,6 @@ export declare class Transaction extends TransactionBase implements Expense {
43
43
  isExpense(): boolean;
44
44
  isPersonal(): boolean;
45
45
  isInterest(): boolean;
46
- get chartAccountsCategories(): ChartAccountsCategoryEnum[];
47
- /**
48
- * Get transaction date
49
- */
50
- getDate(): Date;
51
46
  /**
52
47
  * Check if transaction type is vehicle
53
48
  */
@@ -69,12 +69,6 @@ export declare class TransactionService extends RestService<TransactionBase, Tra
69
69
  * @param model
70
70
  */
71
71
  delete(model: Transaction): Observable<void>;
72
- /**
73
- * @TODO Alex wrong place for this logic, move to model
74
- * calculate gross income amount based on transaction amount and taxes (fees)
75
- * @param transaction Transaction instance for calculation
76
- */
77
- calculateGrossAmount(transaction: Transaction): number;
78
72
  /**
79
73
  * Listen to EventDispatcherService event related to Depreciation changing
80
74
  */