mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-26 13:36:15 +00:00
Add some debug info
This commit is contained in:
@@ -154,6 +154,7 @@ class ShowController extends Controller
|
|||||||
if (null !== $transaction['foreign_amount'] && '' !== $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'];
|
||||||
|
Log::debug(sprintf('Foreign currency symbol is "%s"', $foreignSymbol));
|
||||||
if (!array_key_exists($foreignSymbol, $amounts)) {
|
if (!array_key_exists($foreignSymbol, $amounts)) {
|
||||||
$amounts[$foreignSymbol] = [
|
$amounts[$foreignSymbol] = [
|
||||||
'amount' => '0',
|
'amount' => '0',
|
||||||
@@ -164,6 +165,7 @@ class ShowController extends Controller
|
|||||||
$amounts[$foreignSymbol]['amount'] = bcadd($amounts[$foreignSymbol]['amount'], $transaction['foreign_amount']);
|
$amounts[$foreignSymbol]['amount'] = bcadd($amounts[$foreignSymbol]['amount'], $transaction['foreign_amount']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Log::debug('Result', $amounts);
|
||||||
|
|
||||||
return $amounts;
|
return $amounts;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user