mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-25 14:58:40 +00:00
Renamed a method.
This commit is contained in:
@@ -35,12 +35,14 @@ class GoogleChartController extends Controller
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Shows an account's balance for a single month.
|
||||||
|
*
|
||||||
* @param GChart $chart
|
* @param GChart $chart
|
||||||
* @param Account $account
|
* @param Account $account
|
||||||
*
|
*
|
||||||
* @return \Symfony\Component\HttpFoundation\Response
|
* @return \Symfony\Component\HttpFoundation\Response
|
||||||
*/
|
*/
|
||||||
public function accountBalanceChart(GChart $chart, Account $account)
|
public function accountBalance(GChart $chart, Account $account)
|
||||||
{
|
{
|
||||||
$chart->addColumn(trans('firefly.dayOfMonth'), 'date');
|
$chart->addColumn(trans('firefly.dayOfMonth'), 'date');
|
||||||
$chart->addColumn(trans('firefly.balanceFor', ['name' => $account->name]), 'number');
|
$chart->addColumn(trans('firefly.balanceFor', ['name' => $account->name]), 'number');
|
||||||
|
@@ -275,11 +275,14 @@ Route::group(
|
|||||||
/**
|
/**
|
||||||
* Google Chart Controller
|
* Google Chart Controller
|
||||||
*/
|
*/
|
||||||
|
Route::get('/chart/account/{account}', ['uses' => 'GoogleChartController@accountBalance']);
|
||||||
|
|
||||||
|
|
||||||
Route::get('/chart/home/account', ['uses' => 'GoogleChartController@allAccountsBalanceChart']);
|
Route::get('/chart/home/account', ['uses' => 'GoogleChartController@allAccountsBalanceChart']);
|
||||||
Route::get('/chart/home/budgets', ['uses' => 'GoogleChartController@allBudgetsHomeChart']);
|
Route::get('/chart/home/budgets', ['uses' => 'GoogleChartController@allBudgetsHomeChart']);
|
||||||
Route::get('/chart/home/categories', ['uses' => 'GoogleChartController@allCategoriesHomeChart']);
|
Route::get('/chart/home/categories', ['uses' => 'GoogleChartController@allCategoriesHomeChart']);
|
||||||
Route::get('/chart/home/bills', ['uses' => 'GoogleChartController@billsOverview']);
|
Route::get('/chart/home/bills', ['uses' => 'GoogleChartController@billsOverview']);
|
||||||
Route::get('/chart/account/{account}/{view?}', ['uses' => 'GoogleChartController@accountBalanceChart']);
|
|
||||||
Route::get('/chart/budget/{budget}/{limitrepetition}', ['uses' => 'GoogleChartController@budgetLimitSpending']);
|
Route::get('/chart/budget/{budget}/{limitrepetition}', ['uses' => 'GoogleChartController@budgetLimitSpending']);
|
||||||
Route::get('/chart/reports/income-expenses/{year}/{shared?}', ['uses' => 'GoogleChartController@yearInExp'])->where(['year' => '[0-9]{4}','shared'=> 'shared']);
|
Route::get('/chart/reports/income-expenses/{year}/{shared?}', ['uses' => 'GoogleChartController@yearInExp'])->where(['year' => '[0-9]{4}','shared'=> 'shared']);
|
||||||
Route::get('/chart/reports/income-expenses-sum/{year}/{shared?}', ['uses' => 'GoogleChartController@yearInExpSum'])->where(['year' => '[0-9]{4}','shared'=> 'shared']);
|
Route::get('/chart/reports/income-expenses-sum/{year}/{shared?}', ['uses' => 'GoogleChartController@yearInExpSum'])->where(['year' => '[0-9]{4}','shared'=> 'shared']);
|
||||||
|
@@ -39,7 +39,7 @@ class GoogleChartControllerTest extends TestCase
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testAccountBalanceChart()
|
public function testAccountBalance()
|
||||||
{
|
{
|
||||||
$account = FactoryMuffin::create('FireflyIII\Models\Account');
|
$account = FactoryMuffin::create('FireflyIII\Models\Account');
|
||||||
$this->be($account->user);
|
$this->be($account->user);
|
||||||
|
Reference in New Issue
Block a user