From 30c07b2caccd5102821dfc9fe2085e187ffa22fb Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 28 May 2020 21:22:25 +1000 Subject: [PATCH] Fixes for converting quotes --- app/Http/Controllers/QuoteController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/QuoteController.php b/app/Http/Controllers/QuoteController.php index cfcb8cdac667..e28440f408bd 100644 --- a/app/Http/Controllers/QuoteController.php +++ b/app/Http/Controllers/QuoteController.php @@ -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()) {