mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Merge branch 'develop' into 5.8-dev
# Conflicts: # app/Factory/TransactionJournalFactory.php # app/Providers/EventServiceProvider.php # app/Repositories/PiggyBank/ModifiesPiggyBanks.php # app/Support/Search/OperatorQuerySearch.php # app/Support/Steam.php # app/TransactionRules/Actions/UpdatePiggybank.php # composer.json # composer.lock # config/search.php # frontend/yarn.lock # resources/lang/en_US/firefly.php
This commit is contained in:
@@ -219,7 +219,7 @@ class TransactionGroupTwig extends AbstractExtension
|
||||
/** @var Transaction $first */
|
||||
$first = $journal->transactions()->where('amount', '<', 0)->first();
|
||||
|
||||
return null !== $first->foreign_amount;
|
||||
return '' !== $first->foreign_amount;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -235,7 +235,7 @@ class TransactionGroupTwig extends AbstractExtension
|
||||
/** @var Transaction $first */
|
||||
$first = $journal->transactions()->where('amount', '<', 0)->first();
|
||||
$currency = $first->foreignCurrency;
|
||||
$amount = $first->foreign_amount ?? '0';
|
||||
$amount = '' === $first->foreign_amount ? '0' : $first->foreign_amount;
|
||||
$colored = true;
|
||||
$sourceType = $first->account()->first()->accountType()->first()->type;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user