Flyhi adv Filter Added : ps

This commit is contained in:
VE10-Sanjeev 2023-04-10 12:21:43 +05:30
parent 076e8b9a85
commit 5d40141c55

View File

@ -69,6 +69,9 @@ class Sales_PD_Model extends SPARQ_Model {
}
if(!empty($pd_lender)) {
$this->db->where_in('SALES_PD_DATA.lender_id',$pd_lender);
}else{
$flyhi_lender = (ENVIRONMENT == 'production' ? 19 : 49);
$this->db->WHERE('SALES_PD_DATA.lender_id != ',$flyhi_lender);
}
if(!empty($pd_applicant_name)) {
$this->db->like('SALES_PD_DATA.applicant_name',$pd_applicant_name);
@ -83,12 +86,13 @@ class Sales_PD_Model extends SPARQ_Model {
if(!empty($sales_pd_type) && count($sales_pd_type)) {
$this->db->WHERE_IN('SALES_PD_DATA.sales_pd_type',$sales_pd_type);
}
$this->db->WHERE('SALES_PD_DATA.isactive',1);
$this->db->order_by('SALES_PD_DATA.sales_pd_id','desc');
$this->db->limit(1000,0);
$result = $this->db->get()->result_array();
// if(ENVIRONMENT == 'development'){echo 'LAST QUERY '. $this->db->last_query();}
// echo $this->db->last_query();die();
echo $this->db->last_query();die();
return $result;
}
public function testSaleSection($id){