taxtank-core 0.33.45 → 0.33.47

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. package/esm2022/src/lib/collections/chart-accounts/chart-accounts-value.collection.mjs +20 -0
  2. package/esm2022/src/lib/collections/chart-accounts/index.mjs +2 -0
  3. package/esm2022/src/lib/collections/chart-accounts.collection.mjs +2 -2
  4. package/esm2022/src/lib/collections/collection.mjs +2 -2
  5. package/esm2022/src/lib/collections/index.mjs +2 -1
  6. package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +3 -3
  7. package/esm2022/src/lib/db/Enums/{allocation-rule-condition-comparison-operator.enum.mjs → bank/allocation-rule/allocation-rule-condition-comparison-operator.enum.mjs} +1 -1
  8. package/esm2022/src/lib/db/Enums/{allocation-rule-condition-field.enum.mjs → bank/allocation-rule/allocation-rule-condition-field.enum.mjs} +1 -1
  9. package/esm2022/src/lib/db/Enums/{allocation-rule-condition-operator.enum.mjs → bank/allocation-rule/allocation-rule-condition-operator.enum.mjs} +1 -1
  10. package/esm2022/src/lib/db/Enums/bank/allocation-rule/allocation-rule-type.enum.mjs +7 -0
  11. package/esm2022/src/lib/db/Enums/bank/allocation-rule/index.mjs +5 -0
  12. package/esm2022/src/lib/db/Enums/bank/index.mjs +2 -1
  13. package/esm2022/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.mjs +39 -0
  14. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.mjs +20 -66
  15. package/esm2022/src/lib/db/Enums/chart-accounts/home-office-chart-accounts.enum.mjs +18 -0
  16. package/esm2022/src/lib/db/Enums/chart-accounts/index.mjs +3 -3
  17. package/esm2022/src/lib/db/Enums/home-office/home-office-claim-method.enum.mjs +7 -0
  18. package/esm2022/src/lib/db/Enums/home-office/index.mjs +2 -0
  19. package/esm2022/src/lib/db/Enums/index.mjs +2 -6
  20. package/esm2022/src/lib/db/Models/bank/bank-transaction.mjs +2 -2
  21. package/esm2022/src/lib/db/Models/depreciation/depreciation.mjs +1 -2
  22. package/esm2022/src/lib/db/Models/sole/sole-business.mjs +2 -1
  23. package/esm2022/src/lib/db/Models/sole/sole-details.mjs +2 -1
  24. package/esm2022/src/lib/db/Models/user/user.mjs +1 -1
  25. package/esm2022/src/lib/db/Models/vehicle/vehicle-claim.mjs +2 -1
  26. package/esm2022/src/lib/forms/abstract.form.mjs +34 -2
  27. package/esm2022/src/lib/forms/address/address.form.mjs +1 -1
  28. package/esm2022/src/lib/forms/firm/employee-invite.form.mjs +1 -1
  29. package/esm2022/src/lib/forms/home-office/home-office-claim.form.mjs +47 -0
  30. package/esm2022/src/lib/forms/home-office/home-office-log.form.mjs +15 -0
  31. package/esm2022/src/lib/forms/home-office/index.mjs +3 -0
  32. package/esm2022/src/lib/forms/index.mjs +2 -1
  33. package/esm2022/src/lib/forms/transaction/allocation-rule-transaction.form.mjs +4 -2
  34. package/esm2022/src/lib/forms/transaction/allocation-rule.form.mjs +13 -13
  35. package/esm2022/src/lib/models/chart-accounts/chart-accounts.mjs +17 -11
  36. package/esm2022/src/lib/models/endpoint/endpoint.mjs +1 -1
  37. package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +4 -1
  38. package/esm2022/src/lib/models/home-office/home-office-claim.interface.mjs +2 -0
  39. package/esm2022/src/lib/models/home-office/home-office-claim.mjs +26 -0
  40. package/esm2022/src/lib/models/home-office/home-office-log.interface.mjs +2 -0
  41. package/esm2022/src/lib/models/home-office/home-office-log.mjs +14 -0
  42. package/esm2022/src/lib/models/home-office/index.mjs +5 -0
  43. package/esm2022/src/lib/models/index.mjs +2 -1
  44. package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.mjs +14 -14
  45. package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.mjs +18 -18
  46. package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.mjs +12 -12
  47. package/esm2022/src/lib/models/sole/sole-invoice-item.mjs +25 -2
  48. package/esm2022/src/lib/models/transaction/transaction.mjs +6 -3
  49. package/esm2022/src/lib/services/http/home-office/home-office-claim-messages.enum.mjs +8 -0
  50. package/esm2022/src/lib/services/http/home-office/home-office-claim.service.mjs +23 -0
  51. package/esm2022/src/lib/services/http/home-office/home-office-log-messages.enum.mjs +8 -0
  52. package/esm2022/src/lib/services/http/home-office/home-office-log.service.mjs +23 -0
  53. package/esm2022/src/lib/services/http/home-office/index.mjs +5 -0
  54. package/esm2022/src/lib/services/http/index.mjs +3 -1
  55. package/esm2022/src/lib/services/http/rest-messages.enum.mjs +7 -0
  56. package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +11 -7
  57. package/esm2022/src/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +4 -12
  58. package/fesm2022/taxtank-core.mjs +383 -175
  59. package/fesm2022/taxtank-core.mjs.map +1 -1
  60. package/package.json +1 -1
  61. package/src/lib/collections/chart-accounts/chart-accounts-value.collection.d.ts +12 -0
  62. package/src/lib/collections/chart-accounts/index.d.ts +1 -0
  63. package/src/lib/collections/collection.d.ts +1 -1
  64. package/src/lib/collections/index.d.ts +1 -0
  65. package/src/lib/db/Enums/bank/allocation-rule/index.d.ts +4 -0
  66. package/src/lib/db/Enums/bank/index.d.ts +1 -0
  67. package/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.d.ts +37 -0
  68. package/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts +20 -66
  69. package/src/lib/db/Enums/chart-accounts/home-office-chart-accounts.enum.d.ts +16 -0
  70. package/src/lib/db/Enums/chart-accounts/index.d.ts +2 -2
  71. package/src/lib/db/Enums/home-office/home-office-claim-method.enum.d.ts +5 -0
  72. package/src/lib/db/Enums/home-office/index.d.ts +1 -0
  73. package/src/lib/db/Enums/index.d.ts +1 -4
  74. package/src/lib/db/Models/depreciation/depreciation.d.ts +0 -1
  75. package/src/lib/db/Models/sole/sole-business.d.ts +1 -0
  76. package/src/lib/db/Models/sole/sole-details.d.ts +1 -0
  77. package/src/lib/db/Models/user/user.d.ts +1 -1
  78. package/src/lib/db/Models/vehicle/vehicle-claim.d.ts +1 -0
  79. package/src/lib/forms/abstract.form.d.ts +10 -0
  80. package/src/lib/forms/home-office/home-office-claim.form.d.ts +12 -0
  81. package/src/lib/forms/home-office/home-office-log.form.d.ts +5 -0
  82. package/src/lib/forms/home-office/index.d.ts +2 -0
  83. package/src/lib/forms/index.d.ts +1 -0
  84. package/src/lib/forms/transaction/allocation-rule.form.d.ts +5 -4
  85. package/src/lib/models/chart-accounts/chart-accounts.d.ts +3 -1
  86. package/src/lib/models/home-office/home-office-claim.d.ts +22 -0
  87. package/src/lib/models/home-office/home-office-claim.interface.d.ts +17 -0
  88. package/src/lib/models/home-office/home-office-log.d.ts +11 -0
  89. package/src/lib/models/home-office/home-office-log.interface.d.ts +9 -0
  90. package/src/lib/models/home-office/index.d.ts +4 -0
  91. package/src/lib/models/index.d.ts +1 -0
  92. package/src/lib/models/sole/sole-invoice-item.d.ts +2 -1
  93. package/src/lib/models/transaction/transaction.d.ts +1 -0
  94. package/src/lib/services/http/home-office/home-office-claim-messages.enum.d.ts +6 -0
  95. package/src/lib/services/http/home-office/home-office-claim.service.d.ts +12 -0
  96. package/src/lib/services/http/home-office/home-office-log-messages.enum.d.ts +6 -0
  97. package/src/lib/services/http/home-office/home-office-log.service.d.ts +12 -0
  98. package/src/lib/services/http/home-office/index.d.ts +4 -0
  99. package/src/lib/services/http/index.d.ts +2 -0
  100. package/src/lib/services/http/rest-messages.enum.d.ts +5 -0
  101. package/src/lib/services/http/transaction/transaction.service.d.ts +2 -1
  102. package/src/lib/services/json/chart-accounts/chart-accounts-value.service.d.ts +3 -7
  103. package/esm2022/src/lib/db/Enums/allocation-rule-type.enum.mjs +0 -7
  104. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-invoice.enum.mjs +0 -25
  105. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-unallocatable-list.enum.mjs +0 -6
  106. package/esm2022/src/lib/validators/address-corelogic.validator.mjs +0 -19
  107. package/src/lib/db/Enums/chart-accounts/chart-accounts-invoice.enum.d.ts +0 -23
  108. package/src/lib/db/Enums/chart-accounts/chart-accounts-unallocatable-list.enum.d.ts +0 -4
  109. package/src/lib/validators/address-corelogic.validator.d.ts +0 -6
  110. /package/src/lib/db/Enums/{allocation-rule-condition-comparison-operator.enum.d.ts → bank/allocation-rule/allocation-rule-condition-comparison-operator.enum.d.ts} +0 -0
  111. /package/src/lib/db/Enums/{allocation-rule-condition-field.enum.d.ts → bank/allocation-rule/allocation-rule-condition-field.enum.d.ts} +0 -0
  112. /package/src/lib/db/Enums/{allocation-rule-condition-operator.enum.d.ts → bank/allocation-rule/allocation-rule-condition-operator.enum.d.ts} +0 -0
  113. /package/src/lib/db/Enums/{allocation-rule-type.enum.d.ts → bank/allocation-rule/allocation-rule-type.enum.d.ts} +0 -0
@@ -1,24 +1,16 @@
1
1
  import { Injectable } from '@angular/core';
2
- import { Collection } from '../../../collections';
3
- import { ChartAccountsValue, FinancialYear } from '../../../models';
2
+ import { ChartAccountsValueCollection } from '../../../collections';
3
+ import { ChartAccountsValue } from '../../../models';
4
4
  import ChartAccountsValues from '../../../db/Json/chart-accounts/chart-accounts-value.json';
5
5
  import { DataService } from '../../data.service';
6
- import { ChartAccountsListEnum } from '../../../db/Enums';
7
6
  import * as i0 from "@angular/core";
8
7
  export class ChartAccountsValueService extends DataService {
9
8
  constructor() {
10
9
  super();
11
10
  this.modelClass = ChartAccountsValue;
12
- this.collectionClass = Collection;
11
+ this.collectionClass = ChartAccountsValueCollection;
13
12
  this.setCache(ChartAccountsValues);
14
13
  }
15
- /**
16
- * $ amount u can claim per 1km
17
- */
18
- getKmsRate(isSole) {
19
- const chartAccountsId = isSole ? ChartAccountsListEnum.KLMS_TRAVELLED : ChartAccountsListEnum.KLMS_TRAVELLED_FOR_WORK;
20
- return this.getCache().find((ca) => ca.chartAccounts.id === chartAccountsId && new FinancialYear().year === ca.financialYear).value;
21
- }
22
14
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChartAccountsValueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
23
15
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChartAccountsValueService, providedIn: 'root' }); }
24
16
  }
@@ -28,4 +20,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
28
20
  providedIn: 'root'
29
21
  }]
30
22
  }], ctorParameters: () => [] });
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnQtYWNjb3VudHMtdmFsdWUuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9zZXJ2aWNlcy9qc29uL2NoYXJ0LWFjY291bnRzL2NoYXJ0LWFjY291bnRzLXZhbHVlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUzQyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDbEQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLGFBQWEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3BFLE9BQU8sbUJBQW1CLE1BQU0sMkRBQTJELENBQUM7QUFDNUYsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ2pELE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLG1CQUFtQixDQUFDOztBQUsxRCxNQUFNLE9BQU8seUJBQTBCLFNBQVEsV0FBdUY7SUFJcEk7UUF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