Fix product custom fields/default tax auto-complete with quotes

This commit is contained in:
Hillel Coren 2017-04-26 22:16:47 +03:00
parent e617e92603
commit 3d953b3904

View File

@ -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'),