mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-11 16:41:59 -06:00
Remove debug.
This commit is contained in:
parent
47469c7082
commit
242fb3b498
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user