mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 16:34:35 -04:00
Quotes page: Show message when trying to approve non-approvable quotes
This commit is contained in:
parent
87a2a76525
commit
a9ac73264e
@ -121,7 +121,9 @@ class QuoteController extends Controller
|
|||||||
->get();
|
->get();
|
||||||
|
|
||||||
if (!$quotes || $quotes->count() == 0) {
|
if (!$quotes || $quotes->count() == 0) {
|
||||||
return redirect()->route('client.quotes.index');
|
return redirect()
|
||||||
|
->route('client.quotes.index')
|
||||||
|
->with('message', ctrans('texts.quotes_with_status_sent_can_be_approved'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($process) {
|
if ($process) {
|
||||||
|
@ -4278,6 +4278,7 @@ $LANG = array(
|
|||||||
'one_time_purchases' => 'One time purchases',
|
'one_time_purchases' => 'One time purchases',
|
||||||
'recurring_purchases' => 'Recurring purchases',
|
'recurring_purchases' => 'Recurring purchases',
|
||||||
'you_might_be_interested_in_following' => 'You might be interested in following',
|
'you_might_be_interested_in_following' => 'You might be interested in following',
|
||||||
|
'quotes_with_status_sent_can_be_approved' => 'Only quotes with "Sent" status can be approved.',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $LANG;
|
return $LANG;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user