Commit 9e2a40c6 by Jansa Jose

crone msg

parent 5c1592b8
...@@ -143,9 +143,11 @@ public function cancelBooking() ...@@ -143,9 +143,11 @@ public function cancelBooking()
/*------------------------------------------------*/ /*------------------------------------------------*/
$check_waiting_list = $this->Patient_model->check_waiting_list($result); $check_waiting_list = $this->Patient_model->check_waiting_list($result);
print_r($check_waiting_list); echo "<br>";
//check any user Exist in waiting List on that date if true ; //check any user Exist in waiting List on that date if true ;
if($check_waiting_list['count']>0) if($check_waiting_list['count']>0)
{ {
echo "yes"; exit();
$this->Patient_model->change_waitinglist_to_confirmed($check_waiting_list['booking_id']); $this->Patient_model->change_waitinglist_to_confirmed($check_waiting_list['booking_id']);
$booking_details_waiting = $this->Doctor_model->get_booking_details($check_waiting_list['booking_id']); $booking_details_waiting = $this->Doctor_model->get_booking_details($check_waiting_list['booking_id']);
...@@ -202,6 +204,7 @@ public function cancelBooking() ...@@ -202,6 +204,7 @@ public function cancelBooking()
}//if no user exist in waiting list on that particular date. check on next date. }//if no user exist in waiting list on that particular date. check on next date.
else{ else{
echo "no";exit();
$nextday = $booking_details['book_date']; $nextday = $booking_details['book_date'];
$next_day_consult = $this->wait_list_data($booking_details,$nextday,''); $next_day_consult = $this->wait_list_data($booking_details,$nextday,'');
//$nextday = strtotime(date('Y-m-d', strtotime('+1 day', $booking_details['book_date']))); //$nextday = strtotime(date('Y-m-d', strtotime('+1 day', $booking_details['book_date'])));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment