taxtank-core 0.33.50 → 0.33.52

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/esm2022/src/lib/collections/depreciation.collection.mjs +2 -2
  2. package/esm2022/src/lib/collections/income-source/income-source.collection.mjs +2 -2
  3. package/esm2022/src/lib/collections/sole/sole-invoice.collection.mjs +4 -2
  4. package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +3 -3
  5. package/esm2022/src/lib/collections/vehicle/vehicle-logbook.collection.mjs +2 -2
  6. package/esm2022/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.mjs +2 -2
  7. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-adjustment-included-list.enum.mjs +4 -1
  8. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.mjs +2 -2
  9. package/esm2022/src/lib/db/Enums/tank-type.enum.mjs +6 -6
  10. package/esm2022/src/lib/db/Models/bank/bank-account.mjs +1 -1
  11. package/esm2022/src/lib/db/Models/transaction/transaction-base.mjs +6 -6
  12. package/esm2022/src/lib/forms/bank/bank-account/bank-account-allocation.form.mjs +3 -3
  13. package/esm2022/src/lib/forms/bank/bank-account/bank-account-properties.form.mjs +2 -2
  14. package/esm2022/src/lib/forms/sole/sole-business-allocations.form.mjs +2 -2
  15. package/esm2022/src/lib/forms/transaction/allocation-rule.form.mjs +11 -11
  16. package/esm2022/src/lib/forms/transaction/transaction-base-filter.form.mjs +3 -3
  17. package/esm2022/src/lib/forms/transaction/work/work-income.form.mjs +6 -4
  18. package/esm2022/src/lib/models/bank/allocation-group.mjs +2 -2
  19. package/esm2022/src/lib/models/bank/bank-account.mjs +1 -12
  20. package/esm2022/src/lib/models/bank/bank-transaction.mjs +3 -2
  21. package/esm2022/src/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.mjs +2 -2
  22. package/esm2022/src/lib/models/report/vehicle-expense/vehicle-expense.mjs +1 -1
  23. package/esm2022/src/lib/models/transaction/allocation-rule.mjs +4 -4
  24. package/esm2022/src/lib/models/transaction/transaction.mjs +3 -4
  25. package/esm2022/src/lib/models/user/user.mjs +5 -5
  26. package/esm2022/src/lib/models/vehicle/vehicle-claim.mjs +2 -2
  27. package/esm2022/src/lib/models/vehicle/vehicle-logbook.mjs +3 -3
  28. package/fesm2022/taxtank-core.mjs +57 -62
  29. package/fesm2022/taxtank-core.mjs.map +1 -1
  30. package/package.json +1 -1
  31. package/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.d.ts +1 -1
  32. package/src/lib/db/Enums/chart-accounts/chart-accounts-adjustment-included-list.enum.d.ts +3 -0
  33. package/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts +1 -1
  34. package/src/lib/db/Enums/tank-type.enum.d.ts +5 -5
  35. package/src/lib/db/Models/bank/bank-account.d.ts +2 -0
  36. package/src/lib/models/bank/bank-account.d.ts +0 -2
@@ -36,7 +36,7 @@ export class MyTaxDeductions {
36
36
  this.workRelatedSelfEducationType = this.workRelatedSelfEducationExpenses.length ?
37
37
  DeductionSelfEducationTypeEnum.IMPROVE_SKILLS_FOR_CURRENT_EARNINGS_K : null;
38
38
  this.workRelatedSelfEducationTotalAmount = this.calculateWorkRelatedSelfEducationTotalAmount();
39
- this.lowValuePoolDeductionTotalAmount = this.depreciations.getByTankType(TankTypeEnum.WORK)
39
+ this.lowValuePoolDeductionTotalAmount = this.depreciations.getByTankType(TankTypeEnum.WORK_TANK)
40
40
  .getLVPDepreciations().sumBy('claimAmount');
41
41
  this.interestExpensesTotalAmount = this.transactions
42
42
  .filterBy('chartAccounts.heading.id', DEDUCTION_CATEGORIES.interestExpenses)
@@ -93,4 +93,4 @@ export class MyTaxDeductions {
93
93
  return this.workRelatedSelfEducationExpenses ? this.workRelatedSelfEducationExpenses.sumBy('claimAmount') - MyTaxDeductions.selfEducationNotDeductibleAmount : 0;
94
94
  }
95
95
  }
96
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXktdGF4LWRlZHVjdGlvbnMuan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W1vdW50JykgLSBNeVRheERlZHVjdGlvbnMuc2VsZkVkdWNhdGlvbk5vdERlZHVjdGlibGVBbW91bnQgOiAwO1xuICB9XG59XG4iXX0=
@@ -14,4 +14,4 @@ export class VehicleExpense extends AbstractModel {
14
14
  return round(this.amount * (this.claimPercent / 100), 2);
15
15
  }
16
16
  }
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVoaWNsZS1leHBlbnNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy9yZXBvcnQvdmVoaWNsZS1leHBlbnNlL3ZlaGljbGUtZXhwZW5zZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE9BQU8sRUFBQyxhQUFhLEVBQUMsTUFBTSxvQkFBb0IsQ0FBQztBQUNqRCxPQUFPLEtBQUssTUFBTSxjQUFjLENBQUM7QUFFakMsTUFBTSxPQUFPLGNBQWUsU0FBUSxhQUFhO0lBSy9DLFlBQ0UsTUFBYyxFQUNkLFlBQW9CLEVBQ3BCLFdBQW1CO1FBRW5CLEtBQUssRUFBRSxDQUFDO1FBQ1IsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7UUFDckIsSUFBSSxDQUFDLFlBQVksR0FBRyxZQUFZLENBQUM7UUFDakMsSUFBSSxDQUFDLFdBQVcsR0FBRyxXQUFXLENBQUM7SUFDakMsQ0FBQztJQUVELGNBQWM7UUFDWixPQUFPLEtBQUssQ0FBQyxJQUFJLENBQUMsTUFBTSxHQUFHLENBQUMsSUFBSSxDQUFDLFlBQVksR0FBRyxHQUFHLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztJQUMzRCxDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFZlaGljbGUgZXhwZ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aW1QZXJjZW50ID0gY2xhaW1QZXJjZW50O1xuICAgIHRoaXMuZGVzY3JpcHRpb24gPSBkZXNjcmlwdGlvbjtcbiAgfVxuXG4gIGdldENsYWltQW1vdW50KCk6IG51bWJlciB7XG4gICAgcmV0dXJuIHJvdW5kKHRoaXMuYW1vdW50ICogKHRoaXMuY2xhaW1QZXJjZW50IC8gMTAwKSwgMik7XG4gIH1cbn1cbiJdfQ==
@@ -36,13 +36,13 @@ export class AllocationRule extends AllocationRuleBase {
36
36
  return this.type === AllocationRuleTypeEnum.TRANSFER;
37
37
  }
38
38
  isPropertyTank() {
39
- return this.transaction.tankType === TankTypeEnum.PROPERTY;
39
+ return this.transaction.tankType === TankTypeEnum.PROPERTY_TANK;
40
40
  }
41
41
  isWorkTank() {
42
- return this.transaction.tankType === TankTypeEnum.WORK;
42
+ return this.transaction.tankType === TankTypeEnum.WORK_TANK;
43
43
  }
44
44
  isSoleTank() {
45
- return this.transaction.tankType === TankTypeEnum.SOLE;
45
+ return this.transaction.tankType === TankTypeEnum.SOLE_TANK;
46
46
  }
47
47
  isPropertyIncome() {
48
48
  return this.isIncome() && this.isPropertyTank();
@@ -128,4 +128,4 @@ __decorate([
128
128
  __decorate([
129
129
  Type(() => BankAccount)
130
130
  ], AllocationRule.prototype, "transferBankAccount", void 0);
131
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsb2NhdGlvbi1ydWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy90cmFuc2FjdGlvbi9hbGxvY2F0aW9uLXJ1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxjQUFjLElBQUksa0JBQWtCLEVBQUUsTUFBTSw2Q0FBNkMsQ0FBQztBQUNuRyxPQUFPLEVBQUUsV0FBV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Y3Rpb24uaXNEZWJpdCgpID8gQWxsb2NhdGlvblJ1bGVUeXBlRW51bS5FWFBFTlNFIDogQWxsb2NhdGlvblJ1bGVUeXBlRW51bS5JTkNPTUUsXG4gICAgICBiYW5rQWNjb3VudDogYmFua1RyYW5zYWN0aW9uLmJhbmtBY2NvdW50LFxuICAgICAgY29uZGl0aW9uT3BlcmF0b3I6IEFsbG9jYXRpb25SdWxlQ29uZGl0aW9uT3BlcmF0b3JFbnVtLkFORCxcbiAgICAgIGNvbmRpdGlvbnM6IFtcbiAgICAgICAgcGxhaW5Ub0NsYXNzKEFsbG9jYXRpb25SdWxlQ29uZGl0aW9uLCB7XG4gICAgICAgICAgZmllbGQ6IEFsbG9jYXRpb25SdWxlQ29uZGl0aW9uRmllbGRFbnVtLkFNT1VOVCxcbiAgICAgICAgICBjb21wYXJpc29uT3BlcmF0b3I6IEFsbG9jYXRpb25SdWxlQ29uZGl0aW9uQ29tcGFyaXNvbk9wZXJhdG9yRW51bS5FUVVBTFMsXG4gICAgICAgICAgdmFsdWU6IGJhbmtUcmFuc2FjdGlvbi5hbW91bnRcbiAgICAgICAgfSksXG4gICAgICAgIHBsYWluVG9DbGFzcyhBbGxvY2F0aW9uUnVsZUNvbmRpdGlvbiwge1xuICAgICAgICAgIGZpZWxkOiBBbGxvY2F0aW9uUnVsZUNvbmRpdGlvbkZpZWxkRW51bS5ERVNDUklQVElPTixcbiAgICAgICAgICBjb21wYXJpc29uT3BlcmF0b3I6IEFsbG9jYXRpb25SdWxlQ29uZGl0aW9uQ29tcGFyaXNvbk9wZXJhdG9yRW51bS5FUVVBTFMsXG4gICAgICAgICAgdmFsdWU6IGJhbmtUcmFuc2FjdGlvbi5kZXNjcmlwdGlvblxuICAgICAgICB9KVxuICAgICAgXVxuICAgIH0pO1xuICB9XG59XG4iXX0=
@@ -1,7 +1,7 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { Transaction as TransactionBase } from '../../db/Models/transaction/transaction';
3
3
  import { TransactionTypeEnum } from '../../db/Enums/transaction-type.enum';
4
- import { ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaFieldListEnum, } from '../../db/Enums';
4
+ import { ChartAccountsAdjustmentIncludedListEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaFieldListEnum, } from '../../db/Enums';
5
5
  import { TransactionOperationEnum } from '../../db/Enums/transaction-operation.enum';
6
6
  import { TransactionSourceEnum } from '../../db/Enums/transaction-source.enum';
7
7
  import { DepreciationTypeEnum } from '../../db/Enums/depreciation-type.enum';
@@ -160,8 +160,7 @@ export class Transaction extends TransactionBase {
160
160
  return grossAmount;
161
161
  }
162
162
  // included transactions affect parent transaction amount and as a result grossAmount, skip to avoid double sum
163
- const adjustments = new Collection(this.transactions)
164
- .filter(transaction => !transaction.chartAccounts?.isAdjustmentIncluded());
163
+ const adjustments = new Collection(this.transactions).filter(transaction => ![ChartAccountsAdjustmentIncludedListEnum.FUNDS_OVER_ADJUSTMENT, ChartAccountsAdjustmentIncludedListEnum.LANDLORD_REIMBURSEMENT].includes(transaction.chartAccounts?.id));
165
164
  const income = adjustments.filter(transaction => transaction.isIncome()).sumBy('amount');
166
165
  const expense = adjustments.filter(transaction => transaction.isExpense()).sumBy('amount', true);
167
166
  // all adjustments except property income increase grossIncome
@@ -240,4 +239,4 @@ __decorate([
240
239
  __decorate([
241
240
  Transform(({ value }) => +value)
242
241
  ], Transaction.prototype, "tax", void 0);
243
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL3RyYW5zYWN0aW9uL3RyYW5zYWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsV0FBVyxJQUFJLGVBQWU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0aW9uLmNsYWltUGVyY2VudDtcbiAgICB0aGlzLnByb3BlcnR5ID0gdHJhbnNhY3Rpb24ucHJvcGVydHk7XG4gICAgdGhpcy5sb2FuID0gdHJhbnNhY3Rpb24ubG9hbjtcbiAgICB0aGlzLmluY29tZVNvdXJjZSA9IHRyYW5zYWN0aW9uLmluY29tZVNvdXJjZTtcbiAgICB0aGlzLmJ1c2luZXNzID0gdHJhbnNhY3Rpb24uYnVzaW5lc3M7XG4gIH1cblxuICBpc0VkaXRhYmxlKCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiAhQ2hhcnRBY2NvdW50cy5zeXN0ZW1MaXN0LmluY2x1ZGVzKHRoaXMuY2hhcnRBY2NvdW50cy5pZCk7XG4gIH1cbn1cbiJdfQ==
@@ -65,16 +65,16 @@ export class User extends BaseUser {
65
65
  getTankTypes() {
66
66
  const tankTypes = [];
67
67
  if (this.roles.includes(UserRolesEnum.WORK_TANK)) {
68
- tankTypes.push(TankTypeEnum.WORK);
68
+ tankTypes.push(TankTypeEnum.WORK_TANK);
69
69
  }
70
70
  if (this.roles.includes(UserRolesEnum.PROPERTY_TANK)) {
71
- tankTypes.push(TankTypeEnum.PROPERTY);
71
+ tankTypes.push(TankTypeEnum.PROPERTY_TANK);
72
72
  }
73
73
  if (this.roles.includes(UserRolesEnum.SOLE_TANK)) {
74
- tankTypes.push(TankTypeEnum.SOLE);
74
+ tankTypes.push(TankTypeEnum.SOLE_TANK);
75
75
  }
76
76
  if (this.roles.includes(UserRolesEnum.HOLDING_TANK)) {
77
- tankTypes.push(TankTypeEnum.HOLDING);
77
+ tankTypes.push(TankTypeEnum.HOLDING_TANK);
78
78
  }
79
79
  tankTypes.push(TankTypeEnum.PERSONAL);
80
80
  return tankTypes;
@@ -162,4 +162,4 @@ __decorate([
162
162
  __decorate([
163
163
  Type(() => AccountSetupItem)
164
164
  ], User.prototype, "blacklistSetupItems", void 0);
165
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozL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NlcnMgYW5kIHJlZ2lzdGVyZWRZZWFyIC0gMSBmb3Igb2xkIHVzZXJzXG4gICAqL1xuICBnZXQgZmluYW5jaWFsWWVhcnMoKTogbnVtYmVyIHtcbiAgICByZXR1cm4gcmFuZ2UoXG4gICAgICBNYXRoLm1pbihGaW5hbmNpYWxZZWFyLnRvRmluWWVhcih0aGlzLmNyZWF0ZWRBdCkgLSAxLCAyMDIyKSxcbiAgICAgIEZpbmFuY2lhbFllYXIudG9GaW5ZZWFyKG5ldyBEYXRlKCkpICsgMVxuICAgICk7XG4gIH1cblxuICBnZXQgZmlybUJyYW5jaE5hbWVzKCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIHRoaXMuZW1wbG95ZWVEZXRhaWxzLmZpcm1CcmFuY2hOYW1lcztcbiAgfVxufVxuXG4iXX0=
@@ -27,7 +27,7 @@ export class VehicleClaim extends VehicleClaimBase {
27
27
  return !!this.business;
28
28
  }
29
29
  get tankType() {
30
- return this.isSoleTank() ? TankTypeEnum.SOLE : TankTypeEnum.WORK;
30
+ return this.isSoleTank() ? TankTypeEnum.SOLE_TANK : TankTypeEnum.WORK_TANK;
31
31
  }
32
32
  /**
33
33
  * Claim amount for KMs method. Exists only for KMs method.
@@ -57,4 +57,4 @@ __decorate([
57
57
  __decorate([
58
58
  Type(() => SoleBusiness)
59
59
  ], VehicleClaim.prototype, "business", void 0);
60
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVoaWNsZS1jbGFpbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvdmVoaWNsZS92ZWhpY2xlLWNsYWltLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsWUFBWSxJQUFJLGdCQUFnQixFQUFFLE1BQU0sdUNBQXVDLENBQ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VlXG4gICAgcmV0dXJuIE1hdGguYWJzKHRyYW5zYWN0aW9uc0Ftb3VudCkgKiB0aGlzLndvcmtVc2FnZSAvIDEwMDtcbiAgfVxuXG4gIGdldEF2ZXJhZ2VXZWVrbHlLTVMoKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5raWxvbWV0ZXJzIC8gRmluYW5jaWFsWWVhci53ZWVrc0luWWVhcjtcbiAgfVxufVxuIl19
@@ -10,11 +10,11 @@ export class VehicleLogbook extends VehicleLogbookBase {
10
10
  get tankType() {
11
11
  switch (true) {
12
12
  case !!this.business:
13
- return TankTypeEnum.SOLE;
13
+ return TankTypeEnum.SOLE_TANK;
14
14
  case this.isPersonal:
15
15
  return TankTypeEnum.PERSONAL;
16
16
  default:
17
- return TankTypeEnum.WORK;
17
+ return TankTypeEnum.WORK_TANK;
18
18
  }
19
19
  }
20
20
  }
@@ -24,4 +24,4 @@ __decorate([
24
24
  __decorate([
25
25
  Type(() => SoleBusiness)
26
26
  ], VehicleLogbook.prototype, "business", void 0);
27
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVoaWNsZS1sb2dib29rLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy92ZWhpY2xlL3ZlaGljbGUtbG9nYm9vay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLGNBQWMsSUFBSSxrQkFBa0IsRUFBRSxNQUFNLHlDQUF5QyxDQUFDO0FBQy9GLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQ3ZDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztB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