diff --git a/app/breadcrumbs.php b/app/breadcrumbs.php index c4b3d78c15..78a73fff86 100644 --- a/app/breadcrumbs.php +++ b/app/breadcrumbs.php @@ -31,6 +31,9 @@ Breadcrumbs::register( case 'Asset account': $what = 'asset'; break; + case 'Cash account': + $what = 'cash'; + break; case 'Expense account': case 'Beneficiary account': $what = 'expense'; diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php index 190df02a5d..74fbe299ca 100644 --- a/app/controllers/AccountController.php +++ b/app/controllers/AccountController.php @@ -28,6 +28,7 @@ class AccountController extends BaseController 'Expense account' => 'expense', 'Beneficiary account' => 'expense', 'Revenue account' => 'revenue', + 'Cash account' => 'cash', ]; /** @var array */ @@ -36,6 +37,7 @@ class AccountController extends BaseController 'asset' => 'fa-money', 'Asset account' => 'fa-money', 'Default account' => 'fa-money', + 'Cash account' => 'fa-money', 'expense' => 'fa-shopping-cart', 'Expense account' => 'fa-shopping-cart', 'Beneficiary account' => 'fa-shopping-cart', diff --git a/app/routes.php b/app/routes.php index 17368d6878..a519bfa7cb 100644 --- a/app/routes.php +++ b/app/routes.php @@ -6,8 +6,11 @@ Route::bind( function ($value, $route) { if (Auth::check()) { $account = Account:: - leftJoin('account_types', 'account_types.id', '=', 'accounts.account_type_id')->where('account_types.editable', 1)->where('accounts.id', $value) - ->where('user_id', Auth::user()->id)->first(['accounts.*']); + leftJoin('account_types', 'account_types.id', '=', 'accounts.account_type_id') + ->where('account_types.editable', 1) + ->where('accounts.id', $value) + ->where('user_id', Auth::user()->id) + ->first(['accounts.*']); if ($account) { return $account; }