Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix #11399
James Cole581d67a92cb3
diff --git a/public/v1/js/.gitkeep b/public/v1/js/.gitkeepold mode 100644new mode 100755diff --git a/resources/assets/v1/src/components/transactions/ForeignAmountSelect.vue b/resources/assets/v1/src/components/transactions/ForeignAmountSelect.vueindex fdcc48f80b..53fd2c26c5 100644--- a/resources/assets/v1/src/components/transactions/ForeignAmountSelect.vue+++ b/resources/assets/v1/src/components/transactions/ForeignAmountSelect.vue@@ -68,8 +68,8 @@ export default {props: ['source', 'destination', 'transactionType', 'value', 'error', 'no_currency', 'title',],mounted() {this.liability = false;- // console.log('I am mounted with a ' + this.transactionType + ' transaction type and currency id!');- // console.log(this.value);+ console.log('ForeignAmountSelect is mounted with a ' + this.transactionType + ' transaction type and currency id!');+ console.log(this.value);this.loadCurrencies();},data() {@@ -124,23 +124,25 @@ export default {let sourceIsLiability = liabilities.indexOf(srcType) !== -1;let destIsLiability = liabilities.indexOf(destType) !== -1;+// console.log(srcType + ' (source) is a liability: ' + sourceIsLiability);// console.log(destType + ' (dest) is a liability: ' + destIsLiability);// console.log('tType: ' + tType);if (tType === 'transfer' || destIsLiability || sourceIsLiability) {- // console.log('Source is liability OR dest is liability, OR transfer. Lock list on currency of destination.');+ console.log('Source or dest is a liability.')+ console.log('Source is liability OR dest is liability, OR transfer. Lock list on currency of destination.');// console.log('Length of currencies is ' + this.currencies.length);// console.log(this.currencies);this.liability = true;- // lock dropdown list on currencyID of destination.+ // lock dropdown list on currencyID of destination UNLESS dest is not liabfor (const key in this.currencies) {if (this.currencies.hasOwnProperty(key) && /^0$|^[1-9]\d*$/.test(key) && key <= 4294967294) {if (- parseInt(this.currencies[key].id) === parseInt(this.destination.currency_id)+ parseInt(this.currencies[key].id) === parseInt(this.destination.currency_id) || !destIsLiability) {- // console.log('Enable currency!!');+ console.log('Enable currency!!');+ console.log(this.currencies[key]);// console.log(this.destination);- // console.log(this.currencies[key]);this.enabledCurrencies.push(this.currencies[key]);}}@@ -151,6 +153,7 @@ export default {// if type is withdrawal, list all but skip the source account ID.if (tType === 'withdrawal' && this.source && false === sourceIsLiability) {+ console.log('Type is withdrawal, there is a source, it is not a liability.')for (const key in this.currencies) {if (this.currencies.hasOwnProperty(key) && /^0$|^[1-9]\d*$/.test(key) && key <= 4294967294) {if (this.source.currency_id !== this.currencies[key].id) {