This commit is contained in:
Gowtham M 2025-10-25 11:01:11 +05:30
parent 808c196b83
commit 6c53baaab5

View File

@ -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);
}
}