mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 22:44:35 -04:00
Do not redirect approved quotes back to quote list
This commit is contained in:
parent
a541207438
commit
cb83a957ce
@ -154,6 +154,10 @@ class QuoteController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(count($ids) == 1){
|
||||||
|
return redirect()->route('client.quote.show', $quotes->first()->hashed_id);
|
||||||
|
}
|
||||||
|
|
||||||
return redirect()
|
return redirect()
|
||||||
->route('client.quotes.index')
|
->route('client.quotes.index')
|
||||||
->withSuccess('Quote(s) approved successfully.');
|
->withSuccess('Quote(s) approved successfully.');
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
@include('portal.ninja2020.quotes.includes.actions', ['quote' => $quote])
|
@include('portal.ninja2020.quotes.includes.actions', ['quote' => $quote])
|
||||||
</div>
|
</div>
|
||||||
|
@elseif($quote->status_id === \App\Models\Quote::STATUS_APPROVED)
|
||||||
|
<p class="text-right text-gray-900 text-sm mb-4">{{ ctrans('texts.approved') }}</p>
|
||||||
@else
|
@else
|
||||||
<p class="text-right text-gray-900 text-sm mb-4">{{ ctrans('texts.quotes_with_status_sent_can_be_approved') }}</p>
|
<p class="text-right text-gray-900 text-sm mb-4">{{ ctrans('texts.quotes_with_status_sent_can_be_approved') }}</p>
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user