diff --git a/application/controllers/Receivings.php b/application/controllers/Receivings.php index 2d067a6aa..efe594ad5 100644 --- a/application/controllers/Receivings.php +++ b/application/controllers/Receivings.php @@ -16,7 +16,9 @@ class Receivings extends Secure_area function item_search() { - $suggestions = $this->Item->get_search_suggestions($this->input->get('term')); + $suggestions = $this->Item->get_search_suggestions($this->input->get('term'), array( + 'search_custom' => FALSE, 'is_deleted' => FALSE + ), TRUE); $suggestions = array_merge($suggestions, $this->Item_kit->get_search_suggestions($this->input->get('term'))); echo json_encode($suggestions); } diff --git a/application/controllers/Sales.php b/application/controllers/Sales.php index 0bf6f395a..8a690f509 100644 --- a/application/controllers/Sales.php +++ b/application/controllers/Sales.php @@ -106,7 +106,10 @@ class Sales extends Secure_area { $suggestions[] = $search; } - $suggestions = array_merge($suggestions, $this->Item->get_search_suggestions($search)); + $suggestions = array_merge($suggestions, $this->Item->get_search_suggestions($search, array( + 'search_custom' => FALSE, + 'is_deleted' => FALSE + ), TRUE)); $suggestions = array_merge($suggestions, $this->Item_kit->get_search_suggestions($search)); echo json_encode($suggestions); diff --git a/application/views/sales/register.php b/application/views/sales/register.php index 5aea81a14..26f0c762f 100644 --- a/application/views/sales/register.php +++ b/application/views/sales/register.php @@ -117,13 +117,9 @@ if (isset($success)) } else { - $tabindex = 2; + $tabindex = 2; foreach(array_reverse($cart, true) as $line=>$item) { - if($tabindex == 3) - { - $tabindex = 5; - } ?> 'form-horizontal', 'id'=>'cart_'.$line)); ?>