@@ -160,16 +160,26 @@ class Webservice_model extends CI_Model {
...
@@ -160,16 +160,26 @@ class Webservice_model extends CI_Model {
return$respArr;
return$respArr;
}
}
publicfunctiongetBookedService($id=''){
publicfunctiongetBookedService($id='',$type=0){
$respArr=array('status'=>'error','message'=>'Something Went Wrong.');
$respArr=array('status'=>'error','message'=>'Something Went Wrong.');
if(empty($id)){
if(empty($id)){
return$respArr;
return$respArr;
}
}
$this->db->select('booking_id as id,scheduled_date as booked_date,scheduled_time as time,customer_vehicle.vehicle_data,customer_vehicle.customer_veh_id as vehicle_id,customer_vehicle.customer_veh_id as year,customer_vehicle.customer_veh_id as vehcle_make,customer_vehicle.customer_veh_id as vehicle_type,bookings.mileage,
$this->db->select("bookings.booking_id as id,bookings.scheduled_date as booked_date,bookings.scheduled_time as time,customer_vehicle.vehicle_data,customer_vehicle.customer_veh_id as vehicle_id,customer_vehicle.customer_veh_id as year,customer_vehicle.customer_veh_id as vehcle_make,customer_vehicle.customer_veh_id as vehicle_type,bookings.mileage,
bookings.service_type as is_emergency,bookings.status as service_status,bookings.issues_selected,bookings.custom_issue_data".$bookDetails);