mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
This commit is contained in:
parent
704c6055b3
commit
7fcdf85dee
@ -221,7 +221,7 @@ class TransactionGroupTwig extends AbstractExtension
|
|||||||
/** @var Transaction $first */
|
/** @var Transaction $first */
|
||||||
$first = $journal->transactions()->where('amount', '<', 0)->first();
|
$first = $journal->transactions()->where('amount', '<', 0)->first();
|
||||||
|
|
||||||
return null !== $first->foreign_amount;
|
return '' !== $first->foreign_amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -237,7 +237,7 @@ class TransactionGroupTwig extends AbstractExtension
|
|||||||
/** @var Transaction $first */
|
/** @var Transaction $first */
|
||||||
$first = $journal->transactions()->where('amount', '<', 0)->first();
|
$first = $journal->transactions()->where('amount', '<', 0)->first();
|
||||||
$currency = $first->foreignCurrency;
|
$currency = $first->foreignCurrency;
|
||||||
$amount = $first->foreign_amount ?? '0';
|
$amount = '' === $first->foreign_amount ? '0' : $first->foreign_amount;
|
||||||
$colored = true;
|
$colored = true;
|
||||||
$sourceType = $first->account()->first()->accountType()->first()->type;
|
$sourceType = $first->account()->first()->accountType()->first()->type;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user