1
0
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:
David Bomba 2020-05-28 21:22:25 +10:00
parent c4ecc58226
commit 30c07b2cac

View File

@ -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()) {