This commit is contained in:
James Cole 2019-09-12 06:47:04 +02:00
parent a0780e434e
commit 88c08188f7
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
3 changed files with 13 additions and 10 deletions

View File

@ -35,7 +35,7 @@ class ChangesFor3101 extends Migration
{
Schema::table(
'import_jobs',
function (Blueprint $table) {
static function (Blueprint $table) {
$table->dropColumn('extended_status');
}
);
@ -50,7 +50,7 @@ class ChangesFor3101 extends Migration
{
Schema::table(
'import_jobs',
function (Blueprint $table) {
static function (Blueprint $table) {
$table->text('extended_status')->nullable();
}
);

2
public/v1/js/app.js vendored

File diff suppressed because one or more lines are too long

View File

@ -664,9 +664,12 @@
for (const fileKey in attachments[key].files) {
if (attachments[key].files.hasOwnProperty(fileKey) && /^0$|^[1-9]\d*$/.test(fileKey) && fileKey <= 4294967294) {
// include journal thing.
let transactions = response.data.data.attributes.transactions.reverse();
toBeUploaded.push(
{
journal: response.data.data.attributes.transactions[key].transaction_journal_id,
journal: transactions[key].transaction_journal_id,
file: attachments[key].files[fileKey]
}
);
@ -864,13 +867,13 @@
this.transactions[transactionIndex].errors.foreign_amount.concat(errors.errors[key]);
break;
}
}
// unique some things
this.transactions[transactionIndex].errors.source_account =
Array.from(new Set(this.transactions[transactionIndex].errors.source_account));
this.transactions[transactionIndex].errors.destination_account =
Array.from(new Set(this.transactions[transactionIndex].errors.destination_account));
// unique some things
this.transactions[transactionIndex].errors.source_account =
Array.from(new Set(this.transactions[transactionIndex].errors.source_account));
this.transactions[transactionIndex].errors.destination_account =
Array.from(new Set(this.transactions[transactionIndex].errors.destination_account));
}
}
}
},