From 3d953b3904774f30c6c80b95678dca7196860868 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 26 Apr 2017 22:16:47 +0300 Subject: [PATCH] Fix product custom fields/default tax auto-complete with quotes --- app/Http/Controllers/QuoteController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/QuoteController.php b/app/Http/Controllers/QuoteController.php index c02e54672daa..0e154c5e0ec6 100644 --- a/app/Http/Controllers/QuoteController.php +++ b/app/Http/Controllers/QuoteController.php @@ -98,7 +98,7 @@ class QuoteController extends BaseController return [ 'entityType' => ENTITY_QUOTE, 'account' => $account, - 'products' => Product::scope()->orderBy('id')->get(['product_key', 'notes', 'cost', 'qty']), + 'products' => Product::scope()->with('default_tax_rate')->orderBy('product_key')->get(), 'taxRateOptions' => $account->present()->taxRateOptions, 'defaultTax' => $account->default_tax_rate, 'countries' => Cache::get('countries'),