diff --git a/src/stores/transaction.js b/src/stores/transaction.js index 2668784a..0303dfb0 100644 --- a/src/stores/transaction.js +++ b/src/stores/transaction.js @@ -627,7 +627,7 @@ export const useTransactionsStore = defineStore('transactions', { geoLocation: null }; }, - setTransactionSuitableDestinationAmount(transaction, oldValue, newValue, destinationAccountCurrency) { + setTransactionSuitableDestinationAmount(transaction, oldValue, newValue) { const accountsStore = useAccountsStore(); const exchangeRatesStore = useExchangeRatesStore(); @@ -638,7 +638,7 @@ export const useTransactionsStore = defineStore('transactions', { const destinationAccount = accountsStore.allAccountsMap[transaction.destinationAccountId]; if (sourceAccount && destinationAccount && sourceAccount.currency !== destinationAccount.currency) { - const decimalNumberCount = getCurrencyFraction(destinationAccountCurrency); + const decimalNumberCount = getCurrencyFraction(destinationAccount.currency); const exchangedOldValue = exchangeRatesStore.getExchangedAmount(oldValue, sourceAccount.currency, destinationAccount.currency); const exchangedNewValue = exchangeRatesStore.getExchangedAmount(newValue, sourceAccount.currency, destinationAccount.currency); diff --git a/src/views/desktop/transactions/list/dialogs/EditDialog.vue b/src/views/desktop/transactions/list/dialogs/EditDialog.vue index b3472fcf..b9dfbc13 100644 --- a/src/views/desktop/transactions/list/dialogs/EditDialog.vue +++ b/src/views/desktop/transactions/list/dialogs/EditDialog.vue @@ -757,7 +757,7 @@ export default { return; } - this.transactionsStore.setTransactionSuitableDestinationAmount(this.transaction, oldValue, newValue, this.destinationAccountCurrency); + this.transactionsStore.setTransactionSuitableDestinationAmount(this.transaction, oldValue, newValue); }, 'transaction.destinationAmount': function (newValue) { if (this.mode === 'view' || this.loading) { diff --git a/src/views/mobile/transactions/EditPage.vue b/src/views/mobile/transactions/EditPage.vue index fea615aa..ef7c81de 100644 --- a/src/views/mobile/transactions/EditPage.vue +++ b/src/views/mobile/transactions/EditPage.vue @@ -882,7 +882,7 @@ export default { return; } - this.transactionsStore.setTransactionSuitableDestinationAmount(this.transaction, oldValue, newValue, this.destinationAccountCurrency); + this.transactionsStore.setTransactionSuitableDestinationAmount(this.transaction, oldValue, newValue); }, 'transaction.destinationAmount': function (newValue) { if (this.mode === 'view' || this.loading) {