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);
|
$groupArray = $transformer->transformObject($transactionGroup);
|
||||||
|
|
||||||
// do some calculations:
|
// do some calculations:
|
||||||
Log::debug('Now going to getAmounts()');
|
|
||||||
$amounts = $this->getAmounts($groupArray);
|
$amounts = $this->getAmounts($groupArray);
|
||||||
$accounts = $this->getAccounts($groupArray);
|
$accounts = $this->getAccounts($groupArray);
|
||||||
|
|
||||||
@ -113,8 +112,6 @@ class ShowController extends Controller
|
|||||||
$attachments = $this->repository->getAttachments($transactionGroup);
|
$attachments = $this->repository->getAttachments($transactionGroup);
|
||||||
$links = $this->repository->getLinks($transactionGroup);
|
$links = $this->repository->getLinks($transactionGroup);
|
||||||
|
|
||||||
Log::debug('Journal', $groupArray);
|
|
||||||
|
|
||||||
return view(
|
return view(
|
||||||
'transactions.show',
|
'transactions.show',
|
||||||
compact(
|
compact(
|
||||||
@ -140,10 +137,8 @@ class ShowController extends Controller
|
|||||||
*/
|
*/
|
||||||
private function getAmounts(array $group): array
|
private function getAmounts(array $group): array
|
||||||
{
|
{
|
||||||
Log::debug('Now in getAmounts()');
|
|
||||||
$amounts = [];
|
$amounts = [];
|
||||||
foreach ($group['transactions'] as $transaction) {
|
foreach ($group['transactions'] as $transaction) {
|
||||||
Log::debug(sprintf('Currency symbol is "%s"', $transaction['currency_symbol']));
|
|
||||||
$symbol = $transaction['currency_symbol'];
|
$symbol = $transaction['currency_symbol'];
|
||||||
if (!array_key_exists($symbol, $amounts)) {
|
if (!array_key_exists($symbol, $amounts)) {
|
||||||
$amounts[$symbol] = [
|
$amounts[$symbol] = [
|
||||||
@ -156,7 +151,6 @@ class ShowController extends Controller
|
|||||||
if (null !== $transaction['foreign_amount'] && '' !== $transaction['foreign_amount'] && bccomp('0', $transaction['foreign_amount']) !== 0) {
|
if (null !== $transaction['foreign_amount'] && '' !== $transaction['foreign_amount'] && bccomp('0', $transaction['foreign_amount']) !== 0) {
|
||||||
// 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',
|
||||||
@ -167,7 +161,6 @@ 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;
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,6 @@ class TransactionGroupTransformer extends AbstractTransformer
|
|||||||
if (null !== $row['foreign_amount'] && '' !== $row['foreign_amount'] && bccomp('0', $row['foreign_amount']) !== 0) {
|
if (null !== $row['foreign_amount'] && '' !== $row['foreign_amount'] && bccomp('0', $row['foreign_amount']) !== 0) {
|
||||||
$foreignAmount = app('steam')->positive($row['foreign_amount']);
|
$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);
|
$metaFieldData = $this->groupRepos->getMetaFields((int) $row['transaction_journal_id'], $this->metaFields);
|
||||||
$metaDateData = $this->groupRepos->getMetaDateFields((int) $row['transaction_journal_id'], $this->metaDateFields);
|
$metaDateData = $this->groupRepos->getMetaDateFields((int) $row['transaction_journal_id'], $this->metaDateFields);
|
||||||
|
Loading…
Reference in New Issue
Block a user