mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 19:53:44 +00:00
Correct amount when editing. [skip ci]
This commit is contained in:
@@ -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