From b03a36b87ff0008780303edddf1fdb91b8252b9a Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 25 Jul 2022 05:48:59 +0200 Subject: [PATCH] Add some debug info --- app/Http/Controllers/Transaction/ShowController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/Transaction/ShowController.php b/app/Http/Controllers/Transaction/ShowController.php index 52481f5562..4b4fdc0afd 100644 --- a/app/Http/Controllers/Transaction/ShowController.php +++ b/app/Http/Controllers/Transaction/ShowController.php @@ -154,6 +154,7 @@ class ShowController extends Controller if (null !== $transaction['foreign_amount'] && '' !== $transaction['foreign_amount']) { // same for foreign currency: $foreignSymbol = $transaction['foreign_currency_symbol']; + Log::debug(sprintf('Foreign currency symbol is "%s"', $foreignSymbol)); if (!array_key_exists($foreignSymbol, $amounts)) { $amounts[$foreignSymbol] = [ 'amount' => '0', @@ -164,6 +165,7 @@ class ShowController extends Controller $amounts[$foreignSymbol]['amount'] = bcadd($amounts[$foreignSymbol]['amount'], $transaction['foreign_amount']); } } + Log::debug('Result', $amounts); return $amounts; }