mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Skip empty foreign currency
This commit is contained in:
parent
b03a36b87f
commit
38b505d036
@ -151,7 +151,7 @@ class ShowController extends Controller
|
||||
];
|
||||
}
|
||||
$amounts[$symbol]['amount'] = bcadd($amounts[$symbol]['amount'], $transaction['amount']);
|
||||
if (null !== $transaction['foreign_amount'] && '' !== $transaction['foreign_amount']) {
|
||||
if (null !== $transaction['foreign_amount'] && '' !== $transaction['foreign_amount'] && bccomp('0', $transaction['foreign_amount']) !== 0) {
|
||||
// same for foreign currency:
|
||||
$foreignSymbol = $transaction['foreign_currency_symbol'];
|
||||
Log::debug(sprintf('Foreign currency symbol is "%s"', $foreignSymbol));
|
||||
|
Loading…
Reference in New Issue
Block a user