Expand frontend, first attempt at sorting.

This commit is contained in:
James Cole
2024-02-25 18:09:52 +01:00
parent 243f283bfd
commit 9222c82af0
66 changed files with 1989 additions and 554 deletions

View File

@@ -175,6 +175,11 @@ let transactions = function () {
console.log('Transaction type is detected to be "' + this.groupProperties.transactionType + '".');
return;
}
if ('unknown' === sourceType && ['Asset account', 'Debt', 'Loan', 'Mortgage'].includes(destType)) {
this.groupProperties.transactionType = 'deposit';
console.log('Transaction type is detected to be "' + this.groupProperties.transactionType + '".');
return;
}
if (['Debt', 'Loan', 'Mortgage'].includes(sourceType) && 'Asset account' === destType) {
this.groupProperties.transactionType = 'deposit';
console.log('Transaction type is detected to be "' + this.groupProperties.transactionType + '".');