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
@@ -15,7 +15,7 @@ export class BankAccountPropertiesForm extends UntypedFormArray {
15
15
  property: new UntypedFormControl(bankAccountProperty?.property, Validators.required),
16
16
  percent: new UntypedFormControl(bankAccountProperty.percent, Validators.required)
17
17
  })), [
18
- conditionalValidator((control) => control.get('tankType').value === TankTypeEnum.PROPERTY, Validators.required),
18
+ conditionalValidator((control) => control.get('tankType').value === TankTypeEnum.PROPERTY_TANK, Validators.required),
19
19
  fieldsSumValidator('percent', 100)
20
20
  ]);
21
21
  }
@@ -61,4 +61,4 @@ export class BankAccountPropertiesForm extends UntypedFormArray {
61
61
  return currentTotalPercent < 100 ? 100 - currentTotalPercent : 0;
62
62
  }
63
63
  }
64
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LXByb3BlcnRpZXMuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9iYW5rL2JhbmstYWNjb3VudC9iYW5rLWFj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50YWdlIGF2YWlsYWJsZSBmb3IgYWRkaW5nIGEgbmV3IGJhbmsgYWNjb3VudCBwcm9wZXJ0eS5cbiAgICogUmVtYWluaW5nIHBlcmNlbnQgY2FuJ3QgYmUgbW9yZSB0aGFuIDEwMCBhbmQgbGVzcyB0aGFuIDBcbiAgICovXG4gIHByaXZhdGUgZ2V0UmVtYWluaW5nUGVyY2VudCgpOiBudW1iZXIge1xuICAgIGNvbnN0IGN1cnJlbnRUb3RhbFBlcmNlbnQ6IG51bWJlciA9IHRoaXMuY29udHJvbHMucmVkdWNlKChzdW06IG51bWJlciwgY29udHJvbDogVW50eXBlZEZvcm1Hcm91cCkgPT4gc3VtICsgY29udHJvbC5nZXQoJ3BlcmNlbnQnKS52YWx1ZSwgMCk7XG5cbiAgICByZXR1cm4gY3VycmVudFRvdGFsUGVyY2VudCA8IDEwMCA/IDEwMCAtIGN1cnJlbnRUb3RhbFBlcmNlbnQgOiAwO1xuICB9XG59XG4iXX0=
@@ -15,7 +15,7 @@ export class SoleBusinessAllocationsForm extends UntypedFormArray {
15
15
  business: new UntypedFormControl(businessAllocation?.business, Validators.required),
16
16
  percent: new UntypedFormControl(businessAllocation.percent, Validators.required)
17
17
  })), [
18
- conditionalValidator((control) => control.get('tankType').value === TankTypeEnum.SOLE, Validators.required),
18
+ conditionalValidator((control) => control.get('tankType').value === TankTypeEnum.SOLE_TANK, Validators.required),
19
19
  fieldsSumValidator('percent', 100)
20
20
  ]);
21
21
  }
@@ -61,4 +61,4 @@ export class SoleBusinessAllocationsForm extends UntypedFormArray {
61
61
  return currentTotalPercent < 100 ? 100 - currentTotalPercent : 0;
62
62
  }
63
63
  }
64
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1idXNpbmVzcy1hbGxvY2F0aW9ucy5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdH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XA6IFVudHlwZWRGb3JtR3JvdXApID0+IHtcbiAgICAgIGJ1c2luZXNzRm9ybUdyb3VwLmdldCgncGVyY2VudCcpLmRpc2FibGUoKTtcbiAgICB9KTtcbiAgfVxuXG4gIC8qKlxuICAgKiBQZXJjZW50YWdlIGF2YWlsYWJsZSBmb3IgYWRkaW5nIGEgbmV3IGJhbmsgYWNjb3VudCBidXNpbmVzcyBhbGxvY2F0aW9uLlxuICAgKiBSZW1haW5pbmcgcGVyY2VudCBjYW4ndCBiZSBtb3JlIHRoYW4gMTAwIGFuZCBsZXNzIHRoYW4gMFxuICAgKi9cbiAgcHJpdmF0ZSBnZXRSZW1haW5pbmdQZXJjZW50KCk6IG51bWJlciB7XG4gICAgY29uc3QgY3VycmVudFRvdGFsUGVyY2VudDogbnVtYmVyID0gdGhpcy5jb250cm9scy5yZWR1Y2UoKHN1bTogbnVtYmVyLCBjb250cm9sOiBVbnR5cGVkRm9ybUdyb3VwKSA9PiBzdW0gKyBjb250cm9sLmdldCgncGVyY2VudCcpLnZhbHVlLCAwKTtcblxuICAgIHJldHVybiBjdXJyZW50VG90YWxQZXJjZW50IDwgMTAwID8gMTAwIC0gY3VycmVudFRvdGFsUGVyY2VudCA6IDA7XG4gIH1cbn1cbiJdfQ==
@@ -110,13 +110,13 @@ export class AllocationRuleForm extends AbstractForm {
110
110
  }
111
111
  get tankTypeLabel() {
112
112
  switch (this.transactionFormGroup.get('tankType').value) {
113
- case TankTypeEnum.WORK:
113
+ case TankTypeEnum.WORK_TANK:
114
114
  return 'work';
115
- case TankTypeEnum.PROPERTY:
115
+ case TankTypeEnum.PROPERTY_TANK:
116
116
  return 'property';
117
- case TankTypeEnum.SOLE:
117
+ case TankTypeEnum.SOLE_TANK:
118
118
  return 'sole';
119
- case TankTypeEnum.HOLDING:
119
+ case TankTypeEnum.HOLDING_TANK:
120
120
  return 'holding';
121
121
  default:
122
122
  return 'personal';
@@ -146,13 +146,13 @@ export class AllocationRuleForm extends AbstractForm {
146
146
  this.transactionFormGroup.get('business').disable({ emitEvent: false });
147
147
  this.transactionFormGroup.get('incomeSource').disable({ emitEvent: false });
148
148
  switch (tankType) {
149
- case TankTypeEnum.WORK:
149
+ case TankTypeEnum.WORK_TANK:
150
150
  this.transactionFormGroup.get('incomeSource').enable({ emitEvent: false });
151
151
  break;
152
- case TankTypeEnum.PROPERTY:
152
+ case TankTypeEnum.PROPERTY_TANK:
153
153
  this.transactionFormGroup.get('property').enable({ emitEvent: false });
154
154
  break;
155
- case TankTypeEnum.SOLE:
155
+ case TankTypeEnum.SOLE_TANK:
156
156
  this.transactionFormGroup.get('business').enable({ emitEvent: false });
157
157
  break;
158
158
  }
@@ -167,13 +167,13 @@ export class AllocationRuleForm extends AbstractForm {
167
167
  return this.get('type').value === AllocationRuleTypeEnum.TRANSFER;
168
168
  }
169
169
  isPropertyTank() {
170
- return this.get('transaction').get('tankType').value === TankTypeEnum.PROPERTY;
170
+ return this.get('transaction').get('tankType').value === TankTypeEnum.PROPERTY_TANK;
171
171
  }
172
172
  isWorkTank() {
173
- return this.get('transaction').get('tankType').value === TankTypeEnum.WORK;
173
+ return this.get('transaction').get('tankType').value === TankTypeEnum.WORK_TANK;
174
174
  }
175
175
  isSoleTank() {
176
- return this.get('transaction').get('tankType').value === TankTypeEnum.SOLE;
176
+ return this.get('transaction').get('tankType').value === TankTypeEnum.SOLE_TANK;
177
177
  }
178
178
  isPropertyIncome() {
179
179
  return this.isIncome() && this.isPropertyTank();
@@ -185,4 +185,4 @@ export class AllocationRuleForm extends AbstractForm {
185
185
  return this.isIncome() && this.isSoleTank();
186
186
  }
187
187
  }
188
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsb2NhdGlvbi1ydWxlLmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvdHJhbnN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bHVlID09PSBUYW5rVHlwZUVudW0uV09SS19UQU5LO1xuICB9XG5cbiAgaXNTb2xlVGFuaygpOiBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5nZXQoJ3RyYW5zYWN0aW9uJykuZ2V0KCd0YW5rVHlwZScpLnZhbHVlID09PSBUYW5rVHlwZUVudW0uU09MRV9UQU5LO1xuICB9XG5cbiAgaXNQcm9wZXJ0eUluY29tZSgpOiBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5pc0luY29tZSgpICYmIHRoaXMuaXNQcm9wZXJ0eVRhbmsoKTtcbiAgfVxuXG4gIGlzV29ya0luY29tZSgpOiBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5pc0luY29tZSgpICYmIHRoaXMuaXNXb3JrVGFuaygpO1xuICB9XG5cbiAgaXNTb2xlSW5jb21lKCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiB0aGlzLmlzSW5jb21lKCkgJiYgdGhpcy5pc1NvbGVUYW5rKCk7XG4gIH1cbn1cbiJdfQ==
@@ -14,8 +14,8 @@ export class TransactionBaseFilterForm extends FormGroup {
14
14
  }
15
15
  listenEvents() {
16
16
  this.get('tankType').valueChanges.subscribe(tankType => {
17
- tankType === TankTypeEnum.SOLE ? this.get('business').enable() : this.get('business').disable();
18
- tankType === TankTypeEnum.PROPERTY ? this.get('properties').enable() : this.get('properties').disable();
17
+ tankType === TankTypeEnum.SOLE_TANK ? this.get('business').enable() : this.get('business').disable();
18
+ tankType === TankTypeEnum.PROPERTY_TANK ? this.get('properties').enable() : this.get('properties').disable();
19
19
  });
20
20
  }
21
21
  filter(collection) {
@@ -45,4 +45,4 @@ export class TransactionBaseFilterForm extends FormGroup {
45
45
  return collection;
46
46
  }
47
47
  }
48
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tYmFzZS1maWx0ZXIuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3Vy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Byb3BlcnR5LmlkKSk7XG4gICAgfVxuICAgIGlmICh2YWx1ZS5jaGFydEFjY291bnRzKSB7XG4gICAgICBjb25zdCBzZWFyY2hRdWVyeTogc3RyaW5nID0gdmFsdWUuY2hhcnRBY2NvdW50cy50b0xvd2VyQ2FzZSgpLnRyaW0oKTtcbiAgICAgIGNvbGxlY3Rpb24gPSBjb2xsZWN0aW9uLmZpbHRlcih0cmFuc2FjdGlvbiA9PiB0cmFuc2FjdGlvbi5jaGFydEFjY291bnRzLm5hbWUudG9Mb3dlckNhc2UoKS5pbmNsdWRlcyhzZWFyY2hRdWVyeSkpO1xuICAgIH1cblxuICAgIHJldHVybiBjb2xsZWN0aW9uO1xuICB9XG59XG4iXX0=
@@ -6,15 +6,17 @@ import { TransactionOperationEnum } from '../../../db/Enums/transaction-operatio
6
6
  import { WorkTransactionForm } from './work-transaction.form';
7
7
  export class WorkIncomeForm extends WorkTransactionForm {
8
8
  constructor(transaction, registeredForGst, allocations) {
9
- // for work income we need to show netAmount instead of amount (because some adjustments are included in amount)
10
- transaction.amount = transaction.netAmount;
11
9
  super(transaction, registeredForGst, allocations, {
10
+ netAmount: new UntypedFormControl(transaction.netAmount, Validators.required),
12
11
  tax: new UntypedFormControl({
13
12
  value: transaction.tax,
14
13
  disabled: !transaction.chartAccounts || transaction.chartAccounts.isNRAS(),
15
14
  }, Validators.required),
16
15
  incomeSource: new UntypedFormControl(transaction.incomeSource, [Validators.required, autocompleteValidator()]),
17
16
  });
17
+ if (allocations.length) {
18
+ this.get('netAmount').disable();
19
+ }
18
20
  // forbid to edit some fields for allocated transaction
19
21
  if (allocations.length) {
20
22
  this.get('chartAccounts').disable();
@@ -77,7 +79,7 @@ export class WorkIncomeForm extends WorkTransactionForm {
77
79
  * ie bankTransaction=1000$ with 900$ salary and 100$ tips will create 2 transactions with 900$ and 100$
78
80
  */
79
81
  getAmount() {
80
- return this.get('amount').value - new Collection(this.currentValue.transactions)
82
+ return this.get('netAmount').value - new Collection(this.currentValue.transactions)
81
83
  .filter((t) => t.chartAccounts?.isAdjustmentIncluded())
82
84
  .sumBy('amount');
83
85
  }
@@ -85,4 +87,4 @@ export class WorkIncomeForm extends WorkTransactionForm {
85
87
  return super.submit(Object.assign(data, { amount: this.getAmount() }));
86
88
  }
87
89
  }
88
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29yay1pbmNvbWUuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy90cmFuc2FjdGlvbi93b3JrL3dvcmstaW5jb21lLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLFlBQVksR0FHYixNQUFNLGlCQUFpQixDQUFDO0FBQ3pCLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVoRSxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUM1RCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDbEQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sOENBQThDLENBQUM7QUFDeEYsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFFOUQsTUFBTSxPQUFPLGNBQWUsU0FBUSxtQkFBbUI7SUFDckQsWUFBWSxXQUF3QixFQUFFLGdCQUF5QixFQUFFLFdBQW9DO1FBQ25HLGdIQUFnSDtRQUNoSCxXQUFXLENBQUMsTUFBTSxHQUFHLFdBQVcsQ0FBQyxTQUFTLENBQUM7UUFFM0MsS0FBSyxDQUFDLFdBQVcsRUFBRSxnQkFBZ0IsRUFBRSxXQUFXLEVBQUU7WUFDaEQsR0FBRyxFQ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cmVjZWl2ZWQgcGF5bWVudCBieSBzZXBhcmF0aW5nIGl0IGludG8gbXVsdGlwbGUgdHJhbnNhY3Rpb25zLFxuICAgKiBuZXRBbW91bnQgYWx3YXlzIG1hdGNoIHJlY2VpdmVkIHBheW1lbnQgYW5kIGluY2x1ZGVzIHJlbGF0ZWQgYWRqdXN0bWVudHNcbiAgICogYW1vdW50IGNhbGN1bGF0ZWQgYXMgbmV0QW1vdW50IC0gc2FsYXJ5IGluY2x1ZGVkIGFkanVzdG1lbnRzXG4gICAqIGllIGJhbmtUcmFuc2FjdGlvbj0xMDAwJCB3aXRoIDkwMCQgc2FsYXJ5IGFuZCAxMDAkIHRpcHMgd2lsbCBjcmVhdGUgMiB0cmFuc2FjdGlvbnMgd2l0aCA5MDAkIGFuZCAxMDAkXG4gICAqL1xuICBnZXRBbW91bnQoKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5nZXQoJ25ldEFtb3VudCcpLnZhbHVlIC0gbmV3IENvbGxlY3Rpb24odGhpcy5jdXJyZW50VmFsdWUudHJhbnNhY3Rpb25zKVxuICAgICAgLmZpbHRlcigodCkgPT4gdC5jaGFydEFjY291bnRzPy5pc0FkanVzdG1lbnRJbmNsdWRlZCgpKVxuICAgICAgLnN1bUJ5KCdhbW91bnQnKTtcbiAgfVxuXG4gIHN1Ym1pdChkYXRhOiBvYmplY3QgPSB7fSk6IFRyYW5zYWN0aW9uIHtcbiAgICByZXR1cm4gc3VwZXIuc3VibWl0KE9iamVjdC5hc3NpZ24oZGF0YSwgeyBhbW91bnQ6IHRoaXMuZ2V0QW1vdW50KCkgfSkpO1xuICB9XG59XG4iXX0=
@@ -15,7 +15,7 @@ export class AllocationGroup extends AbstractModel {
15
15
  operation: TransactionOperationEnum.ALLOCATE_INVOICE,
16
16
  description: invoice.reference,
17
17
  invoiceNumber: invoice.getNumber(),
18
- tankType: TankTypeEnum.SOLE,
18
+ tankType: TankTypeEnum.SOLE_TANK,
19
19
  amount: invoice.grossPrice,
20
20
  allocations,
21
21
  bankTransactions
@@ -54,4 +54,4 @@ export class AllocationGroup extends AbstractModel {
54
54
  return this.allocations.first?.isAutoAllocated;
55
55
  }
56
56
  }
57
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsb2NhdGlvbi1ncm91cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvYmFuay9hbGxvY2F0aW9uLWdyb3VwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUVqRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDaEQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFDckYsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBRzdEOzs7OztHQUtHO0FBQ0gsTUFBTSxPQUFPLGVBQWdCLFNBQVEsYUFBYTtJQWVoRCxNQUFNLENBQUMsV0FBVyxDQUFDLE9BQW9CLEVBQUUsZ0JBQTJDLEVBQUUsV0FBNEM7UUFDaEksT0FBTyxZQUFZLENBQUMsZUFBZSxFQUFFO1lBQ25DLElBQUksRUFBRSxPQUFPLENBQUMsUUFBUTtZQUN0QixTQUFTLEVBQUUsd0JBQXdCLENBQUMsZ0JBQWdCO1lBQ3BELFdBQVcsRUFBRSxPQUFPLENBQUMsU0FBUztZQUM5QixhQUFhLEVBQUUsT0FBTyxDQUFDLFNBQVMsRUFBRTtZQUNsQyxRQUFRLEVBQUUsWUFBWSxDQUFDLElBQUk7WUFDM0IsTUFBTSxFQUFFLE9BQU8sQ0FBQyxVQUFVO1lBQzFCLFdBQVc7WUFDWCxnQkF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../db/Models/bank/bank-account';
3
3
  import { BankAccountStatusEnum, BankAccountTypeEnum } from '../../db/Enums';
4
4
  import { Loan } from '../loan';
5
- import { TankTypeEnum } from '../../db/Enums/tank-type.enum';
6
5
  import { BankAccountBalance } from '../../db/Models';
7
6
  import { FinancialYear } from '../financial-year';
8
7
  import { BankAccountProperty } from './bank-account-property';
@@ -78,16 +77,6 @@ export class BankAccount extends BankAccountBase {
78
77
  isSoleTank() {
79
78
  return !!this.businessAllocations.length;
80
79
  }
81
- get tankType() {
82
- switch (true) {
83
- case this.isPropertyTank():
84
- return TankTypeEnum.PROPERTY;
85
- case this.isSoleTank():
86
- return TankTypeEnum.SOLE;
87
- default:
88
- return TankTypeEnum.WORK;
89
- }
90
- }
91
80
  /**
92
81
  * Get Bank account property by id
93
82
  * @param id Id of property
@@ -176,4 +165,4 @@ __decorate([
176
165
  __decorate([
177
166
  Transform(({ value }) => value === 4 ? BankAccountTypeEnum.LOAN : value)
178
167
  ], BankAccount.prototype, "type", void 0);
179
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy9iYW5rL2JhbmstYWNjb3VudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsSUFBSSxlQUFlLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUNuRixPQUFPLEVBQUUscUJBQXFCLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM1RSxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQy9CLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUM3RCxPQUFPLEVB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bGRQYXlvdXRMb2FuQWNjb3VudDogYm9vbGVhbiA9IHRoaXMuaXNBY3RpdmUoKSAmJiB0aGlzLmlzTG9hbigpICYmIHRheFRhbmtCYWxhbmNlID09PSAwO1xuXG4gICAgLy8gd2UgZG9uJ3QgY2hlY2sgY3VycmVudCBiYWxhbmNlIGZvciBiYXNpcSBhY2NvdW50cywgYmVjYXVzZSBiYXNpcSBkb2Vzbid0IHByb3ZpZGUgdXMgbGFzdCB0cmFuc2FjdGlvbnMgKGNhbid0IGRvIGZvciBjbG9zZWQgYWNjb3VudHMpLFxuICAgIC8vIHRoYXQncyB3aHkgYmFsYW5jZSB3b24ndCBiZSAwICh1cGRhdGVkIGJ5IGJhc2lxKVxuICAgIGlmIChzaG91bGRQYXlvdXRMb2FuQWNjb3VudCAmJiB0aGlzLmlzTWFudWFsKCkpIHtcbiAgICAgIHJldHVybiB0aGlzLmN1cnJlbnRCYWxhbmNlID09PSAwO1xuICAgIH1cblxuICAgIHJldHVybiBzaG91bGRQYXlvdXRMb2FuQWNjb3VudDtcbiAgfVxuXG4gIGlzTWFudWFsKCkge1xuICAgIHJldHVybiAhdGhpcy5hY2NvdW50SWQ7XG4gIH1cbn1cbiJdfQ==
@@ -6,6 +6,7 @@ import { Type, plainToClass } from 'class-transformer';
6
6
  import { Transaction } from '../transaction';
7
7
  import { ChartAccounts } from '../chart-accounts';
8
8
  import { TransactionAllocationCollection } from '../../collections';
9
+ import round from 'lodash/round';
9
10
  export class BankTransaction extends BankTransactionBase {
10
11
  constructor() {
11
12
  super(...arguments);
@@ -59,7 +60,7 @@ export class BankTransaction extends BankTransactionBase {
59
60
  * Get bank transaction allocated amount
60
61
  */
61
62
  getAllocatedAmount(allocations) {
62
- return allocations.getByBankTransactionsIds([this.id]).amount;
63
+ return round(allocations.getByBankTransactionsIds([this.id]).amount, 2);
63
64
  }
64
65
  /**
65
66
  * Get bank transaction unallocated amount
@@ -74,4 +75,4 @@ __decorate([
74
75
  __decorate([
75
76
  Type(()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