taxtank-core 0.33.51 → 0.33.53

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ /**
2
+ * list of child transactions included in parent amount
3
+ */
1
4
  export var ChartAccountsAdjustmentIncludedListEnum;
2
5
  (function (ChartAccountsAdjustmentIncludedListEnum) {
3
6
  ChartAccountsAdjustmentIncludedListEnum[ChartAccountsAdjustmentIncludedListEnum["ALLOWANCE"] = 4] = "ALLOWANCE";
@@ -13,4 +16,4 @@ export var ChartAccountsAdjustmentIncludedListEnum;
13
16
  ChartAccountsAdjustmentIncludedListEnum[ChartAccountsAdjustmentIncludedListEnum["FUNDS_OVER_ADJUSTMENT"] = 906] = "FUNDS_OVER_ADJUSTMENT";
14
17
  ChartAccountsAdjustmentIncludedListEnum[ChartAccountsAdjustmentIncludedListEnum["LANDLORD_REIMBURSEMENT"] = 908] = "LANDLORD_REIMBURSEMENT";
15
18
  })(ChartAccountsAdjustmentIncludedListEnum || (ChartAccountsAdjustmentIncludedListEnum = {}));
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnQtYWNjb3VudHMtYWRqdXN0bWVudC1pbmNsdWRlZC1saXN0LmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvY2hhcnQtYWNjb3VudHMvY2hhcnQtYWNjb3VudHMtYWRqdXN0bWVudC1pbmNsdWRlZC1saXN0LmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksdUNBYVg7QUFiRCxXQUFZLHVDQUF1QztJQUNsRCwrR0FBYSxDQUFBO0lBQ2IscUdBQVEsQ0FBQTtJQUNSLDJIQUFvQixDQUFBO0lBQ3BCLDZHQUFhLENBQUE7SUFDWiw2SEFBcUIsQ0FBQTtJQUN0QixpSUFBd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DSCxNQUFNLENBQU4sSUFBWSx1Q0FhWDtBQWJELFdBQVksdUNBQXVDO0lBQ2xELCtHQUFhLENBQUE7SUFDYixxR0FBUSxDQUFBO0lBQ1IsMkhBQW9CLENBQUE7SUFDcEIsNkdBQWEsQ0FBQTtJQUNaLDZIQUFxQixDQUFBO0lBQ3RCLGlJQUF1QixDQUFBO0lBQ3ZCLDJIQUFvQixDQUFBO0lBQ3BCLCtIQUFzQixDQUFBO0lBQ3RCLDZIQUFxQixDQUFBO0lBQ3BCLHVHQUFVLENBQUE7SUFDVix5SUFBMkIsQ0FBQTtJQUMzQiwySUFBNEIsQ0FBQTtBQUM5QixDQUFDLEVBYlcsdUNBQXVDLEtBQXZDLHVDQUF1QyxRQWFsRCIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogbGlzdCBvZiBjaGlsZCB0cmFuc2FjdGlvbnMgaW5jbHVkZWQgaW4gcGFyZW50IGFtb3VudFxuICovXG5leHBvcnQgZW51bSBDaGFydEFjY291bnRzQWRqdXN0bWVudEluY2x1ZGVkTGlzdEVudW0ge1xuXHRBTExPV0FOQ0UgPSA0LFxuXHRUSVBTID0gNSxcblx0UkVJTUJVUlNFTUVOVFMgPSA1NTUsXG5cdEFEVkFOQ0UgPSA1NTYsXG4gIFBIT05FX0FMTE9XQU5DRSA9IDY0Nixcblx0VU5JRk9STV9BTExPV0FOQ0UgPSA2NDcsXG5cdE1FVEFfQUxMT1dBTkNFID0gNjQ4LFxuXHRUUkFWRUxfQUxMT1dBTkNFID0gNjQ5LFxuXHRPVEhFUl9BTExPV0FOQ0UgPSA2NTAsXG4gIExBRkggPSA2NTEsXG4gIEZVTkRTX09WRVJfQURKVVNUTUVOVCA9IDkwNixcbiAgTEFORExPUkRfUkVJTUJVUlNFTUVOVCA9IDkwOFxufVxuIl19
@@ -7,4 +7,4 @@ export class BankAccount extends ObservableModel {
7
7
  __decorate([
8
8
  Type(() => Number)
9
9
  ], BankAccount.prototype, "currentBalance", void 0);
10
- //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GF0ZTtcbiAgYmFua0Nvbm5lY3Rpb24/OiBCYW5rQ29ubmVjdGlvbjtcbiAgYmFua0FjY291bnRQcm9wZXJ0aWVzPzogQmFua0FjY291bnRQcm9wZXJ0eVtdO1xuICBidXNpbmVzc0FsbG9jYXRpb25zPzogU29sZUJ1c2luZXNzQWxsb2NhdGlvbltdO1xuICBiYW5rVHJhbnNhY3Rpb25zPzogQmFua1RyYW5zYWN0aW9uW107XG4gIGJhbGFuY2VzPzogQmFua0FjY291bnRCYWxhbmNlW107XG4gIGxvYW4/OiBMb2FuO1xufVxuIl19
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LXByb3BlcnRpZXMuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9iYW5rL2JhbmstYWNjb3VudC9iYW5rLWFjY291bnQtcHJvcGVydGllcy5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBbUIsZ0JBQWdCLEVBQUUsa0JBQWtCLEVBQUUsZ0JBQWdCLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDckgsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sNENBQTRDLENBQUM7QUFDakYsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2pELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUNoRSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxxQkFBcUIsQ0FB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V0dXJuIGN1cnJlbnRUb3RhbFBlcmNlbnQgPCAxMDAgPyAxMDAgLSBjdXJyZW50VG90YWxQZXJjZW50IDogMDtcbiAgfVxufVxuIl19
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1idXNpbmVzcy1hbGxvY2F0aW9ucy5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL3NvbGUvc29sZS1idXNpbmVzcy1hbGxvY2F0aW9ucy5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBbUIsZ0JBQWdCLEVBQUUsa0JBQWtCLEVBQUUsZ0JBQWdCLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDckgsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2pELE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUN0RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFDN0QsT0FBTyxFQUFFLG9CQUFvQixFQUFFLGtCQUFrQixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFNUU7Ozs7R0FJRztBQUNILE1BQU0sT0FBTywyQkFBNEIsU0FBUSxnQkFBZ0I7SUFDL0QsWUFBWSxtQkFBOEM7UUFDeEQsS0FBSyxDQUNILENBQUMsbUJBQW1CLEVBQUUsTUFBTSxDQUFDLENBQUMsQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDLENBQUMsQ0FBQyxZQUFZLENBQUMsc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../../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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29yay1pbmNvbWUuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy90cmFuc2FjdGlvbi93b3JrL3dvcmstaW5jb21lLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW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MDAkXG4gICAqL1xuICBnZXRBbW91bnQoKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5nZXQoJ25ldEFtb3VudCcpLnZhbHVlIC0gbmV3IENvbGxlY3Rpb24odGhpcy5jdXJyZW50VmFsdWUudHJhbnNhY3Rpb25zKVxuICAgICAgLmZpbHRlcigodCkgPT4gdC5jaGFydEFjY291bnRzPy5pc0FkanVzdG1lbnRJbmNsdWRlZCgpKVxuICAgICAgLnN1bUJ5KCdhbW91bnQnKTtcbiAgfVxuXG4gIHN1Ym1pdChkYXRhOiBvYmplY3QgPSB7fSk6IFRyYW5zYWN0aW9uIHtcbiAgICByZXR1cm4gc3VwZXIuc3VibWl0KE9iamVjdC5hc3NpZ24oZGF0YSwgeyBhbW91bnQ6IHRoaXMuZ2V0QW1vdW50KCkgfSkpO1xuICB9XG59XG4iXX0=
@@ -2,7 +2,6 @@ import { __decorate } from "tslib";
2
2
  import { BankAccount as BankAccountBase } from '../../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
- //# s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Mb2FuQWNjb3VudDtcbiAgfVxuXG4gIGlzTWFudWFsKCkge1xuICAgIHJldHVybiAhdGhpcy5hY2NvdW50SWQ7XG4gIH1cbn1cbiJdfQ==
@@ -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(() => Number)
76
77
  ], BankTransaction.prototype, "amount", void 0);
77
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay10cmFuc2FjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvYmFuay9iYW5rLXRyYW5zYWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsZUFBZSxJQUFJLG1CQUFtQixFQUFFLE1BQU0sdUNBQXVDLENBQUM7QUFDL0YsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDekQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sd0NBQXdDLENBQUM7QUFDL0UsT0FBTyxFQUFFLElBQUksRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkF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Rpb25zOiBUcmFuc2FjdGlvbkFsbG9jYXRpb25Db2xsZWN0aW9uKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5hbW91bnQgLSB0aGlzLmdldEFsbG9jYXRlZEFtb3VudChhbGxvY2F0aW9ucyk7XG4gIH1cbn1cbiJdfQ==
@@ -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,eyJ2ZXJz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4gQ2hhcnRBY2NvdW50c0tlZXBTaWduKTtcbiAgfVxuXG4gIHNldFBhcmVudCh0cmFuc2FjdGlvbjogVHJhbnNhY3Rpb24pOiB2b2lkIHtcbiAgICB0aGlzLmRlc2NyaXB0aW9uID0gdGhpcy5jaGFydEFjY291bnRzLm5hbWU7XG4gICAgdGhpcy5kYXRlID0gdHJhbnNhY3Rpb24uZGF0ZTtcbiAgICB0aGlzLmNsYWltUGVyY2VudCA9IHRyYW5zYWN0aW9uLmNsYWltUGVyY2VudDtcbiAgICB0aGlzLnByb3BlcnR5ID0gdHJhbnNhY3Rpb24ucHJvcGVydHk7XG4gICAgdGhpcy5sb2FuID0gdHJhbnNhY3Rpb24ubG9hbjtcbiAgICB0aGlzLmluY29tZVNvdXJjZSA9IHRyYW5zYWN0aW9uLmluY29tZVNvdXJjZTtcbiAgICB0aGlzLmJ1c2luZXNzID0gdHJhbnNhY3Rpb24uYnVzaW5lc3M7XG4gIH1cblxuICBpc0VkaXRhYmxlKCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiAhQ2hhcnRBY2NvdW50cy5zeXN0ZW1MaXN0LmluY2x1ZGVzKHRoaXMuY2hhcnRBY2NvdW50cy5pZCk7XG4gIH1cbn1cbiJdfQ==
@@ -1129,6 +1129,9 @@ var ChartAccountsSalaryAdjustmentsListEnum;
1129
1129
  ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["WORK_PLACE_GIVING"] = 653] = "WORK_PLACE_GIVING";
1130
1130
  })(ChartAccountsSalaryAdjustmentsListEnum || (ChartAccountsSalaryAdjustmentsListEnum = {}));
1131
1131
 
1132
+ /**
1133
+ * list of child transactions included in parent amount
1134
+ */
1132
1135
  var ChartAccountsAdjustmentIncludedListEnum;
1133
1136
  (function (ChartAccountsAdjustmentIncludedListEnum) {
1134
1137
  ChartAccountsAdjustmentIncludedListEnum[ChartAccountsAdjustmentIncludedListEnum["ALLOWANCE"] = 4] = "ALLOWANCE";
@@ -6412,8 +6415,7 @@ class Transaction extends Transaction$1 {
6412
6415
  return grossAmount;
6413
6416
  }
6414
6417
  // included transactions affect parent transaction amount and as a result grossAmount, skip to avoid double sum
6415
- const adjustments = new Collection(this.transactions)
6416
- .filter(transaction => !transaction.chartAccounts?.isAdjustmentIncluded());
6418
+ const adjustments = new Collection(this.transactions).filter(transaction => ![ChartAccountsAdjustmentIncludedListEnum.FUNDS_OVER_ADJUSTMENT, ChartAccountsAdjustmentIncludedListEnum.LANDLORD_REIMBURSEMENT].includes(transaction.chartAccounts?.id));
6417
6419
  const income = adjustments.filter(transaction => transaction.isIncome()).sumBy('amount');
6418
6420
  const expense = adjustments.filter(transaction => transaction.isExpense()).sumBy('amount', true);
6419
6421
  // all adjustments except property income increase grossIncome
@@ -9811,16 +9813,6 @@ class BankAccount extends BankAccount$1 {
9811
9813
  isSoleTank() {
9812
9814
  return !!this.businessAllocations.length;
9813
9815
  }
9814
- get tankType() {
9815
- switch (true) {
9816
- case this.isPropertyTank():
9817
- return TankTypeEnum.PROPERTY;
9818
- case this.isSoleTank():
9819
- return TankTypeEnum.SOLE;
9820
- default:
9821
- return TankTypeEnum.WORK;
9822
- }
9823
- }
9824
9816
  /**
9825
9817
  * Get Bank account property by id
9826
9818
  * @param id Id of property
@@ -10006,7 +9998,7 @@ class BankTransaction extends BankTransaction$1 {
10006
9998
  * Get bank transaction allocated amount
10007
9999
  */
10008
10000
  getAllocatedAmount(allocations) {
10009
- return allocations.getByBankTransactionsIds([this.id]).amount;
10001
+ return round(allocations.getByBankTransactionsIds([this.id]).amount, 2);
10010
10002
  }
10011
10003
  /**
10012
10004
  * Get bank transaction unallocated amount
@@ -24059,15 +24051,17 @@ class WorkTransactionForm extends TransactionForm {
24059
24051
 
24060
24052
  class WorkIncomeForm extends WorkTransactionForm {
24061
24053
  constructor(transaction, registeredForGst, allocations) {
24062
- // for work income we need to show netAmount instead of amount (because some adjustments are included in amount)
24063
- transaction.amount = transaction.netAmount;
24064
24054
  super(transaction, registeredForGst, allocations, {
24055
+ netAmount: new UntypedFormControl(transaction.netAmount, Validators.required),
24065
24056
  tax: new UntypedFormControl({
24066
24057
  value: transaction.tax,
24067
24058
  disabled: !transaction.chartAccounts || transaction.chartAccounts.isNRAS(),
24068
24059
  }, Validators.required),
24069
24060
  incomeSource: new UntypedFormControl(transaction.incomeSource, [Validators.required, autocompleteValidator()]),
24070
24061
  });
24062
+ if (allocations.length) {
24063
+ this.get('netAmount').disable();
24064
+ }
24071
24065
  // forbid to edit some fields for allocated transaction
24072
24066
  if (allocations.length) {
24073
24067
  this.get('chartAccounts').disable();
@@ -24130,7 +24124,7 @@ class WorkIncomeForm extends WorkTransactionForm {
24130
24124
  * ie bankTransaction=1000$ with 900$ salary and 100$ tips will create 2 transactions with 900$ and 100$
24131
24125
  */
24132
24126
  getAmount() {
24133
- return this.get('amount').value - new Collection(this.currentValue.transactions)
24127
+ return this.get('netAmount').value - new Collection(this.currentValue.transactions)
24134
24128
  .filter((t) => t.chartAccounts?.isAdjustmentIncluded())
24135
24129
  .sumBy('amount');
24136
24130
  }