Correct amount when editing. [skip ci]

This commit is contained in:
James Cole 2014-08-09 06:32:55 +02:00
parent 1a296265a3
commit 0aef3c977d

View File

@ -378,7 +378,7 @@ class EloquentTransactionJournalRepository implements TransactionJournalReposito
// update the amounts:
/** @var \Transaction $transaction */
$transactions = $journal->transactions()->orderBy('amount', 'ASC')->get();
$transactions[0]->amount = $amount;
$transactions[0]->amount = $amount * -1;
$transactions[1]->amount = $amount;
// switch on type to properly change things: