mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix #3715
This commit is contained in:
@@ -539,11 +539,11 @@ export default {
|
||||
destName = row.destination_account.name;
|
||||
|
||||
// depends on the transaction type, where we get the currency.
|
||||
if('withdrawal' === transactionType || 'transfer' === transactionType) {
|
||||
if ('withdrawal' === transactionType || 'transfer' === transactionType) {
|
||||
row.currency_id = row.source_account.currency_id;
|
||||
// console.log('Overruled currency ID to ' + row.currency_id);
|
||||
}
|
||||
if('deposit' === transactionType) {
|
||||
if ('deposit' === transactionType) {
|
||||
row.currency_id = row.destination_account.currency_id;
|
||||
// console.log('Overruled currency ID to ' + row.currency_id);
|
||||
}
|
||||
@@ -576,7 +576,7 @@ export default {
|
||||
}
|
||||
|
||||
tagList = [];
|
||||
foreignAmount = null;
|
||||
foreignAmount = '0';
|
||||
foreignCurrency = null;
|
||||
// loop tags
|
||||
for (let tagKey in row.tags) {
|
||||
@@ -638,10 +638,10 @@ export default {
|
||||
notes: row.custom_fields.notes,
|
||||
tags: tagList
|
||||
};
|
||||
if (null !== foreignAmount) {
|
||||
currentArray.foreign_amount = foreignAmount;
|
||||
currentArray.foreign_currency_id = foreignCurrency;
|
||||
}
|
||||
// always submit foreign amount info.
|
||||
currentArray.foreign_amount = foreignAmount;
|
||||
currentArray.foreign_currency_id = foreignCurrency;
|
||||
|
||||
// set budget id and piggy ID.
|
||||
currentArray.budget_id = parseInt(row.budget);
|
||||
currentArray.bill_id = parseInt(row.bill);
|
||||
|
@@ -34,7 +34,7 @@
|
||||
v-for="currency in this.enabledCurrencies"
|
||||
:value="currency.id"
|
||||
:label="currency.attributes.name"
|
||||
:selected="value.currency_id === currency.id"
|
||||
:selected="parseInt(value.currency_id) === parseInt(currency.id)"
|
||||
|
||||
>
|
||||
{{ currency.attributes.name }}
|
||||
@@ -67,9 +67,9 @@
|
||||
|
||||
props: ['source', 'destination', 'transactionType', 'value', 'error', 'no_currency', 'title',],
|
||||
mounted() {
|
||||
//console.log('ForeignAmountSelect mounted()');
|
||||
this.liability = false;
|
||||
this.loadCurrencies();
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
Reference in New Issue
Block a user