Fixed some display bugs for split journals.

This commit is contained in:
James Cole
2016-11-20 14:17:16 +01:00
parent bd8a285d6d
commit 78f297e18f
5 changed files with 5 additions and 31 deletions

View File

@@ -298,7 +298,7 @@ class JournalExportCollector extends BasicCollector implements CollectorInterfac
'transactions AS opposing', function (JoinClause $join) {
$join->on('opposing.transaction_journal_id', '=', 'transactions.transaction_journal_id')
->where('opposing.amount', '=', DB::raw('transactions.amount * -1'))
->where('transactions.identifier', '=', 'opposing.identifier');
->where('transactions.identifier', '=', DB::raw('opposing.identifier'));
}
)
->leftJoin('accounts', 'transactions.account_id', '=', 'accounts.id')