diff --git a/app/Http/Controllers/Transaction/CreateController.php b/app/Http/Controllers/Transaction/CreateController.php index 5b5e5681dc..bc00a4ce48 100644 --- a/app/Http/Controllers/Transaction/CreateController.php +++ b/app/Http/Controllers/Transaction/CreateController.php @@ -65,6 +65,8 @@ class CreateController extends Controller */ public function create(?string $objectType) { + app('preferences')->mark(); + /** @var AccountRepositoryInterface $repository */ $repository = app(AccountRepositoryInterface::class); $cash = $repository->getCashAccount(); diff --git a/routes/breadcrumbs.php b/routes/breadcrumbs.php index ae4fffd9f4..46d59afc4b 100644 --- a/routes/breadcrumbs.php +++ b/routes/breadcrumbs.php @@ -1091,6 +1091,11 @@ try { if ($group->transactionJournals()->count() > 1) { $title = limitStringLength($group->title); } + if('opening balance' === $type) { + + $breadcrumbs->push($title, route('transactions.show', [$group->id])); + return; + } $breadcrumbs->parent('transactions.index', $type); $breadcrumbs->push($title, route('transactions.show', [$group->id]));