FOR AVOID NULL PROBLEM IN QAD OUTWARD
This commit is contained in:
parent
50530cb869
commit
0b78006b1b
@ -145,7 +145,7 @@ class Quality_model extends CI_Model
|
||||
$this->db->join('ip_invoice_items','ip_invoices.invoice_id=ip_invoice_items.invoice_id');
|
||||
$this->db->join('ip_products','ip_invoice_items.item_product_id=ip_products.product_id');
|
||||
$this->db->join('ip_invoice_custom','ip_invoices.invoice_id=ip_invoice_custom.invoice_id and invoice_custom_fieldid=62');
|
||||
$this->db->where('ip_invoices.invoice_number NOT IN (SELECT invoiceid from T_Test_Report_Master)',NULL,false);
|
||||
$this->db->where('ip_invoices.invoice_number NOT IN (SELECT invoiceid from T_Test_Report_Master where invoiceid is not null)',NULL,false);
|
||||
$this->db->order_by('ip_invoices.invoice_number','desc');
|
||||
$res = $this->db->get();
|
||||
//print_r($res->result());die();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user