Enquiry list changes : GWM
This commit is contained in:
parent
87fdb4f0d9
commit
aa71baf2fe
@ -111,9 +111,15 @@ class EnquiryController extends ResourceController
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($from_date) || empty(!$to_date)) {
|
||||
$from_date = DateTime::createFromFormat('Y-m-d 00:00:00', $from_date)->format('d-m-Y');
|
||||
$to_date = DateTime::createFromFormat('Y-m-d 23:59:59', $to_date)->format('d-m-Y');
|
||||
|
||||
|
||||
if (!empty($this->request->getGet('from_date'))) {
|
||||
$from_date = DateTime::createFromFormat('d-m-Y', $this->request->getGet('from_date'))->format('Y-m-d 00:00:00');
|
||||
$from_date = DateTime::createFromFormat('Y-m-d 00:00:00', $this->request->getGet('from_date'))->format('d-m-Y');
|
||||
}
|
||||
if (!empty($this->request->getGet('to_date'))) {
|
||||
$to_date = DateTime::createFromFormat('d-m-Y', $this->request->getGet('to_date'))->format('Y-m-d 23:59:59');
|
||||
$to_date = DateTime::createFromFormat('Y-m-d 23:59:59', $this->request->getGet('to_date'))->format('d-m-Y');
|
||||
}
|
||||
|
||||
return $this->respond(['status' => 'success', 'code' => 200, 'data' => $data , 'from_date' => $from_date , 'to_date' => $to_date ], 200);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user