Commit e1240b16 by Jansa Jose

dc

parent f5f25e04
...@@ -185,7 +185,7 @@ public function start_service($postData = array(),$type = 0){ ...@@ -185,7 +185,7 @@ public function start_service($postData = array(),$type = 0){
return $respArr; return $respArr;
} }
$status = ($type == '1')?3:6; $status = ($type == '1')?3:6;
$cost = ($postData['emergency'] == '2')?$postData['amount']:''; $cost = ($postData['emergency'] == '2')?$postData['amount']:0;
if($this->db->update('bookings',array('service_type'=>$postData['emergency'],'cost'=>$cost,'status'=>$status),array('booking_id'=>$postData['service_id']))){ if($this->db->update('bookings',array('service_type'=>$postData['emergency'],'cost'=>$cost,'status'=>$status),array('booking_id'=>$postData['service_id']))){
$respArr['status'] = "success"; $respArr['status'] = "success";
$respArr['message'] = ($type == '1')?"Service Completed Successfully":"Service Started Successfully"; $respArr['message'] = ($type == '1')?"Service Completed Successfully":"Service Started Successfully";
......
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