Add credit filter for payment types (#2983)

This commit is contained in:
Jeroen Peelaerts
2020-11-17 00:24:42 +01:00
committed by jekkos
parent 2393c21647
commit 4b2b098a85

View File

@@ -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();