mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-10-13 08:52:05 -05:00
Correct amount when editing. [skip ci]
This commit is contained in:
1 parent
1a296265a3
commit
0aef3c977d
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user