CST Field Added
This commit is contained in:
parent
0fa2cc5e71
commit
a797f4f0ab
@ -47,7 +47,7 @@ class supplier_model extends CI_Model
|
|||||||
*/
|
*/
|
||||||
function supplierListing($searchText = '', $page, $segment)
|
function supplierListing($searchText = '', $page, $segment)
|
||||||
{
|
{
|
||||||
$this->db->select('BaseT.SupplierID, BaseT.SupplierName, BaseT.Address, BaseT.ContactNumber, BaseT.AlternateContactNumber,BaseT.EmailAddress,BaseT.Exiseregistration, BaseT.TIN, BaseT.PAN,,BaseT.GSTNO,BaseT.GSTRange,BaseT.CollectrateAddress,BaseT.UANumber,BaseT.PaymentTerms,BaseT.PaymentDays,BaseT.PayableAT,BaseT.CreatedDate');
|
$this->db->select('BaseT.SupplierID, BaseT.SupplierName, BaseT.Address, BaseT.ContactNumber, BaseT.AlternateContactNumber,BaseT.EmailAddress,BaseT.Exiseregistration, BaseT.TIN, BaseT.PAN,,BaseT.GSTNO,BaseT.GSTRange,BaseT.CollectrateAddress,BaseT.UANumber,BaseT.PaymentTerms,BaseT.PaymentDays,BaseT.PayableAT,BaseT.CreatedOn');
|
||||||
$this->db->from('T_SupplierDetailsN as BaseT');
|
$this->db->from('T_SupplierDetailsN as BaseT');
|
||||||
//$this->db->join('tbl_users as users', 'users.userId = BaseT.userId','left');
|
//$this->db->join('tbl_users as users', 'users.userId = BaseT.userId','left');
|
||||||
//$this->db->join('T_SupplierDetails as ID', 'ID.SupplierID = BaseT.SupplierID','left');
|
//$this->db->join('T_SupplierDetails as ID', 'ID.SupplierID = BaseT.SupplierID','left');
|
||||||
@ -60,7 +60,7 @@ class supplier_model extends CI_Model
|
|||||||
OR BaseT.EmailAddress LIKE '%".$searchText."%'
|
OR BaseT.EmailAddress LIKE '%".$searchText."%'
|
||||||
OR BaseT.Exiseregistration LIKE '%".$searchText."%'
|
OR BaseT.Exiseregistration LIKE '%".$searchText."%'
|
||||||
OR BaseT.TIN LIKE '%".$searchText."%'
|
OR BaseT.TIN LIKE '%".$searchText."%'
|
||||||
OR BaseT.CreatedDate LIKE '%".$searchText."%'
|
OR BaseT.CreatedOn LIKE '%".$searchText."%'
|
||||||
OR BaseT.PAN LIKE '%".$searchText."%'
|
OR BaseT.PAN LIKE '%".$searchText."%'
|
||||||
OR BaseT.GSTNO LIKE '%".$searchText."%'
|
OR BaseT.GSTNO LIKE '%".$searchText."%'
|
||||||
OR BaseT.GSTRange LIKE '%".$searchText."%'
|
OR BaseT.GSTRange LIKE '%".$searchText."%'
|
||||||
@ -145,7 +145,7 @@ function addNewsupplier($supplier)
|
|||||||
$this->db->from('T_SupplierDetailsN');
|
$this->db->from('T_SupplierDetailsN');
|
||||||
$this->db->where('SupplierID', $supplierID);
|
$this->db->where('SupplierID', $supplierID);
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
|
// print_r($this->db->last_query());
|
||||||
return $query->result();
|
return $query->result();
|
||||||
}
|
}
|
||||||
/* This function to get the Supplier Address on respective Supplier ID */
|
/* This function to get the Supplier Address on respective Supplier ID */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user