mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-22 03:56:42 +00:00
This commit is contained in:
2
public/v1/js/create_transaction.js
vendored
2
public/v1/js/create_transaction.js
vendored
File diff suppressed because one or more lines are too long
2
public/v1/js/edit_transaction.js
vendored
2
public/v1/js/edit_transaction.js
vendored
File diff suppressed because one or more lines are too long
2
public/v1/js/profile.js
vendored
2
public/v1/js/profile.js
vendored
File diff suppressed because one or more lines are too long
@@ -223,6 +223,8 @@
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-success" id="submitButton" @click="submit">{{ $t('firefly.submit') }}</button>
|
||||
</div>
|
||||
<p class="text-success" v-html="success_message"></p>
|
||||
<p class="text-danger" v-html="error_message"></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -680,8 +682,10 @@ export default {
|
||||
this.setDefaultErrors();
|
||||
this.error_message = "";
|
||||
if (typeof errors.errors === 'undefined') {
|
||||
this.success_message = '';
|
||||
this.error_message = errors.message;
|
||||
} else {
|
||||
this.success_message = '';
|
||||
this.error_message = this.$t('firefly.errors_submission');
|
||||
}
|
||||
let transactionIndex;
|
||||
|
@@ -394,11 +394,11 @@ export default {
|
||||
newTags.push({text: transaction.tags[key], tiClasses: []});
|
||||
}
|
||||
}
|
||||
console.log('source allowed types for a ' + transaction.type);
|
||||
// console.log('source allowed types for a ' + transaction.type);
|
||||
//console.log(window.expectedSourceTypes.source[transaction.type]);
|
||||
console.log(window.expectedSourceTypes.source[this.ucFirst(transaction.type)]);
|
||||
console.log('destination allowed types for a ' + transaction.type);
|
||||
console.log(window.expectedSourceTypes.destination[this.ucFirst(transaction.type)]);
|
||||
// console.log(window.expectedSourceTypes.source[this.ucFirst(transaction.type)]);
|
||||
// console.log('destination allowed types for a ' + transaction.type);
|
||||
// console.log(window.expectedSourceTypes.destination[this.ucFirst(transaction.type)]);
|
||||
|
||||
this.transactions.push({
|
||||
transaction_journal_id: transaction.transaction_journal_id,
|
||||
@@ -538,6 +538,16 @@ export default {
|
||||
destId = row.destination_account.id;
|
||||
destName = row.destination_account.name;
|
||||
|
||||
// depends on the transaction type, where we get the currency.
|
||||
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) {
|
||||
row.currency_id = row.destination_account.currency_id;
|
||||
console.log('Overruled currency ID to ' + row.currency_id);
|
||||
}
|
||||
|
||||
date = row.date;
|
||||
if (index > 0) {
|
||||
date = this.transactions[0].date;
|
||||
@@ -927,7 +937,7 @@ export default {
|
||||
this.transactions[transactionIndex].errors[fieldName] = errors.errors[key];
|
||||
break;
|
||||
case 'external_uri':
|
||||
console.log('Found ext error in field "' + fieldName + '": ' + errors.errors[key]);
|
||||
//console.log('Found ext error in field "' + fieldName + '": ' + errors.errors[key]);
|
||||
this.transactions[transactionIndex].errors.custom_errors[fieldName] = errors.errors[key];
|
||||
break;
|
||||
case 'source_name':
|
||||
|
18
yarn.lock
18
yarn.lock
@@ -259,9 +259,9 @@
|
||||
js-tokens "^4.0.0"
|
||||
|
||||
"@babel/parser@^7.10.4", "@babel/parser@^7.11.0", "@babel/parser@^7.11.1":
|
||||
version "7.11.2"
|
||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.11.2.tgz#0882ab8a455df3065ea2dcb4c753b2460a24bead"
|
||||
integrity sha512-Vuj/+7vLo6l1Vi7uuO+1ngCDNeVmNbTngcJFKCR/oEtz8tKz0CJxZEGmPt9KcIloZhOZ3Zit6xbpXT2MDlS9Vw==
|
||||
version "7.11.3"
|
||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.11.3.tgz#9e1eae46738bcd08e23e867bab43e7b95299a8f9"
|
||||
integrity sha512-REo8xv7+sDxkKvoxEywIdsNFiZLybwdI7hcT5uEPyQrSMB4YQ973BfC9OOrD/81MaIjh6UxdulIQXkjmiH3PcA==
|
||||
|
||||
"@babel/plugin-proposal-async-generator-functions@^7.10.4":
|
||||
version "7.10.5"
|
||||
@@ -2504,9 +2504,9 @@ ee-first@1.1.1:
|
||||
integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=
|
||||
|
||||
electron-to-chromium@^1.3.523:
|
||||
version "1.3.524"
|
||||
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.524.tgz#dd49646594466192de35956a5369bb20d616aa78"
|
||||
integrity sha512-ZUvklIBkfXQyA6IeiEss1nfKRICcdB5afAGZAaPGaExdfrkpUu/WWVO+X7QpNnphaVMllXnAcvKnVPdyM+DCPQ==
|
||||
version "1.3.526"
|
||||
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.526.tgz#0e004899edf75afc172cce1b8189aac5dca646aa"
|
||||
integrity sha512-HiroW5ZbGwgT8kCnoEO8qnGjoTPzJxduvV/Vv/wH63eo2N6Zj3xT5fmmaSPAPUM05iN9/5fIEkIg3owTtV6QZg==
|
||||
|
||||
elliptic@^6.5.3:
|
||||
version "6.5.3"
|
||||
@@ -4951,9 +4951,9 @@ posix-character-classes@^0.1.0:
|
||||
integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=
|
||||
|
||||
postcss-calc@^7.0.1:
|
||||
version "7.0.2"
|
||||
resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-7.0.2.tgz#504efcd008ca0273120568b0792b16cdcde8aac1"
|
||||
integrity sha512-rofZFHUg6ZIrvRwPeFktv06GdbDYLcGqh9EwiMutZg+a0oePCCw1zHOEiji6LCpyRcjTREtPASuUqeAvYlEVvQ==
|
||||
version "7.0.3"
|
||||
resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-7.0.3.tgz#d65cca92a3c52bf27ad37a5f732e0587b74f1623"
|
||||
integrity sha512-IB/EAEmZhIMEIhG7Ov4x+l47UaXOS1n2f4FBUk/aKllQhtSCxWhTzn0nJgkqN7fo/jcWySvWTSB6Syk9L+31bA==
|
||||
dependencies:
|
||||
postcss "^7.0.27"
|
||||
postcss-selector-parser "^6.0.2"
|
||||
|
Reference in New Issue
Block a user