mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-06 08:11:12 -05:00
Fixed search customer bug in sales Takings (#654)
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user