Initial code base for tag report.

This commit is contained in:
James Cole
2017-02-24 20:01:35 +01:00
parent e737683efb
commit f63c6875cd
18 changed files with 1197 additions and 214 deletions

View File

@@ -310,6 +310,47 @@ Route::group(
}
);
/**
* Chart\Tag Controller
*/
Route::group(
['middleware' => 'user-full-auth', 'namespace' => 'Chart', 'prefix' => 'chart/tag', 'as' => 'chart.tag.'], function () {
// these charts are used in reports (tag reports):
Route::get(
'tag/income/{accountList}/{tagList}/{start_date}/{end_date}/{others}',
['uses' => 'TagReportController@tagIncome', 'as' => 'tag-income']
);
Route::get(
'tag/expense/{accountList}/{tagList}/{start_date}/{end_date}/{others}',
['uses' => 'TagReportController@tagExpense', 'as' => 'tag-expense']
);
Route::get(
'account/income/{accountList}/{tagList}/{start_date}/{end_date}/{others}',
['uses' => 'TagReportController@accountIncome', 'as' => 'account-income']
);
Route::get(
'account/expense/{accountList}/{tagList}/{start_date}/{end_date}/{others}',
['uses' => 'TagReportController@accountExpense', 'as' => 'account-expense']
);
Route::get(
'budget/expense/{accountList}/{tagList}/{start_date}/{end_date}',
['uses' => 'TagReportController@budgetExpense', 'as' => 'budget-expense']
);
Route::get(
'category/expense/{accountList}/{tagList}/{start_date}/{end_date}',
['uses' => 'TagReportController@categoryExpense', 'as' => 'category-expense']
);
Route::get(
'operations/{accountList}/{tagList}/{start_date}/{end_date}',
['uses' => 'TagReportController@mainChart', 'as' => 'main']
);
}
);
/**
* Chart\PiggyBank Controller
*/