Fix detection of transaction type.

This commit is contained in:
James Cole
2024-02-25 18:24:10 +01:00
parent 2564470197
commit d9fba39d80
5 changed files with 8 additions and 4 deletions

View File

@@ -183,7 +183,7 @@ let transactions = function () {
if ('Expense account' === sourceType && ['Asset account', 'Debt', 'Loan', 'Mortgage'].includes(destType)) {
this.groupProperties.transactionType = 'deposit';
console.warn('FORCE transaction type to be "' + this.groupProperties.transactionType + '".');
this.entries[0].source_account.id = null;
this.entries[0].source_account.id = '';
return;
}
if (['Debt', 'Loan', 'Mortgage'].includes(sourceType) && 'Asset account' === destType) {