mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-19 08:00:19 +00:00
Better check on foreign currency.
This commit is contained in:
@@ -149,7 +149,7 @@ class ShowController extends Controller
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
$amounts[$symbol]['amount'] = bcadd($amounts[$symbol]['amount'], $transaction['amount']);
|
$amounts[$symbol]['amount'] = bcadd($amounts[$symbol]['amount'], $transaction['amount']);
|
||||||
if (null !== $transaction['foreign_amount']) {
|
if (null !== $transaction['foreign_amount'] && '' !== $transaction['foreign_amount']) {
|
||||||
// same for foreign currency:
|
// same for foreign currency:
|
||||||
$foreignSymbol = $transaction['foreign_currency_symbol'];
|
$foreignSymbol = $transaction['foreign_currency_symbol'];
|
||||||
if (!array_key_exists($foreignSymbol, $amounts)) {
|
if (!array_key_exists($foreignSymbol, $amounts)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user