INVOICE NO DESC

This commit is contained in:
gandhimathi 2017-12-08 12:36:43 +00:00
parent 35283b7e73
commit 604feb32bd

View File

@ -104,7 +104,7 @@ class Quality_model extends CI_Model
$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->order_by('ip_invoices.invoice_number');
$this->db->order_by('ip_invoices.invoice_number','desc');
$res = $this->db->get();
return $res->result();
}