taxtank-core 0.33.46 → 0.33.48

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) 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/home-office/home-office-claim.collection.mjs +7 -0
  6. package/esm2022/src/lib/collections/home-office/index.mjs +2 -0
  7. package/esm2022/src/lib/collections/index.mjs +3 -1
  8. package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +3 -3
  9. 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
  10. package/esm2022/src/lib/db/Enums/{allocation-rule-condition-field.enum.mjs → bank/allocation-rule/allocation-rule-condition-field.enum.mjs} +1 -1
  11. package/esm2022/src/lib/db/Enums/{allocation-rule-condition-operator.enum.mjs → bank/allocation-rule/allocation-rule-condition-operator.enum.mjs} +1 -1
  12. package/esm2022/src/lib/db/Enums/bank/allocation-rule/allocation-rule-type.enum.mjs +7 -0
  13. package/esm2022/src/lib/db/Enums/bank/allocation-rule/index.mjs +5 -0
  14. package/esm2022/src/lib/db/Enums/bank/index.mjs +2 -1
  15. package/esm2022/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.mjs +48 -0
  16. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.mjs +25 -66
  17. package/esm2022/src/lib/db/Enums/chart-accounts/index.mjs +2 -3
  18. package/esm2022/src/lib/db/Enums/home-office/home-office-claim-method.enum.mjs +7 -0
  19. package/esm2022/src/lib/db/Enums/home-office/index.mjs +2 -0
  20. package/esm2022/src/lib/db/Enums/index.mjs +2 -6
  21. package/esm2022/src/lib/db/Models/bank/bank-transaction.mjs +2 -2
  22. package/esm2022/src/lib/db/Models/depreciation/depreciation.mjs +1 -2
  23. package/esm2022/src/lib/db/Models/sole/sole-business.mjs +2 -1
  24. package/esm2022/src/lib/db/Models/sole/sole-details.mjs +2 -1
  25. package/esm2022/src/lib/db/Models/user/user.mjs +1 -1
  26. package/esm2022/src/lib/db/Models/vehicle/vehicle-claim.mjs +2 -1
  27. package/esm2022/src/lib/forms/abstract.form.mjs +36 -4
  28. package/esm2022/src/lib/forms/address/address.form.mjs +1 -1
  29. package/esm2022/src/lib/forms/home-office/home-office-calculator.form.mjs +25 -0
  30. package/esm2022/src/lib/forms/home-office/home-office-claim.form.mjs +47 -0
  31. package/esm2022/src/lib/forms/home-office/home-office-log.form.mjs +15 -0
  32. package/esm2022/src/lib/forms/home-office/index.mjs +4 -0
  33. package/esm2022/src/lib/forms/index.mjs +2 -1
  34. package/esm2022/src/lib/forms/transaction/work/work-expense.form.mjs +15 -2
  35. package/esm2022/src/lib/models/bank/bank-transaction-chart-data.mjs +2 -3
  36. package/esm2022/src/lib/models/chart-accounts/chart-accounts.mjs +36 -11
  37. package/esm2022/src/lib/models/dictionary/dictionary.mjs +3 -2
  38. package/esm2022/src/lib/models/endpoint/endpoint.mjs +1 -1
  39. package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +8 -1
  40. package/esm2022/src/lib/models/home-office/home-office-claim.interface.mjs +2 -0
  41. package/esm2022/src/lib/models/home-office/home-office-claim.mjs +46 -0
  42. package/esm2022/src/lib/models/home-office/home-office-log.interface.mjs +2 -0
  43. package/esm2022/src/lib/models/home-office/home-office-log.mjs +14 -0
  44. package/esm2022/src/lib/models/home-office/index.mjs +5 -0
  45. package/esm2022/src/lib/models/index.mjs +2 -1
  46. package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.mjs +14 -14
  47. 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
  48. 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
  49. package/esm2022/src/lib/models/sole/sole-invoice-item.mjs +25 -2
  50. package/esm2022/src/lib/models/transaction/transaction.mjs +10 -4
  51. package/esm2022/src/lib/services/data.service.mjs +2 -2
  52. package/esm2022/src/lib/services/http/home-office/home-office-claim-messages.enum.mjs +8 -0
  53. package/esm2022/src/lib/services/http/home-office/home-office-claim.service.mjs +23 -0
  54. package/esm2022/src/lib/services/http/home-office/home-office-log-messages.enum.mjs +8 -0
  55. package/esm2022/src/lib/services/http/home-office/home-office-log.service.mjs +23 -0
  56. package/esm2022/src/lib/services/http/home-office/index.mjs +5 -0
  57. package/esm2022/src/lib/services/http/index.mjs +3 -1
  58. package/esm2022/src/lib/services/http/rest/rest-old.service.mjs +8 -1
  59. package/esm2022/src/lib/services/http/rest/rest.service.mjs +24 -5
  60. package/esm2022/src/lib/services/http/rest-messages.enum.mjs +7 -0
  61. package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +9 -5
  62. package/esm2022/src/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +4 -12
  63. package/esm2022/src/lib/validators/current-fin-year.validator.mjs +3 -2
  64. package/fesm2022/taxtank-core.mjs +485 -170
  65. package/fesm2022/taxtank-core.mjs.map +1 -1
  66. package/package.json +1 -1
  67. package/src/lib/collections/chart-accounts/chart-accounts-value.collection.d.ts +12 -0
  68. package/src/lib/collections/chart-accounts/index.d.ts +1 -0
  69. package/src/lib/collections/collection.d.ts +1 -1
  70. package/src/lib/collections/home-office/home-office-claim.collection.d.ts +5 -0
  71. package/src/lib/collections/home-office/index.d.ts +1 -0
  72. package/src/lib/collections/index.d.ts +2 -0
  73. package/src/lib/db/Enums/bank/allocation-rule/index.d.ts +4 -0
  74. package/src/lib/db/Enums/bank/index.d.ts +1 -0
  75. package/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.d.ts +46 -0
  76. package/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts +24 -65
  77. package/src/lib/db/Enums/chart-accounts/index.d.ts +1 -2
  78. package/src/lib/db/Enums/home-office/home-office-claim-method.enum.d.ts +5 -0
  79. package/src/lib/db/Enums/home-office/index.d.ts +1 -0
  80. package/src/lib/db/Enums/index.d.ts +1 -4
  81. package/src/lib/db/Models/depreciation/depreciation.d.ts +0 -1
  82. package/src/lib/db/Models/sole/sole-business.d.ts +1 -0
  83. package/src/lib/db/Models/sole/sole-details.d.ts +1 -0
  84. package/src/lib/db/Models/user/user.d.ts +1 -1
  85. package/src/lib/db/Models/vehicle/vehicle-claim.d.ts +1 -0
  86. package/src/lib/forms/abstract.form.d.ts +11 -1
  87. package/src/lib/forms/home-office/home-office-calculator.form.d.ts +8 -0
  88. package/src/lib/forms/home-office/home-office-claim.form.d.ts +12 -0
  89. package/src/lib/forms/home-office/home-office-log.form.d.ts +5 -0
  90. package/src/lib/forms/home-office/index.d.ts +3 -0
  91. package/src/lib/forms/index.d.ts +1 -0
  92. package/src/lib/forms/transaction/work/work-expense.form.d.ts +4 -2
  93. package/src/lib/models/bank/bank-transaction-chart-data.d.ts +2 -2
  94. package/src/lib/models/chart-accounts/chart-accounts.d.ts +5 -1
  95. package/src/lib/models/dictionary/dictionary.d.ts +2 -2
  96. package/src/lib/models/home-office/home-office-claim.d.ts +26 -0
  97. package/src/lib/models/home-office/home-office-claim.interface.d.ts +20 -0
  98. package/src/lib/models/home-office/home-office-log.d.ts +11 -0
  99. package/src/lib/models/home-office/home-office-log.interface.d.ts +9 -0
  100. package/src/lib/models/home-office/index.d.ts +4 -0
  101. package/src/lib/models/index.d.ts +1 -0
  102. package/src/lib/models/sole/sole-invoice-item.d.ts +2 -1
  103. package/src/lib/models/transaction/transaction.d.ts +3 -1
  104. package/src/lib/services/http/home-office/home-office-claim-messages.enum.d.ts +6 -0
  105. package/src/lib/services/http/home-office/home-office-claim.service.d.ts +12 -0
  106. package/src/lib/services/http/home-office/home-office-log-messages.enum.d.ts +6 -0
  107. package/src/lib/services/http/home-office/home-office-log.service.d.ts +12 -0
  108. package/src/lib/services/http/home-office/index.d.ts +4 -0
  109. package/src/lib/services/http/index.d.ts +2 -0
  110. package/src/lib/services/http/rest/rest-old.service.d.ts +4 -0
  111. package/src/lib/services/http/rest/rest.service.d.ts +1 -0
  112. package/src/lib/services/http/rest-messages.enum.d.ts +5 -0
  113. package/src/lib/services/http/transaction/transaction.service.d.ts +1 -0
  114. package/src/lib/services/json/chart-accounts/chart-accounts-value.service.d.ts +3 -7
  115. package/esm2022/src/lib/db/Enums/allocation-rule-type.enum.mjs +0 -7
  116. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-invoice.enum.mjs +0 -25
  117. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-unallocatable-list.enum.mjs +0 -6
  118. package/esm2022/src/lib/validators/address-corelogic.validator.mjs +0 -19
  119. package/src/lib/db/Enums/chart-accounts/chart-accounts-invoice.enum.d.ts +0 -23
  120. package/src/lib/db/Enums/chart-accounts/chart-accounts-unallocatable-list.enum.d.ts +0 -4
  121. package/src/lib/validators/address-corelogic.validator.d.ts +0 -6
  122. /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
  123. /package/src/lib/db/Enums/{allocation-rule-condition-field.enum.d.ts → bank/allocation-rule/allocation-rule-condition-field.enum.d.ts} +0 -0
  124. /package/src/lib/db/Enums/{allocation-rule-condition-operator.enum.d.ts → bank/allocation-rule/allocation-rule-condition-operator.enum.d.ts} +0 -0
  125. /package/src/lib/db/Enums/{allocation-rule-type.enum.d.ts → bank/allocation-rule/allocation-rule-type.enum.d.ts} +0 -0
@@ -0,0 +1,47 @@
1
+ import { FormControl, Validators } from '@angular/forms';
2
+ import { plainToClass } from 'class-transformer';
3
+ import { AbstractForm } from '../abstract.form';
4
+ import { HomeOfficeClaim } from '../../models';
5
+ import { HomeOfficeClaimMethodEnum } from '../../db/Enums';
6
+ export class HomeOfficeClaimForm extends AbstractForm {
7
+ constructor(claim = plainToClass(HomeOfficeClaim, {})) {
8
+ super({
9
+ method: new FormControl(claim.method, Validators.required),
10
+ hours: new FormControl(claim.hours, [Validators.required, Validators.min(0), Validators.max(5000)]),
11
+ electricityAndGas: new FormControl(claim.electricityAndGas, [Validators.required, Validators.min(0), Validators.max(100)]),
12
+ cleaning: new FormControl(claim.cleaning, [Validators.required, Validators.min(0), Validators.max(100)]),
13
+ internet: new FormControl(claim.internet, [Validators.required, Validators.min(0), Validators.max(100)]),
14
+ telephone: new FormControl(claim.telephone, [Validators.required, Validators.min(0), Validators.max(100)]),
15
+ mobile: new FormControl(claim.mobile, [Validators.required, Validators.min(0), Validators.max(100)]),
16
+ officePercent: new FormControl(claim.officePercent, [Validators.required, Validators.min(0), Validators.max(100)]),
17
+ }, claim);
18
+ this.listenEvents();
19
+ this.switchMethod(claim.method);
20
+ }
21
+ listenEvents() {
22
+ this.get('method').valueChanges.subscribe(method => {
23
+ this.switchMethod(method);
24
+ });
25
+ }
26
+ switchMethod(method) {
27
+ this.disable({}, [...this.occupancyControls, this.controls.hours]);
28
+ switch (method) {
29
+ case HomeOfficeClaimMethodEnum.FIXED:
30
+ this.controls.hours.enable();
31
+ break;
32
+ case HomeOfficeClaimMethodEnum.ACTUAL:
33
+ this.enable({}, this.actualControls);
34
+ break;
35
+ case HomeOfficeClaimMethodEnum.OCCUPANCY:
36
+ this.enable({}, this.occupancyControls);
37
+ break;
38
+ }
39
+ }
40
+ get actualControls() {
41
+ return [this.controls.electricityAndGas, this.controls.cleaning, this.controls.internet, this.controls.telephone, this.controls.mobile];
42
+ }
43
+ get occupancyControls() {
44
+ return [...this.actualControls, this.controls.officePercent];
45
+ }
46
+ }
47
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtY2xhaW0uZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy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1YWxDb250cm9scygpOiBBYnN0cmFjdENvbnRyb2xbXSB7XG4gICAgcmV0dXJuIFt0aGlzLmNvbnRyb2xzLmVsZWN0cmljaXR5QW5kR2FzLCB0aGlzLmNvbnRyb2xzLmNsZWFuaW5nLCB0aGlzLmNvbnRyb2xzLmludGVybmV0LCB0aGlzLmNvbnRyb2xzLnRlbGVwaG9uZSwgdGhpcy5jb250cm9scy5tb2JpbGVdO1xuICB9XG5cbiAgZ2V0IG9jY3VwYW5jeUNvbnRyb2xzKCk6IEFic3RyYWN0Q29udHJvbFtdIHtcbiAgICByZXR1cm4gWy4uLnRoaXMuYWN0dWFsQ29udHJvbHMsIHRoaXMuY29udHJvbHMub2ZmaWNlUGVyY2VudF07XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,15 @@
1
+ import { FormControl, Validators } from '@angular/forms';
2
+ import { plainToClass } from 'class-transformer';
3
+ import { AbstractForm } from '../abstract.form';
4
+ import { HomeOfficeLog } from '../../models';
5
+ import { currentFinYearValidator } from '../../validators';
6
+ export class HomeOfficeLogForm extends AbstractForm {
7
+ constructor(log = plainToClass(HomeOfficeLog, {})) {
8
+ super({
9
+ date: new FormControl(log.date, [Validators.required, currentFinYearValidator()]),
10
+ hours: new FormControl(log.hours, [Validators.required, Validators.min(0), Validators.max(5000)]),
11
+ description: new FormControl(log.description, [Validators.required]),
12
+ }, log);
13
+ }
14
+ }
15
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtbG9nLmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvaG9tZS1vZmZpY2UvaG9tZS1vZmZpY2UtbG9nLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxVQUFVL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LXRyYW5zZm9ybWVyJztcbmltcG9ydCB7IEFic3RyYWN0Rm9ybSB9IGZyb20gJy4uL2Fic3RyYWN0LmZvcm0nO1xuaW1wb3J0IHsgSG9tZU9mZmljZUxvZyB9IGZyb20gJy4uLy4uL21vZGVscyc7XG5pbXBvcnQgeyBjdXJyZW50RmluWWVhclZhbGlkYXRvciB9IGZyb20gJy4uLy4uL3ZhbGlkYXRvcnMnO1xuXG5leHBvcnQgY2xhc3MgSG9tZU9mZmljZUxvZ0Zvcm0gZXh0ZW5kcyBBYnN0cmFjdEZvcm08SG9tZU9mZmljZUxvZz4ge1xuICBjb25zdHJ1Y3Rvcihsb2cgPSBwbGFpblRvQ2xhc3MoSG9tZU9mZmljZUxvZywge30pKSB7XG4gICAgc3VwZXIoe1xuICAgICAgZGF0ZTogbmV3IEZvcm1Db250cm9sKGxvZy5kYXRlLCBbVmFsaWRhdG9ycy5yZXF1aXJlZCwgY3VycmVudEZpblllYXJWYWxpZGF0b3IoKV0pLFxuICAgICAgaG91cnM6IG5ldyBGb3JtQ29udHJvbChsb2cuaG91cnMsIFtWYWxpZGF0b3JzLnJlcXVpcmVkLCBWYWxpZGF0b3JzLm1pbigwKSwgVmFsaWRhdG9ycy5tYXgoNTAwMCldKSxcbiAgICAgIGRlc2NyaXB0aW9uOiBuZXcgRm9ybUNvbnRyb2wobG9nLmRlc2NyaXB0aW9uLCBbVmFsaWRhdG9ycy5yZXF1aXJlZF0pLFxuICAgIH0sIGxvZyk7XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,4 @@
1
+ export * from './home-office-claim.form';
2
+ export * from './home-office-log.form';
3
+ export * from './home-office-calculator.form';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvaG9tZS1vZmZpY2UvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2hvbWUtb2ZmaWNlLWNsYWltLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9ob21lLW9mZmljZS1sb2cuZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL2hvbWUtb2ZmaWNlLWNhbGN1bGF0b3IuZm9ybSc7XG4iXX0=
@@ -27,4 +27,5 @@ export * from './holding';
27
27
  export * from './chart-accounts';
28
28
  export * from './tax-review';
29
29
  export * from './chat';
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLG1CQUFtQixDQUFDO0FBRWxDLGNBQWMsV0FBVyxDQUFDO0FBRTFCLGNBQWMsVUFBVSxDQUFDO0FBRXpCLGNBQWMsbUJBQW1CLENBQUM7QUFFbEMsY0FBYyxRQUFRLENBQUM7QUFFdkIsY0FBYyxRQUFRLENBQUM7QUFFdkIsY0FBYyxrREFBa0QsQ0FBQztBQUNqRSxjQUFjLDhDQUE4QyxDQUFDO0FBQzdELGNBQWMsa0RBQWtELENBQUM7QUFDakUsY0FBYyxrREFBa0QsQ0FBQztBQUNqRSxjQUFjLCtDQUErQyxDQUFDO0FBQzlELGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMs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m9wZXJ0aWVzLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9iYW5rL2JhbmstYWNjb3VudC9iYW5rLWFjY291bnRzLWltcG9ydC5mb3JtJztcbmV4cG9ydCAqIGZyb20gJy4vY2xpZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbG9naW4vbG9naW4uZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL3Bob25lJztcbmV4cG9ydCAqIGZyb20gJy4vcmVnaXN0ZXIvcmVnaXN0ZXItY2xpZW50LmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9yZWdpc3Rlci9yZWdpc3Rlci1maXJtLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi91c2VyJztcblxuZXhwb3J0ICogZnJvbSAnLi9wcm9wZXJ0eSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vcmVwb3J0L215LXRheCc7XG5cbmV4cG9ydCAqIGZyb20gJy4vc29sZSc7XG5leHBvcnQgKiBmcm9tICcuL3ZlaGljbGUnO1xuXG5leHBvcnQgKiBmcm9tICcuL2Zvcm0tdmFsaWRhdGlvbnMuZW51bSc7XG5leHBvcnQgKiBmcm9tICcuL3RyYW5zYWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vZGVwcmVjaWF0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vaG9sZGluZyc7XG5leHBvcnQgKiBmcm9tICcuL2NoYXJ0LWFjY291bnRzJztcbmV4cG9ydCAqIGZyb20gJy4vdGF4LXJldmlldyc7XG5leHBvcnQgKiBmcm9tICcuL2NoYXQnO1xuIl19
30
+ export * from './home-office';
31
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5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leHBvcnQgKiBmcm9tICcuL3RyYW5zYWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vZGVwcmVjaWF0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vaG9sZGluZyc7XG5leHBvcnQgKiBmcm9tICcuL2NoYXJ0LWFjY291bnRzJztcbmV4cG9ydCAqIGZyb20gJy4vdGF4LXJldmlldyc7XG5leHBvcnQgKiBmcm9tICcuL2NoYXQnO1xuZXhwb3J0ICogZnJvbSAnLi9ob21lLW9mZmljZSc7XG4iXX0=
@@ -2,8 +2,9 @@ import { WorkTransactionForm } from './work-transaction.form';
2
2
  import { Collection } from '../../../collections';
3
3
  import { ChartAccountsMetaFieldListEnum } from '../../../db/Enums';
4
4
  export class WorkExpenseForm extends WorkTransactionForm {
5
- constructor(transaction, registeredForGst, allocations, controls = {}) {
5
+ constructor(transaction, registeredForGst, allocations, homeOfficeClaim, controls = {}) {
6
6
  super(transaction, registeredForGst, allocations, controls);
7
+ this.homeOfficeClaim = homeOfficeClaim;
7
8
  // amount set automatically for chartAccounts with hours meta field
8
9
  if (transaction.getMetaFieldValue(ChartAccountsMetaFieldListEnum.HOURS)) {
9
10
  this.get('amount').disable();
@@ -12,6 +13,7 @@ export class WorkExpenseForm extends WorkTransactionForm {
12
13
  }
13
14
  listenEvents() {
14
15
  this.watchChartAccountsMetaFields();
16
+ this.watchChartAccounts();
15
17
  }
16
18
  watchChartAccountsMetaFields() {
17
19
  this.get('metaFields').valueChanges.subscribe((metaFields) => {
@@ -29,5 +31,16 @@ export class WorkExpenseForm extends WorkTransactionForm {
29
31
  this.get('amountWithGST').setValue(amount);
30
32
  });
31
33
  }
34
+ watchChartAccounts() {
35
+ super.watchChartAccounts();
36
+ this.get('chartAccounts').valueChanges.subscribe((chartAccounts) => {
37
+ if (!chartAccounts.isHomeOfficeExpense() || !this.homeOfficeClaim) {
38
+ return;
39
+ }
40
+ const claims = this.homeOfficeClaim.getChartAccountsClaims();
41
+ this.get('claimPercent').patchValue(cla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RoaXMuZ2V0KCdhbW91bnQnKS5kaXNhYmxlKCk7XG4gICAgICB0aGlzLmdldCgnYW1vdW50Jykuc2V0VmFsdWUoYW1vdW50KTtcbiAgICAgIHRoaXMuZ2V0KCdhbW91bnRXaXRoR1NUJykucmVzZXQoKTtcbiAgICAgIHRoaXMuZ2V0KCdhbW91bnRXaXRoR1NUJykuZGlzYWJsZSgpO1xuICAgICAgdGhpcy5nZXQoJ2Ftb3VudFdpdGhHU1QnKS5zZXRWYWx1ZShhbW91bnQpO1xuICAgIH0pO1xuICB9XG5cbiAgd2F0Y2hDaGFydEFjY291bnRzKCkge1xuICAgIHN1cGVyLndhdGNoQ2hhcnRBY2NvdW50cygpO1xuXG4gICAgdGhpcy5nZXQoJ2NoYXJ0QWNjb3VudHMnKS52YWx1ZUNoYW5nZXMuc3Vic2NyaWJlKChjaGFydEFjY291bnRzOiBDaGFydEFjY291bnRzKSA9PiB7XG4gICAgICBpZiAoIWNoYXJ0QWNjb3VudHMuaXNIb21lT2ZmaWNlRXhwZW5zZSgpIHx8ICF0aGlzLmhvbWVPZmZpY2VDbGFpbSkge1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG5cbiAgICAgIGNvbnN0IGNsYWltcyA9IHRoaXMuaG9tZU9mZmljZUNsYWltLmdldENoYXJ0QWNjb3VudHNDbGFpbXMoKTtcblxuICAgICAgdGhpcy5nZXQoJ2NsYWltUGVyY2VudCcpLnBhdGNoVmFsdWUoY2xhaW1zLmdldChjaGFydEFjY291bnRzLmlkKSk7XG4gICAgICB0aGlzLmdldCgnY2xhaW1QZXJjZW50JykuZGlzYWJsZSgpO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
@@ -1,5 +1,4 @@
1
- import { MonthNumberEnum } from '../financial-year/month-number.enum';
2
- import { MonthNameShortEnum } from '../financial-year/month-name-short.enum';
1
+ import { MonthNameShortEnum, MonthNumberEnum } from '../financial-year';
3
2
  import cloneDeep from 'lodash/cloneDeep';
4
3
  /**
5
4
  * bank transactions collection UI class with frontend specific data
@@ -97,4 +96,4 @@ export class BankTransactionChartData {
97
96
  return filteredChartData;
98
97
  }
99
98
  }
100
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay10cmFuc2FjdGlvbi1jaGFydC1kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy9iYW5rL2JhbmstdHJhbnNhY3Rpb24tY2hhcnQtZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0scUNBQXFDLENBQUM7QUFDdEUsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0seUNBQXlDLENBQUM7QUFDN0UsT0FBTyxTQUFTLE1BQU0sa0JBQWtCLENBQUM7QUFFekM7O0dBRUc7QUFDSCxNQUFNLE9BQU8sd0JBQXdCO0lBR25DLFlBQ0UsZ0JBQW1DO1FBRW5DLElBQUksQ0FBQyxnQkFBZ0IsR0FBRyxnQkFBZ0IsQ0FBQztJQUMzQyxDQUFDO0lBRUQ7O09BRUc7SUFDSCx3QkFBd0IsQ0FBQyxNQUEwQjtRQUNqRCxNQUFNLFNBQVMsR0FBaUIsSUFBSSxDQUFDLDhCQUE4QixFQUFFLENBQUM7UUFFdEUsSUFBSSxDQUFDLE1BQU0sRUFBRTtZQUNYLE9BQU8sU0FBUyxDQUFDO1NBQ2xCO1FBRUQsT0FBTyxJQUFJLENBQUMsdUJBQXVCLENBQUMsTUFBTSxFQUFFLFNBQVMsQ0FBQyxDQUFDO0lBQ3pELENBQUM7SUFFRDs7T0FFRztJQUNILHVCQUF1QixDQUFDLE1BQTBCO1FBQ2hELE1BQU0sU0FBUyxHQUFpQixJQUFJLENBQUMsNkJBQTZCLEVBQUUsQ0FBQztRQUVyRSxJQUFJLENB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0RGF0YTogSUNoYXJ0RGF0YVtdID0gY2xvbmVEZWVwKGNoYXJ0RGF0YSk7XG4gICAgZmlsdGVyZWRDaGFydERhdGEuZm9yRWFjaCgoY2hhcnREYXRhSXRlbTogSUNoYXJ0RGF0YSkgPT4ge1xuICAgICAgY2hhcnREYXRhSXRlbS5kYXRhID0gY2hhcnREYXRhSXRlbS5kYXRhLmZpbHRlcigoc2VyaWU6IElDaGFydFNlcmllKSA9PiBtb250aHNOYW1lcy5pbmNsdWRlcyhzZXJpZS5sYWJlbCkpO1xuICAgIH0pO1xuICAgIHJldHVybiBmaWx0ZXJlZENoYXJ0RGF0YTtcbiAgfVxufVxuIl19
@@ -3,7 +3,7 @@ import { ChartAccounts as ChartAccountsBase } from '../../db/Models/chart-accoun
3
3
  import { Expose, Transform, Type } from 'class-transformer';
4
4
  import { ChartAccountsHeading } from './chart-accounts-heading';
5
5
  import { ChartAccountsMetaField } from './chart-accounts-meta-field';
6
- import { ChartAccountsAdjustmentIncludedListEnum, ChartAccountsCategoryEnum, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum } from '../../db/Enums';
6
+ import { BusinessChartAccountsEnum, ChartAccountsAdjustmentIncludedListEnum, ChartAccountsCategoryEnum, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, } from '../../db/Enums';
7
7
  import { CHART_ACCOUNTS_CATEGORIES } from './chart-accounts-categories.const';
8
8
  import { FinancialYear } from '../financial-year';
9
9
  import { ChartAccountsValue } from './chart-accounts-value';
@@ -17,6 +17,28 @@ export class ChartAccounts extends ChartAccountsBase {
17
17
  static { this.GSTRatio = 0.1; }
18
18
  static { this.GSTCoefficient = 1.1; }
19
19
  static { this.GSTPercent = 10; }
20
+ static { this.systemList = [
21
+ ChartAccountsListEnum.HOME_OFFICE_HOURS,
22
+ ChartAccountsListEnum.KMS_TRAVELLED,
23
+ BusinessChartAccountsEnum.HOME_OFFICE_HOURS,
24
+ BusinessChartAccountsEnum.KMS_TRAVELLED,
25
+ ]; }
26
+ static { this.homeOfficeList = [
27
+ ChartAccountsListEnum.MOBILE_PHONE,
28
+ ChartAccountsListEnum.INTERNET,
29
+ ChartAccountsListEnum.ELECTRICITY_AND_GAS,
30
+ ChartAccountsListEnum.TELEPHONE,
31
+ ChartAccountsListEnum.HOME_OFFICE_CLEANING,
32
+ BusinessChartAccountsEnum.ELECTRICITY_AND_GAS,
33
+ BusinessChartAccountsEnum.HOME_OFFICE_CLEANING,
34
+ BusinessChartAccountsEnum.INTERNET,
35
+ BusinessChartAccountsEnum.TELEPHONE,
36
+ BusinessChartAccountsEnum.MOBILE_PHONE,
37
+ BusinessChartAccountsEnum.HOME_OFFICE_RENT,
38
+ BusinessChartAccountsEnum.HOME_OFFICE_LOAN,
39
+ BusinessChartAccountsEnum.HOME_OFFICE_RATES,
40
+ BusinessChartAccountsEnum.HOME_OFFICE_OTHER,
41
+ ]; }
20
42
  /**
21
43
  * Return name as string
22
44
  */
@@ -27,16 +49,16 @@ export class ChartAccounts extends ChartAccountsBase {
27
49
  * Check if chart accounts id is related for 'Kms travelled for work' category
28
50
  */
29
51
  isKmsForWork() {
30
- return this.id === ChartAccountsListEnum.KLMS_TRAVELLED_FOR_WORK;
52
+ return this.id === ChartAccountsListEnum.KMS_TRAVELLED;
31
53
  }
32
54
  /**
33
55
  * Check if chart accounts id is related for 'Kms travelled for sole' category
34
56
  */
35
57
  isKmsForSole() {
36
- return this.id === ChartAccountsListEnum.KLMS_TRAVELLED;
58
+ return this.id === BusinessChartAccountsEnum.KMS_TRAVELLED;
37
59
  }
38
60
  isKms() {
39
- return [ChartAccountsListEnum.KLMS_TRAVELLED_FOR_WORK, ChartAccountsListEnum.KLMS_TRAVELLED].includes(this.id);
61
+ return [ChartAccountsListEnum.KMS_TRAVELLED, BusinessChartAccountsEnum.KMS_TRAVELLED].includes(this.id);
40
62
  }
41
63
  /**
42
64
  * special type used for just pre-paying tax to the ATO, uses on tax summary
@@ -54,7 +76,7 @@ export class ChartAccounts extends ChartAccountsBase {
54
76
  * Check if chart accounts id is related for 'Motor Vehicles' category
55
77
  */
56
78
  isVehicles() {
57
- return [ChartAccountsListEnum.WORK_VEHICLES, ChartAccountsListEnum.SOLE_VEHICLES].includes(this.id);
79
+ return [ChartAccountsListEnum.VEHICLES, BusinessChartAccountsEnum.VEHICLES].includes(this.id);
58
80
  }
59
81
  /**
60
82
  * Check if chart accounts id is related for 'Interest Earned' category
@@ -143,10 +165,10 @@ export class ChartAccounts extends ChartAccountsBase {
143
165
  return this.isVehicleLoanInterest() || this.isVehicleLoanPrinciple();
144
166
  }
145
167
  isVehicleLoanPrinciple() {
146
- return [ChartAccountsListEnum.VEHICLE_LOAN_PRINCIPAL, ChartAccountsListEnum.SOLE_VEHICLE_LOAN_PRINCIPAL].includes(this.id);
168
+ return [ChartAccountsListEnum.VEHICLE_LOAN_PRINCIPAL, BusinessChartAccountsEnum.VEHICLE_LOAN_PRINCIPAL].includes(this.id);
147
169
  }
148
170
  isVehicleLoanInterest() {
149
- return [ChartAccountsListEnum.VEHICLE_LOAN_INTEREST, ChartAccountsListEnum.SOLE_VEHICLE_LOAN_INTEREST].includes(this.id);
171
+ return [ChartAccountsListEnum.VEHICLE_LOAN_INTEREST, BusinessChartAccountsEnum.VEHICLE_LOAN_INTEREST].includes(this.id);
150
172
  }
151
173
  /**
152
174
  * Get chart accounts value for current financial year
@@ -163,11 +185,11 @@ export class ChartAccounts extends ChartAccountsBase {
163
185
  /**
164
186
  * no way to check how much used for work/sole, so we let user adjust it
165
187
  * except vehicle expense, which is equal to vehicleClaim.workUsage
166
- * except when taxablePercent=0, but not SOLE_ENTERTAINMENT
188
+ * except when taxablePercent=0, but not ENTERTAINMENT
167
189
  */
168
190
  isClaimPercentEditable() {
169
191
  return ((this.isWorkExpense() || this.isSoleExpense()) && !this.isVehicleExpense() && this.taxablePercent > 0)
170
- || this.id === ChartAccountsListEnum.SOLE_ENTERTAINMENT;
192
+ || this.id === BusinessChartAccountsEnum.ENTERTAINMENT;
171
193
  }
172
194
  /**
173
195
  * get label for transaction tax field depended on selected chart account.
@@ -221,8 +243,11 @@ export class ChartAccounts extends ChartAccountsBase {
221
243
  isDividends() {
222
244
  return this.id === ChartAccountsListEnum.DIVIDENDS;
223
245
  }
246
+ isHomeOfficeExpense() {
247
+ return ChartAccounts.homeOfficeList.includes(this.id);
248
+ }
224
249
  isHomeOfficeWorkHours() {
225
- return this.id === ChartAccountsListEnum.HOME_OFFICE_WORK_HOURS;
250
+ return this.id === ChartAccountsListEnum.HOME_OFFICE_HOURS;
226
251
  }
227
252
  /**
228
253
  * income requiring extra data like adjustments/payer/etc
@@ -246,4 +271,4 @@ __decorate([
246
271
  Transform(() => null, { toPlainOnly: true }),
247
272
  Expose()
248
273
  ], ChartAccounts.prototype, "values", void 0);
249
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnQtYWNjb3VudHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL2NoYXJ0LWFjY291bnRzL2NoYXJ0LWFjY291bnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsYUFBYSxJQUFJLGlCQUFpQixFQUFFLE1BQU0sK0NBQStDLENBQUM7QUFDbkcsT0FBTyxFQUFFLE1BQU0sRUFBRSxTQUFTLEVBQUUsSUFBSSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDNUQsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDaEUsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0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udW0uRElWSURFTkRTO1xyXG4gIH1cclxuXHJcbiAgaXNIb21lT2ZmaWNlRXhwZW5zZSgpOiBib29sZWFuIHtcclxuICAgIHJldHVybiBDaGFydEFjY291bnRzLmhvbWVPZmZpY2VMaXN0LmluY2x1ZGVzKHRoaXMuaWQpO1xyXG4gIH1cclxuXHJcbiAgaXNIb21lT2ZmaWNlV29ya0hvdXJzKCk6IGJvb2xlYW4ge1xyXG4gICAgcmV0dXJuIHRoaXMuaWQgPT09IENoYXJ0QWNjb3VudHNMaXN0RW51bS5IT01FX09GRklDRV9IT1VSUztcclxuICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIGluY29tZSByZXF1aXJpbmcgZXh0cmEgZGF0YSBsaWtlIGFkanVzdG1lbnRzL3BheWVyL2V0Y1xyXG4gICAqL1xyXG4gIGlzSW5jb21lV2l0aE1ldGEoKTogYm9vbGVhbiB7XHJcbiAgICBpZiAoIXRoaXMuaXNJbmNvbWUoKSB8fCB0aGlzLmlzU29sZSgpKSB7XHJcbiAgICAgIHJldHVybiBmYWxzZTtcclxuICAgIH1cclxuXHJcbiAgICByZXR1cm4gdGhpcy5pc1dvcmsoKSB8fCB0aGlzLmlzVGF4YWJsZSgpO1xyXG4gIH1cclxufVxyXG4iXX0=
@@ -5,7 +5,7 @@ import hasIn from 'lodash/hasIn';
5
5
  * List of objects grouped by passed property
6
6
  */
7
7
  export class Dictionary {
8
- constructor(items, path = 'id') {
8
+ constructor(items = [], path = 'id') {
9
9
  this.items = {};
10
10
  if (!items.length) {
11
11
  return;
@@ -14,6 +14,7 @@ export class Dictionary {
14
14
  }
15
15
  add(key, value) {
16
16
  this.items[key] = value;
17
+ return this;
17
18
  }
18
19
  get(key) {
19
20
  return this.items[key] !== undefined ? this.items[key] : null;
@@ -46,4 +47,4 @@ export class Dictionary {
46
47
  return this.keys.length;
47
48
  }
48
49
  }
49
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGljdGlvb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uICAgICAgdGhpcy5pdGVtc1trZXldID0gaXRlbTtcbiAgICB9KTtcbiAgfVxuXG4gIGdldCBrZXlzKCk6IHN0cmluZ1tdIHtcbiAgICByZXR1cm4gT2JqZWN0LmtleXModGhpcy5pdGVtcyk7XG4gIH1cblxuICBnZXQgbGVuZ3RoKCk6IG51bWJlciB7XG4gICAgcmV0dXJuIHRoaXMua2V5cy5sZW5ndGg7XG4gIH1cbn1cbiJdfQ==
@@ -20,4 +20,4 @@ export class Endpoint {
20
20
  return new RegExp(`^${this.method} \.\*${this.pattern}$`);
21
21
  }
22
22
  }
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5kcG9pbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL2VuZHBvaW50L2VuZHBvaW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUtBOztHQUVHO0FBQ0gsTUFBTSxPQUFPLFFBQVE7SUFJbkIsWUFDRSxNQUFxQixFQUNyQixPQUFlO1FBRWYsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7UUFDckIsSUFBSSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUM7SUFDekIsQ0FBQztJQUVEOzs7T0FHRztJQUNILElBQUksQ0FBQyxHQUFXO1FBQ2QsT0FBTyxJQUFJLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUMvQixDQUFDO0lBRUQ7O09BRUc7SUFDSCxJQUFJLE1BQU07UUFDUixPQUFPLElBQUksTUFBTSxDQUFDLElBQUksSUFBSSxDQUFDLE1BQU0sUUFBUSxJQUFJLENBQUMsT0FBTyxHQUFHLENBQUMsQ0FBQztJQUM1RCxDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyIvKip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