mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 10:53:37 +00:00
Removed logging, found bug.
This commit is contained in:
@@ -19,7 +19,6 @@ use FireflyIII\Repositories\Category\CategoryRepositoryInterface;
|
||||
use FireflyIII\Repositories\PiggyBank\PiggyBankRepositoryInterface;
|
||||
use Grumpydictator\Gchart\GChart;
|
||||
use Illuminate\Support\Collection;
|
||||
use Log;
|
||||
use Navigation;
|
||||
use Preferences;
|
||||
use Response;
|
||||
@@ -299,10 +298,7 @@ class GoogleChartController extends Controller
|
||||
|
||||
$paidDescriptions[] = $entry->description;
|
||||
$paidAmount += floatval($entry->amount);
|
||||
Log::debug('PaidChart: ' . $entry->description . ' with amount ' . floatval($entry->amount));
|
||||
Log::debug('PaidChart: total amount is now: ' . $paidAmount);
|
||||
}
|
||||
Log::debug('PaidChart: total amount final: ' . $paidAmount);
|
||||
|
||||
// loop unpaid:
|
||||
/** @var Bill $entry */
|
||||
@@ -311,11 +307,8 @@ class GoogleChartController extends Controller
|
||||
$amount = ($entry[0]->amount_max + $entry[0]->amount_min) / 2;
|
||||
$unpaidDescriptions[] = $description;
|
||||
$unpaidAmount += $amount;
|
||||
Log::debug('UnpaidChart: ' . $description . ' with amount ' . $amount);
|
||||
Log::debug('UnpaidChart: total is now: ' . $unpaidAmount);
|
||||
unset($amount, $description);
|
||||
}
|
||||
Log::debug('UnpaidChart: total is final: ' . $unpaidAmount);
|
||||
|
||||
$chart->addRow('Unpaid: ' . join(', ', $unpaidDescriptions), $unpaidAmount);
|
||||
$chart->addRow('Paid: ' . join(', ', $paidDescriptions), $paidAmount);
|
||||
|
Reference in New Issue
Block a user