diff --git a/application/models/Sale.php b/application/models/Sale.php index 90a7132b8..5e9c459c9 100644 --- a/application/models/Sale.php +++ b/application/models/Sale.php @@ -368,6 +368,11 @@ class Sale extends CI_Model $this->db->like('payment_type', $this->lang->line('sales_check')); } + if($filters['only_creditcard'] != FALSE) + { + $this->db->like('payment_type', $this->lang->line('sales_credit')); + } + $this->db->group_by('payment_type'); $payments = $this->db->get()->result_array();