Fixed search customer bug in sales Takings (#654)

This commit is contained in:
FrancescoUK
2016-07-05 21:51:15 +01:00
parent f04cbc9674
commit df6f118a79
2 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ class Sales extends Secure_Controller
$sort = $this->input->get('sort');
$order = $this->input->get('order');
$is_valid_receipt = isset($search) ? $this->sale_lib->is_valid_receipt($search) : FALSE;
$is_valid_receipt = !empty($search) ? $this->sale_lib->is_valid_receipt($search) : FALSE;
$filters = array('sale_type' => 'all',
'location_id' => 'all',

View File

@@ -81,12 +81,12 @@ class Sale extends CI_Model
$this->db->group_by('sale_id');
$this->db->order_by($sort, $order);
if($rows > 0)
{
$this->db->limit($rows, $limit_from);
}
return $this->db->get();
}