mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-13 16:32:49 -04:00
Add credit filter for payment types (#2983)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user