Quotes page: Show message when trying to approve non-approvable quotes

This commit is contained in:
Benjamin Beganović 2021-07-14 14:13:37 +02:00
parent 87a2a76525
commit a9ac73264e
2 changed files with 4 additions and 1 deletions

View File

@ -121,7 +121,9 @@ class QuoteController extends Controller
->get();
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) {

View File

@ -4278,6 +4278,7 @@ $LANG = array(
'one_time_purchases' => 'One time purchases',
'recurring_purchases' => 'Recurring purchases',
'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;