Fixed search customer bug in sales Takings (#654)

This commit is contained in:
FrancescoUK committed 2016-07-05 21:51:39 +01:00
1 parent f04cbc9674
commit df6f118a79
2 files changed
+3 -3

No files matched your search

+1 -1
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',
+2 -2
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();
}