mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
Fixes for converting quotes
This commit is contained in:
parent
c4ecc58226
commit
30c07b2cac
@ -530,8 +530,8 @@ class QuoteController extends BaseController
|
||||
|
||||
if($action == 'convert') {
|
||||
|
||||
$this->entity_type = Invoice::class;
|
||||
$this->entity_transformer = InvoiceTransformer::class;
|
||||
$this->entity_type = Quote::class;
|
||||
$this->entity_transformer = QuoteTransformer::class;
|
||||
|
||||
$quotes->each(function ($quote, $key) use ($action) {
|
||||
if (auth()->user()->can('edit', $quote) && $quote->service()->isConvertable()) {
|
||||
|
Loading…
Reference in New Issue
Block a user