mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 07:08:19 +00:00
Correct amount when editing. [skip ci]
This commit is contained in:
@@ -378,7 +378,7 @@ class EloquentTransactionJournalRepository implements TransactionJournalReposito
|
|||||||
// update the amounts:
|
// update the amounts:
|
||||||
/** @var \Transaction $transaction */
|
/** @var \Transaction $transaction */
|
||||||
$transactions = $journal->transactions()->orderBy('amount', 'ASC')->get();
|
$transactions = $journal->transactions()->orderBy('amount', 'ASC')->get();
|
||||||
$transactions[0]->amount = $amount;
|
$transactions[0]->amount = $amount * -1;
|
||||||
$transactions[1]->amount = $amount;
|
$transactions[1]->amount = $amount;
|
||||||
|
|
||||||
// switch on type to properly change things:
|
// switch on type to properly change things:
|
||||||
|
|||||||
Reference in New Issue
Block a user