Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Renamed a method.
James Colea5294c62ea7c
diff --git a/app/Http/Controllers/GoogleChartController.php b/app/Http/Controllers/GoogleChartController.phpindex 9ee072a6b4..62bf1d916c 100644--- a/app/Http/Controllers/GoogleChartController.php+++ b/app/Http/Controllers/GoogleChartController.php@@ -35,12 +35,14 @@ class GoogleChartController extends Controller/**+ * Shows an account's balance for a single month.+ ** @param GChart $chart* @param Account $account** @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.balanceFor', ['name' => $account->name]), 'number');diff --git a/app/Http/routes.php b/app/Http/routes.phpindex 83f109d08f..f4f837c5e7 100644--- a/app/Http/routes.php+++ b/app/Http/routes.php@@ -275,11 +275,14 @@ Route::group(/*** Google Chart Controller*/+ Route::get('/chart/account/{account}', ['uses' => 'GoogleChartController@accountBalance']);++Route::get('/chart/home/account', ['uses' => 'GoogleChartController@allAccountsBalanceChart']);Route::get('/chart/home/budgets', ['uses' => 'GoogleChartController@allBudgetsHomeChart']);Route::get('/chart/home/categories', ['uses' => 'GoogleChartController@allCategoriesHomeChart']);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/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']);diff --git a/tests/controllers/GoogleChartControllerTest.php b/tests/controllers/GoogleChartControllerTest.phpindex 82b7a5f7f1..7e1fa9326c 100644--- a/tests/controllers/GoogleChartControllerTest.php+++ b/tests/controllers/GoogleChartControllerTest.php@@ -39,7 +39,7 @@ class GoogleChartControllerTest extends TestCase}- public function testAccountBalanceChart()+ public function testAccountBalance(){$account = FactoryMuffin::create('FireflyIII\Models\Account');$this->be($account->user);