GWM
This commit is contained in:
parent
808c196b83
commit
6c53baaab5
@ -64,12 +64,15 @@ class EnquiryModel extends Model
|
||||
|
||||
if($only_policy_data){
|
||||
$data->where('P.id IS NOT NULL');
|
||||
|
||||
if($from_date != null){
|
||||
$data->where("P.created_on >=", $from_date)
|
||||
->where("P.created_on <=", $to_date);
|
||||
}
|
||||
}else{
|
||||
if($from_date != null){
|
||||
$data->where("partner_enquiry.created_on >=", $from_date)
|
||||
->where("partner_enquiry.created_on <=", $to_date);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user