Some basic fixes for the transaction controller [skip ci]

This commit is contained in:
James Cole
2014-08-02 07:34:38 +02:00
parent af856a135f
commit d756324432
31 changed files with 726 additions and 341 deletions

View File

@@ -35,8 +35,8 @@ class ChartController extends BaseController
$end = Session::get('end');
\Log::debug('Draw home account chart.');
\Log::debug('From: '.$start.' ('.$start->timezone.')');
\Log::debug('Until: '.$end);
\Log::debug('From: ' . $start . ' (' . $start->timezone . ')');
\Log::debug('Until: ' . $end);
if (is_null($account)) {
// get, depending on preferences:
@@ -116,7 +116,9 @@ class ChartController extends BaseController
}
public function categoryShowChart(Category $category) {
public function categoryShowChart(Category $category)
{
$start = Session::get('start');
$end = Session::get('end');
$range = Session::get('range');
@@ -124,11 +126,11 @@ class ChartController extends BaseController
$serie = $this->_chart->categoryShowChart($category, $range, $start, $end);
$data = [
'chart_title' => $category->name,
'subtitle' => '<a href="' . route('categories.show', [$category->id]) . '">View more</a>',
'series' => $serie
'subtitle' => '<a href="' . route('categories.show', [$category->id]) . '">View more</a>',
'series' => $serie
];
return Response::json($data);
return Response::json($data);
}