taxtank-core 0.33.47 → 0.33.50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/esm2022/src/lib/collections/home-office/home-office-claim.collection.mjs +7 -0
  2. package/esm2022/src/lib/collections/home-office/index.mjs +2 -0
  3. package/esm2022/src/lib/collections/index.mjs +2 -1
  4. package/esm2022/src/lib/collections/vehicle/best-vehicle-logbook.collection.mjs +6 -2
  5. package/esm2022/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.mjs +10 -1
  6. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.mjs +6 -1
  7. package/esm2022/src/lib/db/Enums/chart-accounts/index.mjs +1 -2
  8. package/esm2022/src/lib/forms/abstract.form.mjs +3 -3
  9. package/esm2022/src/lib/forms/home-office/home-office-calculator.form.mjs +29 -0
  10. package/esm2022/src/lib/forms/home-office/home-office-claim.form.mjs +4 -8
  11. package/esm2022/src/lib/forms/home-office/home-office-log.form.mjs +2 -2
  12. package/esm2022/src/lib/forms/home-office/index.mjs +2 -1
  13. package/esm2022/src/lib/forms/transaction/work/work-expense.form.mjs +15 -2
  14. package/esm2022/src/lib/models/bank/bank-transaction-chart-data.mjs +2 -3
  15. package/esm2022/src/lib/models/chart-accounts/chart-accounts.mjs +21 -2
  16. package/esm2022/src/lib/models/dictionary/dictionary.mjs +3 -2
  17. package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +5 -1
  18. package/esm2022/src/lib/models/home-office/home-office-claim.interface.mjs +1 -1
  19. package/esm2022/src/lib/models/home-office/home-office-claim.mjs +31 -11
  20. package/esm2022/src/lib/models/home-office/home-office-log.mjs +4 -3
  21. package/esm2022/src/lib/models/transaction/transaction.mjs +5 -2
  22. package/esm2022/src/lib/services/data.service.mjs +2 -2
  23. package/esm2022/src/lib/services/http/home-office/home-office-claim.service.mjs +4 -4
  24. package/esm2022/src/lib/services/http/home-office/home-office-log.service.mjs +3 -3
  25. package/esm2022/src/lib/services/http/rest/rest-old.service.mjs +8 -1
  26. package/esm2022/src/lib/services/http/rest/rest.service.mjs +24 -5
  27. package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +8 -2
  28. package/esm2022/src/lib/validators/current-fin-year.validator.mjs +3 -2
  29. package/fesm2022/taxtank-core.mjs +166 -47
  30. package/fesm2022/taxtank-core.mjs.map +1 -1
  31. package/package.json +1 -1
  32. package/src/lib/collections/home-office/home-office-claim.collection.d.ts +5 -0
  33. package/src/lib/collections/home-office/index.d.ts +1 -0
  34. package/src/lib/collections/index.d.ts +1 -0
  35. package/src/lib/collections/vehicle/best-vehicle-logbook.collection.d.ts +1 -0
  36. package/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.d.ts +10 -1
  37. package/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts +6 -1
  38. package/src/lib/db/Enums/chart-accounts/index.d.ts +0 -1
  39. package/src/lib/forms/abstract.form.d.ts +1 -1
  40. package/src/lib/forms/home-office/home-office-calculator.form.d.ts +8 -0
  41. package/src/lib/forms/home-office/home-office-log.form.d.ts +1 -1
  42. package/src/lib/forms/home-office/index.d.ts +1 -0
  43. package/src/lib/forms/transaction/work/work-expense.form.d.ts +4 -2
  44. package/src/lib/models/bank/bank-transaction-chart-data.d.ts +2 -2
  45. package/src/lib/models/chart-accounts/chart-accounts.d.ts +2 -0
  46. package/src/lib/models/dictionary/dictionary.d.ts +2 -2
  47. package/src/lib/models/home-office/home-office-claim.d.ts +9 -5
  48. package/src/lib/models/home-office/home-office-claim.interface.d.ts +7 -3
  49. package/src/lib/models/home-office/home-office-log.d.ts +3 -2
  50. package/src/lib/models/transaction/transaction.d.ts +2 -1
  51. package/src/lib/services/http/home-office/home-office-claim.service.d.ts +4 -4
  52. package/src/lib/services/http/home-office/home-office-log.service.d.ts +3 -3
  53. package/src/lib/services/http/rest/rest-old.service.d.ts +4 -0
  54. package/src/lib/services/http/rest/rest.service.d.ts +1 -0
  55. package/src/lib/services/http/transaction/transaction.service.d.ts +1 -0
  56. package/esm2022/src/lib/db/Enums/chart-accounts/home-office-chart-accounts.enum.mjs +0 -18
  57. package/src/lib/db/Enums/chart-accounts/home-office-chart-accounts.enum.d.ts +0 -16
@@ -0,0 +1,7 @@
1
+ import { Collection } from '../collection';
2
+ export class HomeOfficeClaimCollection extends Collection {
3
+ findByBusiness(business) {
4
+ return business ? this.findBy('business.id', business.id) : this.findBy('business', null);
5
+ }
6
+ }
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtY2xhaW0uY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9jb2xsZWN0aW9ucy9ob21lLW9mZmljZS9ob21lLW9mZmljZS1jbGFpbS5jb2xsZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsTUFBTSxPQUFPLHlCQUEwQixTQUFRLFVBQTJCO0lBQ3hFLGNBQWMsQ0FBQyxRQUF1QjtRQUNwQyxPQUFPLFFBQVEsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxhQUFhLEVBQUUsUUFBUSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsQ0FBQztJQUM1RixDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBIb21lT2ZmaWNlQ2xhaW0sIFNvbGVCdXNpbmVzcyB9IGZyb20gJy4uLy4uL21vZGVscyc7XG5pbXBvcnQgeyBDb2xsZWN0aW9uIH0gZnJvbSAnLi4vY29sbGVjdGlvbic7XG5cbmV4cG9ydCBjbGFzcyBIb21lT2ZmaWNlQ2xhaW1Db2xsZWN0aW9uIGV4dGVuZHMgQ29sbGVjdGlvbjxIb21lT2ZmaWNlQ2xhaW0+IHtcbiAgZmluZEJ5QnVzaW5lc3MoYnVzaW5lc3M/OiBTb2xlQnVzaW5lc3MpOiBIb21lT2ZmaWNlQ2xhaW0ge1xuICAgIHJldHVybiBidXNpbmVzcyA/IHRoaXMuZmluZEJ5KCdidXNpbmVzcy5pZCcsIGJ1c2luZXNzLmlkKSA6IHRoaXMuZmluZEJ5KCdidXNpbmVzcycsIG51bGwpO1xuICB9XG59XG4iXX0=
@@ -0,0 +1,2 @@
1
+ export * from './home-office-claim.collection';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvY29sbGVjdGlvbnMvaG9tZS1vZmZpY2UvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQ0FBZ0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaG9tZS1vZmZpY2UtY2xhaW0uY29sbGVjdGlvbic7XG4iXX0=
@@ -33,4 +33,5 @@ export * from './holding';
33
33
  export * from './asset-sale.collection';
34
34
  export * from './user/user.collection';
35
35
  export * from './chart-accounts';
36
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvY29sbGVjdGlvbnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsdUNBQXVDO0FBQ3ZDLGNBQWMsY0FBYyxDQUFDO0F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GVjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL2RlcHJlY2lhdGlvbi1mb3JlY2FzdC5jb2xsZWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vZGVwcmVjaWF0aW9uLmNvbGxlY3Rpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9maXJtJztcbmV4cG9ydCAqIGZyb20gJy4vZXhwb3J0YWJsZS5jb2xsZWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vaW5jb21lLXNvdXJjZSc7XG5leHBvcnQgKiBmcm9tICcuL3RheC1yZXZpZXcuY29sbGVjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL3VzZXItZXZlbnQtc2V0dGluZy5jb2xsZWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vdXNlci1ldmVudC10eXBlLWNvbGxlY3Rpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9ob2xkaW5nJztcbmV4cG9ydCAqIGZyb20gJy4vYXNzZXQtc2FsZS5jb2xsZWN0aW9uJztcblxuZXhwb3J0ICogZnJvbSAnLi91c2VyL3VzZXIuY29sbGVjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL2NoYXJ0LWFjY291bnRzJztcbiJdfQ==
36
+ export * from './home-office';
37
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvY29sbGVjdGlvbnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsdUNBQXVDO0FBQ3ZDLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMseUJBQXlCLENBQUM7QUFFeEMsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxVQ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20gJy4vZGVwcmVjaWF0aW9uLmNvbGxlY3Rpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9maXJtJztcbmV4cG9ydCAqIGZyb20gJy4vZXhwb3J0YWJsZS5jb2xsZWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vaW5jb21lLXNvdXJjZSc7XG5leHBvcnQgKiBmcm9tICcuL3RheC1yZXZpZXcuY29sbGVjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL3VzZXItZXZlbnQtc2V0dGluZy5jb2xsZWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vdXNlci1ldmVudC10eXBlLWNvbGxlY3Rpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9ob2xkaW5nJztcbmV4cG9ydCAqIGZyb20gJy4vYXNzZXQtc2FsZS5jb2xsZWN0aW9uJztcblxuZXhwb3J0ICogZnJvbSAnLi91c2VyL3VzZXIuY29sbGVjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL2NoYXJ0LWFjY291bnRzJztcbmV4cG9ydCAqIGZyb20gJy4vaG9tZS1vZmZpY2UnO1xuIl19
@@ -20,9 +20,10 @@ export class BestVehicleLogbookCollection extends VehicleLogbookCollection {
20
20
  }
21
21
  /**
22
22
  * Best period may be calculated only when user has logbooks minimum for VehicleLogbook.bestPeriodWeeks
23
+ * and has at least one work/business trip
23
24
  */
24
25
  static isBestPeriodExist(logbooks) {
25
- if (logbooks.length < 2) {
26
+ if (logbooks.length < 2 || !logbooks.getClaimable().length) {
26
27
  return false;
27
28
  }
28
29
  if (!(logbooks instanceof VehicleLogbookCollection)) {
@@ -33,6 +34,9 @@ export class BestVehicleLogbookCollection extends VehicleLogbookCollection {
33
34
  // get list of date ranges for each of passed logbook
34
35
  static getPeriods(logbooks) {
35
36
  const claimable = logbooks.getClaimable();
37
+ if (!claimable.length) {
38
+ return [];
39
+ }
36
40
  // get a list of date ranges that could potentially be the best
37
41
  const periods = claimable
38
42
  // skip logbooks whose range ends after the last logbook
@@ -87,4 +91,4 @@ export class BestVehicleLogbookCollection extends VehicleLogbookCollection {
87
91
  return collection;
88
92
  }
89
93
  }
90
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVzdC12ZWhpY2xlLWxvZ2Jvb2suY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9jb2xsZWN0aW9ucy92ZWhpY2xlL2Jlc3QtdmVoaWNsZS1sb2dib29rLmNvbGxlY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGFBQWEsRUFBa0IsTUFBTSxjQUFjLENBQUM7QUFDN0QsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDeEUsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUV6Qzs7O0dBR0c7QUFDSCxNQUFNLE9BQU8sNEJBQTZCLFNBQVEsd0JBQXdCO0lBQ3hFOzs7T0FHRzthQUNJLG1CQUFjLEdBQUcsRUFBRSxHQUFHLENBQUMsR0FBRyxFQUFFLEdBQUcsSUFBSSxHQUFHLElBQUksQ0FBQztJQU9sRDs7O09BR0c7SUFDSCxZQUFvQixRQUEwQjtRQUM1QyxLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7SUFDbEIsQ0FBQztJQUVEOztPQUVHO0lBQ0gsTUFBTSxDQUFDLGlCQUFpQixDQUFDLFFBQWtDO1FBQ3pELElBQUksUUFBUSxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQUU7WUFDdkIsT0FBTyxLQUFLLENBQUM7U0FDZDtRQUVELElBQUksQ0FBQyxDQUFDLFFBQVEsWUFBWSx3QkFBd0IsQ0FBQyxFQUFFO1lBQ25ELFFBQVEsR0FBRyxJQUFJLHd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pOiBCZXN0VmVoaWNsZUxvZ2Jvb2tDb2xsZWN0aW9uIHwgbnVsbCB7XG4gICAgaWYgKCF0aGlzLmlzQmVzdFBlcmlvZEV4aXN0KGxvZ2Jvb2tzKSkge1xuICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxuXG4gICAgY29uc3QgY29sbGVjdGlvbiA9IG5ldyBCZXN0VmVoaWNsZUxvZ2Jvb2tDb2xsZWN0aW9uKGxvZ2Jvb2tzLnRvQXJyYXkoKSk7XG4gICAgY29sbGVjdGlvbi5jYWxjdWxhdGVCZXN0UGVyaW9kKGxvZ2Jvb2tzKTtcblxuICAgIHJldHVybiBjb2xsZWN0aW9uO1xuICB9XG59XG4iXX0=
@@ -35,5 +35,14 @@ export var BusinessChartAccountsEnum;
35
35
  BusinessChartAccountsEnum[BusinessChartAccountsEnum["PAYG_INSTALLMENTS"] = 878] = "PAYG_INSTALLMENTS";
36
36
  BusinessChartAccountsEnum[BusinessChartAccountsEnum["INTEREST_EARNED"] = 879] = "INTEREST_EARNED";
37
37
  BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_HOURS"] = 888] = "HOME_OFFICE_HOURS";
38
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["ELECTRICITY_AND_GAS"] = 892] = "ELECTRICITY_AND_GAS";
39
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_CLEANING"] = 893] = "HOME_OFFICE_CLEANING";
40
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["INTERNET"] = 705] = "INTERNET";
41
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["TELEPHONE"] = 11860] = "TELEPHONE";
42
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["MOBILE_PHONE"] = 719] = "MOBILE_PHONE";
43
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_RENT"] = 889] = "HOME_OFFICE_RENT";
44
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_LOAN"] = 890] = "HOME_OFFICE_LOAN";
45
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_RATES"] = 891] = "HOME_OFFICE_RATES";
46
+ BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_OTHER"] = 894] = "HOME_OFFICE_OTHER";
38
47
  })(BusinessChartAccountsEnum || (BusinessChartAccountsEnum = {}));
39
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVzaW5lc3MtY2hhcnQtYWNjb3VudHMuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9FbnVtcy9jaGFydC1hY2NvdW50cy9idXNpbmVzcy1jaGFydC1hY2NvdW50cy5lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLHlCQW9DWDtBQXBDRCxXQUFZLHlCQUF5QjtJQUNuQyx1R0FBd0IsQ0FBQTtJQUN4QixtSEFBOEIsQ0FBQTtJQUM5QixpSEFBNkIsQ0FBQTtJQUM3Qiw2RUFBVyxDQUFBO0lBQ1gsK0VBQVksQ0FBQTtJQUNaLHlGQUFpQixDQUFBO0lBQ2pCLHVGQUFnQixDQUFBO0lBQ2hCLHFHQUF1QixDQUFBO0lBQ3ZCLDZHQUEyQixDQUFBO0lBQzNCLCtIQUFvQyxDQUFBO0lBQ3BDLHlIQUFpQyxDQUFBO0lBQ2pDLHVJQUF3QyxDQUFBO0lBQ3hDLCtLQUE0RCxDQUFBO0lBQzVELHFIQUErQixDQUFBO0lBQy9CLHVIQUFnQyxDQUFBO0lBQ2hDLCtGQUFvQixDQUFBO0lBQ3BCLG1GQUFjLENBQUE7SUFDZCxxSEFBK0IsQ0FBQTtJQUMvQixxSUFBdUMsQ0FBQTtJQU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
52
  ChartAccountsListEnum[ChartAccountsListEnum["PLATFORM_FEES"] = 857] = "PLATFORM_FEES";
53
53
  ChartAccountsListEnum[ChartAccountsListEnum["AUSTRALIAN_GOVERNMENT_SPECIAL_PAYMENTS"] = 871] = "AUSTRALIAN_GOVERNMENT_SPECIAL_PAYMENTS";
54
54
  ChartAccountsListEnum[ChartAccountsListEnum["FHSS"] = 872] = "FHSS";
55
+ ChartAccountsListEnum[ChartAccountsListEnum["MOBILE_PHONE"] = 90] = "MOBILE_PHONE";
56
+ ChartAccountsListEnum[ChartAccountsListEnum["INTERNET"] = 94] = "INTERNET";
57
+ ChartAccountsListEnum[ChartAccountsListEnum["ELECTRICITY_AND_GAS"] = 234] = "ELECTRICITY_AND_GAS";
58
+ ChartAccountsListEnum[ChartAccountsListEnum["TELEPHONE"] = 255] = "TELEPHONE";
59
+ ChartAccountsListEnum[ChartAccountsListEnum["HOME_OFFICE_CLEANING"] = 11861] = "HOME_OFFICE_CLEANING";
55
60
  })(ChartAccountsListEnum || (ChartAccountsListEnum = {}));
56
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnQtYWNjb3VudHMtbGlzdC5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2RiL0VudW1zL2NoYXJ0LWFjY291bnRzL2NoYXJ0LWFjY291bnRzLWxpc3QuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxxQkFxRFg7QUFyREQsV0FBWSxxQkFBcUI7SUFDL0IsdUZBQW1CLENBQUE7SUFDbkIsbUhBQWlDLENBQUE7SUFDakMsb0hBQWtDLENBQUE7SUFDbEMsOEVBQWUsQ0FBQTtJQUNmLDBGQUFxQixDQUFBO0lBQ3JCLHdGQUFvQixDQUFBO0lBQ3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TlRfQ0FQUEVEX0RFRklORURfQkVORUZJVCA9IDYzOSxcbiAgQ09ERV9BX1NVUEVSQU5OVUFUSU9OX0lOQ09NRV9TVFJFQU1TX0RFQVRIID0gNjQwLFxuICBUUkFOU0ZFUiA9IDYxNSxcbiAgUEVSU09OQUxfRVhQRU5TRVMgPSA2MjgsXG4gIFBFUlNPTkFMX0lOQ09NRSA9IDYzMCxcbiAgUExBVEZPUk1fRkVFUyA9IDg1NyxcbiAgQVVTVFJBTElBTl9HT1ZFUk5NRU5UX1NQRUNJQUxfUEFZTUVOVFMgPSA4NzEsXG4gIEZIU1MgPSA4NzIsXG4gIE1PQklMRV9QSE9ORSA9IDkwLFxuICBJTlRFUk5FVCA9IDk0LFxuICBFTEVDVFJJQ0lUWV9BTkRfR0FTID0gMjM0LFxuICBURUxFUEhPTkUgPSAyNTUsXG4gIEhPTUVfT0ZGSUNFX0NMRUFOSU5HID0gMTE4NjEsXG59XG4iXX0=
@@ -14,5 +14,4 @@ export * from './chart-accounts-type.enum';
14
14
  export * from './chart-accounts-keep-sign.enum';
15
15
  export * from './chart-accounts-holding-untaxed-income-list.enum';
16
16
  export * from './chart-accounts-property-adjustments-list.enum';
17
- export * from './home-office-chart-accounts.enum';
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvY2hhcnQtYWNjb3VudHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQ0FBZ0MsQ0FBQztBQUMvQyxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsb0NBQW9DLENBQUM7QUFDbkQsY0FBYyw4Q0FBOEMsQ0FBQztBQUM3RCxjQUFjLHVDQUF1QyxDQUFDO0FBQ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ydC1hY2NvdW50cy1hZGp1c3RtZW50LWluY2x1ZGVkLWxpc3QuZW51bSc7XG5leHBvcnQgKiBmcm9tICcuL2NoYXJ0LWFjY291bnRzLXR5cGUuZW51bSc7XG5leHBvcnQgKiBmcm9tICcuL2NoYXJ0LWFjY291bnRzLWtlZXAtc2lnbi5lbnVtJztcbmV4cG9ydCAqIGZyb20gJy4vY2hhcnQtYWNjb3VudHMtaG9sZGluZy11bnRheGVkLWluY29tZS1saXN0LmVudW0nO1xuZXhwb3J0ICogZnJvbSAnLi9jaGFydC1hY2NvdW50cy1wcm9wZXJ0eS1hZGp1c3RtZW50cy1saXN0LmVudW0nO1xuIl19
@@ -36,8 +36,8 @@ export class AbstractForm extends FormGroup {
36
36
  get currentValue() {
37
37
  return this.createModelInstance(Object.assign({}, this.model, this.getRawValue()));
38
38
  }
39
- toggleEnabledState() {
40
- this.enabled ? this.disable() : this.enable();
39
+ toggleEnabledState(control) {
40
+ control.enabled ? control.disable() : control.enable();
41
41
  }
42
42
  /**
43
43
  * Check validation and return a new instance of generic model.
@@ -145,4 +145,4 @@ export class AbstractForm extends FormGroup {
145
145
  });
146
146
  }
147
147
  }
148
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3QuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9hYnN0cmFjdC5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBMEUsU0FBUyxFQUFlLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzVJLE9BQU8sRUFBRSxZQUFZLEVBQVEsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2pELE9BQU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MuZm9yRWFjaChjb250cm9sID0+IHtcbiAgICAgIGNvbnRyb2wuZGlzYWJsZShvcHRzKTtcbiAgICB9KTtcbiAgfVxuXG4gIGVuYWJsZShvcHRzPzogeyBvbmx5U2VsZj86IGJvb2xlYW47IGVtaXRFdmVudD86IGJvb2xlYW47IH0sIGNvbnRyb2xzOiBBYnN0cmFjdENvbnRyb2xbXSA9IFtdKTogdm9pZCB7XG4gICAgaWYgKCFjb250cm9scy5sZW5ndGgpIHtcbiAgICAgIHJldHVybiBzdXBlci5lbmFibGUob3B0cyk7XG4gICAgfVxuXG4gICAgY29udHJvbHMuZm9yRWFjaChjb250cm9sID0+IHtcbiAgICAgIGNvbnRyb2wuZW5hYmxlKG9wdHMpO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
@@ -0,0 +1,29 @@
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 round from 'lodash/round';
6
+ export class HomeOfficeCalculatorForm extends AbstractForm {
7
+ constructor(claim = plainToClass(HomeOfficeClaim, {})) {
8
+ super({
9
+ homeArea: new FormControl(claim.homeArea, [Validators.required]),
10
+ officeArea: new FormControl(claim.officeArea, [Validators.required]),
11
+ dedicatedOffice: new FormControl(claim.dedicatedOffice, [Validators.required]),
12
+ workUsage: new FormControl({ value: claim.workUsage, disabled: true }, [Validators.required])
13
+ }, claim);
14
+ this.listenEvents();
15
+ }
16
+ listenEvents() {
17
+ this.get('dedicatedOffice').valueChanges.subscribe(() => {
18
+ this.toggleEnabledState(this.get('workUsage'));
19
+ });
20
+ }
21
+ submit() {
22
+ let occupancyPercent = this.value.officeArea * 100 / this.value.homeArea;
23
+ if (!this.value.dedicatedOffice) {
24
+ occupancyPercent *= this.value.workUsage / 100;
25
+ }
26
+ return super.submit({ occupancyPercent: round(occupancyPercent, 2) });
27
+ }
28
+ }
29
+ //# sourceMappingURL=data:application/json;base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V2ZW50cygpIHtcbiAgICB0aGlzLmdldCgnZGVkaWNhdGVkT2ZmaWNlJykudmFsdWVDaGFuZ2VzLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICB0aGlzLnRvZ2dsZUVuYWJsZWRTdGF0ZSh0aGlzLmdldCgnd29ya1VzYWdlJykpO1xuICAgIH0pO1xuICB9XG5cbiAgc3VibWl0KCk6IEhvbWVPZmZpY2VDbGFpbSB7XG4gICAgbGV0IG9jY3VwYW5jeVBlcmNlbnQgPSB0aGlzLnZhbHVlLm9mZmljZUFyZWEgKiAxMDAgLyB0aGlzLnZhbHVlLmhvbWVBcmVhO1xuICAgIGlmICghdGhpcy52YWx1ZS5kZWRpY2F0ZWRPZmZpY2UpIHtcbiAgICAgIG9jY3VwYW5jeVBlcmNlbnQgKj0gdGhpcy52YWx1ZS53b3JrVXNhZ2UgLyAxMDA7XG4gICAgfVxuXG4gICAgcmV0dXJuIHN1cGVyLnN1Ym1pdCh7IG9jY3VwYW5jeVBlcmNlbnQ6IHJvdW5kKG9jY3VwYW5jeVBlcmNlbnQsIDIpIH0pO1xuICB9XG59XG4iXX0=
@@ -7,13 +7,12 @@ export class HomeOfficeClaimForm extends AbstractForm {
7
7
  constructor(claim = plainToClass(HomeOfficeClaim, {})) {
8
8
  super({
9
9
  method: new FormControl(claim.method, Validators.required),
10
- hours: new FormControl(claim.hours, [Validators.required, Validators.min(0), Validators.max(5000)]),
11
10
  electricityAndGas: new FormControl(claim.electricityAndGas, [Validators.required, Validators.min(0), Validators.max(100)]),
12
11
  cleaning: new FormControl(claim.cleaning, [Validators.required, Validators.min(0), Validators.max(100)]),
13
12
  internet: new FormControl(claim.internet, [Validators.required, Validators.min(0), Validators.max(100)]),
14
13
  telephone: new FormControl(claim.telephone, [Validators.required, Validators.min(0), Validators.max(100)]),
15
14
  mobile: new FormControl(claim.mobile, [Validators.required, Validators.min(0), Validators.max(100)]),
16
- area: new FormControl(claim.area, [Validators.required, Validators.min(0), Validators.max(100)]),
15
+ occupancyPercent: new FormControl(claim.occupancyPercent, [Validators.required, Validators.min(0), Validators.max(100)]),
17
16
  }, claim);
18
17
  this.listenEvents();
19
18
  this.switchMethod(claim.method);
@@ -24,11 +23,8 @@ export class HomeOfficeClaimForm extends AbstractForm {
24
23
  });
25
24
  }
26
25
  switchMethod(method) {
27
- this.disable({}, [...this.occupancyControls, this.controls.hours]);
26
+ this.disable({}, this.occupancyControls);
28
27
  switch (method) {
29
- case HomeOfficeClaimMethodEnum.FIXED:
30
- this.controls.hours.enable();
31
- break;
32
28
  case HomeOfficeClaimMethodEnum.ACTUAL:
33
29
  this.enable({}, this.actualControls);
34
30
  break;
@@ -41,7 +37,7 @@ export class HomeOfficeClaimForm extends AbstractForm {
41
37
  return [this.controls.electricityAndGas, this.controls.cleaning, this.controls.internet, this.controls.telephone, this.controls.mobile];
42
38
  }
43
39
  get occupancyControls() {
44
- return [...this.actualControls, this.controls.area];
40
+ return [...this.actualControls, this.controls.occupancyPercent];
45
41
  }
46
42
  }
47
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtY2xhaW0uZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9ob21lLW9mZmljZS9ob21lLW9mZmljZS1jbGFpbS5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBbUIsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzFFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDaEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGNBQWM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kKG1ldGhvZCk7XG4gICAgfSk7XG4gIH1cblxuICBzd2l0Y2hNZXRob2QobWV0aG9kOiBIb21lT2ZmaWNlQ2xhaW1NZXRob2RFbnVtKTogdm9pZCB7XG4gICAgdGhpcy5kaXNhYmxlKHt9LCB0aGlzLm9jY3VwYW5jeUNvbnRyb2xzKTtcblxuICAgIHN3aXRjaCAobWV0aG9kKSB7XG4gICAgICBjYXNlIEhvbWVPZmZpY2VDbGFpbU1ldGhvZEVudW0uQUNUVUFMOlxuICAgICAgICB0aGlzLmVuYWJsZSh7fSwgdGhpcy5hY3R1YWxDb250cm9scyk7XG4gICAgICAgIGJyZWFrO1xuICAgICAgY2FzZSBIb21lT2ZmaWNlQ2xhaW1NZXRob2RFbnVtLk9DQ1VQQU5DWTpcbiAgICAgICAgdGhpcy5lbmFibGUoe30sIHRoaXMub2NjdXBhbmN5Q29udHJvbHMpO1xuICAgICAgICBicmVhaztcbiAgICB9XG4gIH1cblxuICBnZXQgYWN0dWFsQ29udHJvbHMoKTogQWJzdHJhY3RDb250cm9sW10ge1xuICAgIHJldHVybiBbdGhpcy5jb250cm9scy5lbGVjdHJpY2l0eUFuZEdhcywgdGhpcy5jb250cm9scy5jbGVhbmluZywgdGhpcy5jb250cm9scy5pbnRlcm5ldCwgdGhpcy5jb250cm9scy50ZWxlcGhvbmUsIHRoaXMuY29udHJvbHMubW9iaWxlXTtcbiAgfVxuXG4gIGdldCBvY2N1cGFuY3lDb250cm9scygpOiBBYnN0cmFjdENvbnRyb2xbXSB7XG4gICAgcmV0dXJuIFsuLi50aGlzLmFjdHVhbENvbnRyb2xzLCB0aGlzLmNvbnRyb2xzLm9jY3VwYW5jeVBlcmNlbnRdO1xuICB9XG59XG4iXX0=
@@ -1,7 +1,7 @@
1
1
  import { FormControl, Validators } from '@angular/forms';
2
2
  import { plainToClass } from 'class-transformer';
3
3
  import { AbstractForm } from '../abstract.form';
4
- import { HomeOfficeLog } from '../../models/home-office';
4
+ import { HomeOfficeLog } from '../../models';
5
5
  import { currentFinYearValidator } from '../../validators';
6
6
  export class HomeOfficeLogForm extends AbstractForm {
7
7
  constructor(log = plainToClass(HomeOfficeLog, {})) {
@@ -12,4 +12,4 @@ export class HomeOfficeLogForm extends AbstractForm {
12
12
  }, log);
13
13
  }
14
14
  }
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtbG9nLmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvaG9tZS1vZmZpY2UvaG9tZS1vZmZpY2UtbG9nLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUN6RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDakQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ2hELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUUzRCxNQUFNLE9BQU8saUJBQWtCLFNBQVEsWUFBMkI7SUFDaEUsWUFBWSxHQUFHLEdBQUcsWUFBWSxDQUFDLGFBQWEsRUFBRSxFQUFFLENBQUM7UUFDL0MsS0FBSyxDQUFDO1lBQ0osSUFBSSxFQUFFLElBQUksV0FBVyxDQUFDLEdBQUcsQ0FBQyxJQUFJLEVBQUUsQ0FBQyxVQUFVLENBQUMsUUFBUSxFQUFFLHVCQUF1QixFQUFFLENBQUMsQ0FBQztZQUNqRixLQUFLLEVBQUUsSUFBSSxXQUFXLENBQUMsR0FBRyxDQUFDL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ZGF0b3IoKV0pLFxuICAgICAgaG91cnM6IG5ldyBGb3JtQ29udHJvbChsb2cuaG91cnMsIFtWYWxpZGF0b3JzLnJlcXVpcmVkLCBWYWxpZGF0b3JzLm1pbigwKSwgVmFsaWRhdG9ycy5tYXgoNTAwMCldKSxcbiAgICAgIGRlc2NyaXB0aW9uOiBuZXcgRm9ybUNvbnRyb2wobG9nLmRlc2NyaXB0aW9uLCBbVmFsaWRhdG9ycy5yZXF1aXJlZF0pLFxuICAgIH0sIGxvZyk7XG4gIH1cbn1cbiJdfQ==
@@ -1,3 +1,4 @@
1
1
  export * from './home-office-claim.form';
2
2
  export * from './home-office-log.form';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvaG9tZS1vZmZpY2UvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLHdCQUF3QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9ob21lLW9mZmljZS1jbGFpbS5mb3JtJztcbmV4cG9ydCAqIGZyb20gJy4vaG9tZS1vZmZpY2UtbG9nLmZvcm0nO1xuIl19
3
+ export * from './home-office-calculator.form';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvaG9tZS1vZmZpY2UvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2hvbWUtb2ZmaWNlLWNsYWltLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9ob21lLW9mZmljZS1sb2cuZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL2hvbWUtb2ZmaWNlLWNhbGN1bGF0b3IuZm9ybSc7XG4iXX0=
@@ -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(claims.get(chartAccounts.id));
42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bW91bnQnKS5kaXNhYmxlKCk7XG4gICAgICB0aGlzLmdldCgnYW1vdW50Jykuc2V0VmFsdWUoYW1vdW50KTtcbiAgICAgIHRoaXMuZ2V0KCdhbW91bnRXaXRoR1NUJykucmVzZXQoKTtcbiAgICAgIHRoaXMuZ2V0KCdhbW91bnRXaXRoR1NUJykuZGlzYWJsZSgpO1xuICAgICAgdGhpcy5nZXQoJ2Ftb3VudFdpdGhHU1QnKS5zZXRWYWx1ZShhbW91bnQpO1xuICAgIH0pO1xuICB9XG5cbiAgd2F0Y2hDaGFydEFjY291bnRzKCkge1xuICAgIHN1cGVyLndhdGNoQ2hhcnRBY2NvdW50cygpO1xuXG4gICAgdGhpcy5nZXQoJ2NoYXJ0QWNjb3VudHMnKS52YWx1ZUNoYW5nZXMuc3Vic2NyaWJlKChjaGFydEFjY291bnRzOiBDaGFydEFjY291bnRzKSA9PiB7XG4gICAgICBpZiAoIWNoYXJ0QWNjb3VudHMuaXNIb21lT2ZmaWNlRXhwZW5zZSgpIHx8ICF0aGlzLmhvbWVPZmZpY2VDbGFpbSkge1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG5cbiAgICAgIGNvbnN0IGNsYWltcyA9IHRoaXMuaG9tZU9mZmljZUNsYWltLmdldENoYXJ0QWNjb3VudHNDbGFpbXMoKTtcblxuICAgICAgdGhpcy5nZXQoJ2NsYWltUGVyY2VudCcpLnBhdGNoVmFsdWUoY2xhaW1zLmdldChjaGFydEFjY291bnRzLmlkKSk7XG4gICAgICB0aGlzLmdldCgnY2xhaW1QZXJjZW50JykuZGlzYWJsZSgpO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay10cmFuc2FjdGlvbi1jaGFydC1kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy9iYW5rL2JhbmstdHJhbnNhY3Rpb24tY2hhcnQtZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0scUNBQXFDLENBQUM7QUFDdEUsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0seUNBQXlDLENBQUM7QUFDN0UsT0FBTyxTQUFTLE1BQU0sa0JBQWtCLENBQUM7QUFFekM7O0dBRUc7QUFDSCxNQUFNLE9BQU8sd0JBQXdCO0lBR25DLFlBQ0UsZ0JBQW1DO1FBRW5DLElBQUksQ0FBQyxnQkFBZ0IsR0FBRyxnQkFBZ0IsQ0FBQztJQUMzQyxDQUFDO0lBRUQ7O09BRUc7SUFDSCx3QkFBd0IsQ0FBQyxNQUEwQjtRQUNqRCxNQUFNLFNBQVMsR0FBaUIsSUFBSSxDQUFDLDhCQUE4QixFQUFFLENBQUM7UUFFdEUsSUFBSSxDQUFDLE1BQU0sRUFBRTtZQUNYLE9BQU8sU0FBUyxDQUFDO1NBQ2xCO1FBRUQsT0FBTyxJQUFJLENBQUMsdUJBQXVCLENBQUMsTUFBTSxFQUFFLFNBQVMsQ0FBQyxDQUFDO0lBQ3pELENBQUM7SUFFRDs7T0FFRztJQUNILHVCQUF1QixDQUFDLE1BQTBCO1FBQ2hELE1BQU0sU0FBUyxHQUFpQixJQUFJLENBQUMsNkJBQTZCLEVBQUUsQ0FBQztRQUVyRSxJQUFJLENBQUMsTUFBTSxFQUF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