mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
Add some debug to function
This commit is contained in:
@@ -101,6 +101,7 @@ 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);
|
||||||
|
|
||||||
@@ -137,6 +138,7 @@ 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']));
|
Log::debug(sprintf('Currency symbol is "%s"', $transaction['currency_symbol']));
|
||||||
|
Reference in New Issue
Block a user