First reports.

This commit is contained in:
Sander Dorigo
2014-11-02 18:46:01 +01:00
parent 0f1437dd6a
commit ef39f31ea1
11 changed files with 370 additions and 286 deletions

View File

@@ -336,7 +336,8 @@ class AccountController extends BaseController
/**
* @param Account $account
*
* @return $this|\Illuminate\Http\RedirectResponse
* @return $this
* @throws FireflyException
*/
public function update(Account $account)
{
@@ -345,13 +346,16 @@ class AccountController extends BaseController
$acct = App::make('FireflyIII\Database\Account');
$data = Input::except('_token');
switch($account->accountType->type) {
switch ($account->accountType->type) {
default:
throw new FireflyException('Cannot handle account type "' . e($account->accountType->type) . '"');
break;
case 'Default account':
$data['what'] = 'asset';
break;
case 'Beneficiary account':
$data['what'] = 'expense';
break;
}
switch (Input::get('post_submit_action')) {