mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add new recurring invoice link to client overview
This commit is contained in:
parent
96de6739bb
commit
a1224f56d1
@ -95,6 +95,9 @@ class ClientController extends BaseController
|
|||||||
if (Utils::hasFeature(FEATURE_QUOTES) && $user->can('create', ENTITY_QUOTE)) {
|
if (Utils::hasFeature(FEATURE_QUOTES) && $user->can('create', ENTITY_QUOTE)) {
|
||||||
$actionLinks[] = ['label' => trans('texts.new_quote'), 'url' => URL::to('/quotes/create/'.$client->public_id)];
|
$actionLinks[] = ['label' => trans('texts.new_quote'), 'url' => URL::to('/quotes/create/'.$client->public_id)];
|
||||||
}
|
}
|
||||||
|
if ($user->can('create', ENTITY_RECURRING_INVOICE)) {
|
||||||
|
$actionLinks[] = ['label' => trans('texts.new_recurring_invoice'), 'url' => URL::to('/recurring_invoices/create/'.$client->public_id)];
|
||||||
|
}
|
||||||
|
|
||||||
if (! empty($actionLinks)) {
|
if (! empty($actionLinks)) {
|
||||||
$actionLinks[] = \DropdownButton::DIVIDER;
|
$actionLinks[] = \DropdownButton::DIVIDER;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user