Commit 63e584d3 by Jansa Jose

cancel booking

parent cd7fb8ae
......@@ -6583,9 +6583,7 @@ class Webservice extends CI_Controller {
}
if($result != ''){
foreach ($result as $key => $value) {
array_push($withdrawArray, $value);
}
}
......
......@@ -2187,6 +2187,8 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
public function cancel_booking($data){
$query = $this->db->get_where('tbl_booking',array('id'=>$data['booking_id']))->row_array();
if($query){
$nextday = strtotime(date('Y-m-d', strtotime('+1 day', $query['date'])));
print_r($nextday);exit();
$this->db->select('duration');
$dur = $this->db->get('tbl_policy')->row();
......@@ -2269,6 +2271,10 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
$news['to'] = $fcm_doctor->fcm_token;
$doctor_type = '2';
$doctor_push = $this->push_sent($news,$doctor_type);
}else{
$nextday = strtotime(date('Y-m-d', strtotime('+1 day', $query['date'])));
print_r($nextday);exit();
$ress = $this->db->get_where('tbl_booking',array('doctor_id'=>$query['doctor_id'],'clinic_id'=>$query['clinic_id'],'date'=>$query['date'],'time'=>$query['time'],'booking_status'=>'0'))->row_array();
}
if($query['visit_type'] == '0' && $query['payment_type'] == '2'){
$doctor_wallet = $this->db->get_where('tbl_wallet_details',array('doctor_id'=>$query['doctor_id']))->row();
......
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