mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Correct amount when editing. [skip ci]
This commit is contained in:
parent
1a296265a3
commit
0aef3c977d
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user