Fix help for transaction thing.

This commit is contained in:
James Cole
2019-08-07 18:51:35 +02:00
parent bdf76cf9b2
commit d81128d8c6
8 changed files with 90 additions and 35 deletions

View File

@@ -63,12 +63,11 @@ class CreateController extends Controller
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function create()
public function create(?string $objectType)
{
/** @var AccountRepositoryInterface $repository */
$repository = app(AccountRepositoryInterface::class);
$cash = $repository->getCashAccount();
$objectType = TransactionType::WITHDRAWAL;
$preFilled = session()->has('preFilled') ? session('preFilled') : [];
$subTitle = (string)trans('breadcrumbs.create_new_transaction');
$subTitleIcon = 'fa-plus';