1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Add new recurring invoice link to client overview

This commit is contained in:
Hillel Coren 2017-04-16 16:35:55 +03:00
parent 96de6739bb
commit a1224f56d1

View File

@ -95,6 +95,9 @@ class ClientController extends BaseController
if (Utils::hasFeature(FEATURE_QUOTES) && $user->can('create', ENTITY_QUOTE)) {
$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)) {
$actionLinks[] = \DropdownButton::DIVIDER;