Commit db7bb136 by Jansa Jose

booking oreder

parent 0fe50301
...@@ -2574,7 +2574,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F ...@@ -2574,7 +2574,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
} }
$result['illness'] = $new; $result['illness'] = $new;
if(isset($news['cause']) && $news['cause'] != ''){ if(isset($news)){
$others = $news; $others = $news;
}else{ }else{
$others = []; $others = [];
...@@ -2621,6 +2621,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F ...@@ -2621,6 +2621,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
$tot = $tot + ($value->amount * $value->quantity); $tot = $tot + ($value->amount * $value->quantity);
} }
$result['services'] = $bud; $result['services'] = $bud;
$result['total'] = $tot ;
} }
unset($result['budget']); unset($result['budget']);
...@@ -2632,7 +2633,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F ...@@ -2632,7 +2633,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
} }
unset($result['images']); unset($result['images']);
unset($result['booking_id']); unset($result['booking_id']);
$result['total'] = $tot ;
$res = array('status'=>'success','data'=>$result); $res = array('status'=>'success','data'=>$result);
} }
......
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