This commit is contained in:
James Cole 2020-03-22 18:27:20 +01:00
parent cdebde5a2b
commit 1797880488
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 9 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -87,7 +87,7 @@
v-on:select:account="selectedDestinationAccount(index, $event)"
:error="transaction.errors.destination_account"
></account-select>
<standard-date
<standard-date v-if="0===index"
v-model="transaction.date"
:index="index"
:error="transaction.errors.date"
@ -263,10 +263,7 @@
'debt': 'Debt',
'mortgage': 'Mortgage'
};
let value = arr[searchType] ?? searchType;
// console.log('FULL account type: ' + value);
return value;
return arr[searchType] ?? searchType;
},
convertData: function () {
// console.log('Now in convertData()');
@ -303,6 +300,12 @@
data.transactions.push(this.convertDataRow(this.transactions[key], key, transactionType));
}
}
// overrule group title in case its empty:
if(''===data.group_title && data.transactions.length > 1) {
data.group_title = data.transactions[0].description;
}
return data;
},
convertDataRow(row, index, transactionType) {