refs #1147 invoice item searchable

This commit is contained in:
Cüneyt Şentürk
2020-01-21 15:26:21 +03:00
parent c71379c56b
commit 1688284cd1
6 changed files with 62 additions and 19 deletions

View File

@ -93,7 +93,7 @@ class Invoices extends Controller
$currency = Currency::where('code', setting('default.currency'))->first();
$items = Item::enabled()->orderBy('name')->pluck('name', 'id');
$items = Item::enabled()->orderBy('name')->get();
$taxes = Tax::enabled()->orderBy('name')->get()->pluck('title', 'id');
@ -189,7 +189,7 @@ class Invoices extends Controller
$currency = Currency::where('code', $invoice->currency_code)->first();
$items = Item::enabled()->orderBy('name')->pluck('name', 'id');
$items = Item::enabled()->orderBy('name')->get();
$taxes = Tax::enabled()->orderBy('name')->get()->pluck('title', 'id');