mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Possible fix for #2936
This commit is contained in:
parent
c193284471
commit
cc09a15dcf
@ -186,9 +186,9 @@ class ReportController extends Controller
|
||||
// in our outgoing?
|
||||
$key = 'spent';
|
||||
$amount = app('steam')->positive($journal['amount']);
|
||||
if (TransactionType::DEPOSIT === $journal['transaction_type_type'] ||
|
||||
(TransactionType::TRANSFER === $journal['transaction_type_type']
|
||||
&& in_array($journal['destination_account_id'], $ids, true)
|
||||
if (TransactionType::DEPOSIT === $journal['transaction_type_type'] || ((TransactionType::TRANSFER === $journal['transaction_type_type']
|
||||
|| TransactionType::OPENING_BALANCE === $journal['transaction_type_type'])
|
||||
&& in_array($journal['destination_account_id'], $ids, true)
|
||||
)) {
|
||||
$key = 'earned';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user