diff --git a/app/Http/Controllers/Transaction/ShowController.php b/app/Http/Controllers/Transaction/ShowController.php index a4af0ffc6b..4454121bb8 100644 --- a/app/Http/Controllers/Transaction/ShowController.php +++ b/app/Http/Controllers/Transaction/ShowController.php @@ -101,7 +101,6 @@ class ShowController extends Controller $groupArray = $transformer->transformObject($transactionGroup); // do some calculations: - Log::debug('Now going to getAmounts()'); $amounts = $this->getAmounts($groupArray); $accounts = $this->getAccounts($groupArray); @@ -113,8 +112,6 @@ class ShowController extends Controller $attachments = $this->repository->getAttachments($transactionGroup); $links = $this->repository->getLinks($transactionGroup); - Log::debug('Journal', $groupArray); - return view( 'transactions.show', compact( @@ -140,10 +137,8 @@ class ShowController extends Controller */ private function getAmounts(array $group): array { - Log::debug('Now in getAmounts()'); $amounts = []; foreach ($group['transactions'] as $transaction) { - Log::debug(sprintf('Currency symbol is "%s"', $transaction['currency_symbol'])); $symbol = $transaction['currency_symbol']; if (!array_key_exists($symbol, $amounts)) { $amounts[$symbol] = [ @@ -156,7 +151,6 @@ class ShowController extends Controller 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)); if (!array_key_exists($foreignSymbol, $amounts)) { $amounts[$foreignSymbol] = [ 'amount' => '0', @@ -167,7 +161,6 @@ class ShowController extends Controller $amounts[$foreignSymbol]['amount'] = bcadd($amounts[$foreignSymbol]['amount'], $transaction['foreign_amount']); } } - Log::debug('Result', $amounts); return $amounts; } diff --git a/app/Transformers/TransactionGroupTransformer.php b/app/Transformers/TransactionGroupTransformer.php index d8050f871d..967c077f57 100644 --- a/app/Transformers/TransactionGroupTransformer.php +++ b/app/Transformers/TransactionGroupTransformer.php @@ -122,7 +122,6 @@ class TransactionGroupTransformer extends AbstractTransformer if (null !== $row['foreign_amount'] && '' !== $row['foreign_amount'] && bccomp('0', $row['foreign_amount']) !== 0) { $foreignAmount = app('steam')->positive($row['foreign_amount']); } - Log::debug(sprintf('Foreign amount is "%s', $foreignAmount)); $metaFieldData = $this->groupRepos->getMetaFields((int) $row['transaction_journal_id'], $this->metaFields); $metaDateData = $this->groupRepos->getMetaDateFields((int) $row['transaction_journal_id'], $this->metaDateFields);