1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #3905 from beganovich/v2-1407-fixes-for-quotes-page

Fixes for quote page
This commit is contained in:
David Bomba 2020-07-14 21:29:58 +10:00 committed by GitHub
commit 4360a6f0b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -11,6 +11,8 @@
namespace App\Events\Quote; namespace App\Events\Quote;
use App\Models\Company;
use App\Models\Quote;
use Illuminate\Queue\SerializesModels; use Illuminate\Queue\SerializesModels;
/** /**

View File

@ -112,7 +112,9 @@ class QuoteController extends Controller
event(new QuoteWasApproved($quote, $quote->company, Ninja::eventVars())); event(new QuoteWasApproved($quote, $quote->company, Ninja::eventVars()));
} }
return route('client.quotes.index')->withSuccess('Quote(s) approved successfully.'); return redirect()
->route('client.quotes.index')
->withSuccess('Quote(s) approved successfully.');
} }
return $this->render('quotes.approve', [ return $this->render('quotes.approve', [

View File

@ -37,7 +37,7 @@
<div class="px-4 py-5 border-b border-gray-200 sm:px-6"> <div class="px-4 py-5 border-b border-gray-200 sm:px-6">
<h3 class="text-lg leading-6 font-medium text-gray-900"> <h3 class="text-lg leading-6 font-medium text-gray-900">
{{ ctrans('texts.invoice') }} {{ ctrans('texts.invoice') }}
<a class="button-link" href="{{ route('client.quotes.show', $quote->hashed_id) }}"> <a class="button-link" href="{{ route('client.quote.show', $quote->hashed_id) }}">
({{ $quote->number }}) ({{ $quote->number }})
</a> </a>
</h3> </h3>