diff --git a/public/js/ff/transactions/single/create.js b/public/js/ff/transactions/single/create.js index 7ecf067652..6c73e8dd46 100644 --- a/public/js/ff/transactions/single/create.js +++ b/public/js/ff/transactions/single/create.js @@ -77,7 +77,7 @@ function selectsDifferentSource() { var sourceId = $('select[name="source_account_id"]').val(); var sourceCurrency = accountInfo[sourceId].preferredCurrency; $('input[name="source_account_currency"]').val(sourceCurrency); - console.log('Set source account currency to ' + sourceCurrency); + console.log('selectsDifferenctSource(): Set source account currency to ' + sourceCurrency); // change input thing: $('.currency-option[data-id="' + sourceCurrency + '"]').click(); @@ -101,7 +101,7 @@ function selectsDifferentDestination() { var destinationId = $('select[name="destination_account_id"]').val(); var destinationCurrency = accountInfo[destinationId].preferredCurrency; $('input[name="destination_account_currency"]').val(destinationCurrency); - console.log('Set destinationId account currency to ' + destinationCurrency); + console.log('selectsDifferentDestination(): Set destinationId account currency to ' + destinationCurrency); // change input thing: $('.currency-option[data-id="' + destinationCurrency + '"]').click(); diff --git a/public/js/ff/transactions/single/edit.js b/public/js/ff/transactions/single/edit.js index 4efa559332..86b79bf30a 100644 --- a/public/js/ff/transactions/single/edit.js +++ b/public/js/ff/transactions/single/edit.js @@ -62,8 +62,8 @@ function initCurrencyIdValues() { var currencyId; if (journal.transaction_type.type === "Withdrawal") { // update source from page load info: - currencyId = $('input[name="amount_currency_id_amount"]').val(); - console.log('Set source account currency to ' + currencyId); + currencyId = journalData.native_currency.id; + console.log('initCurrencyIdValues() withdrawal: Set source account currency to ' + currencyId); $('input[name="source_account_currency"]').val(currencyId); return; } @@ -83,7 +83,7 @@ function initCurrencyIdValues() { var sourceCurrency = parseInt(accountInfo[sourceAccount].preferredCurrency); var destCurrency = parseInt(accountInfo[destAccount].preferredCurrency); - console.log('Set source account currency to ' + sourceCurrency); + console.log('initCurrencyIdValues(): Set source account currency to ' + sourceCurrency); $('input[name="source_account_currency"]').val(sourceCurrency); console.log('Set destination account currency to ' + destCurrency);