taxtank-core 2.1.57 → 2.1.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7194,6 +7194,9 @@ class Transaction extends Transaction$1 {
7194
7194
  calculation: this.property ? this.property.depreciationCalculation : DepreciationCalculationEnum.PRIME_COST,
7195
7195
  transactions: [this],
7196
7196
  business: this.business,
7197
+ currency: this.currency,
7198
+ exchangeRate: this.exchangeRate,
7199
+ foreignAmount: this.foreignAmount,
7197
7200
  });
7198
7201
  }
7199
7202
  /**
@@ -27344,6 +27347,8 @@ class TransactionForm extends TransactionBaseForm {
27344
27347
  buildTransactions(transaction) {
27345
27348
  return this.get('transactions').value.map((childTransaction) => Object.assign({
27346
27349
  description: childTransaction.chartAccounts?.name,
27350
+ currency: transaction.currency,
27351
+ exchangeRate: transaction.exchangeRate,
27347
27352
  date: transaction.date,
27348
27353
  claimPercent: (transaction.claimPercent * childTransaction.chartAccounts?.taxablePercent) / 100,
27349
27354
  source: TransactionSourceEnum.BANK_TRANSACTION,