Update Specific_customer.php

This commit is contained in:
odiea
2018-03-20 12:07:45 -06:00
committed by GitHub
parent 3b411bbefc
commit 3368c62690

View File

@@ -69,14 +69,14 @@ class Specific_customer extends Report
$this->db->from('sales_items_temp');
$this->db->where('customer_id', $inputs['customer_id']);
if ($inputs['payment_type'] != 'all')
{
$this->db->like('payment_type', $this->lang->line('sales_'.$inputs['payment_type']));
}
elseif($inputs['payment_type'] == 'invoices')
if($inputs['payment_type'] == 'invoices')
{
$this->db->where('sale_type', SALE_TYPE_INVOICE);
}
elseif ($inputs['payment_type'] != 'all')
{
$this->db->like('payment_type', $this->lang->line('sales_'.$inputs['payment_type']));
}
if($inputs['sale_type'] == 'complete')
@@ -146,14 +146,14 @@ class Specific_customer extends Report
$this->db->from('sales_items_temp');
$this->db->where('customer_id', $inputs['customer_id']);
if ($inputs['payment_type'] != 'all')
{
$this->db->like('payment_type', $this->lang->line('sales_'.$inputs['payment_type']));
}
elseif($inputs['payment_type'] == 'invoices')
if($inputs['payment_type'] == 'invoices')
{
$this->db->where('sale_type', SALE_TYPE_INVOICE);
}
elseif ($inputs['payment_type'] != 'all')
{
$this->db->like('payment_type', $this->lang->line('sales_'.$inputs['payment_type']));
}
if($inputs['sale_type'] == 'complete')
{