Commit 449b6c51 by Jansa Jose

change in book service

parent 739cf57f
......@@ -1812,6 +1812,7 @@
header('Content-type:application/json');
$headers = apache_request_headers();
$per_page = 10;
$total = 0;
$page = (isset($postData['page']) && $postData['page'] != 1) ?$postData['page'] :'1';
$page_limit = ($page - 1) * $per_page;
$latestResult = $this->Webservice_model->get_latest_product_list(0,0);
......@@ -2890,7 +2891,6 @@
public function getUserDetails($postData){
$custResp = $this->Webservice_model->checkSocialCustomerLogin($postData);
//pr($custResp);
if(isset($custResp['status']) && $custResp['status'] == '2'){
$respArr['message'] = 'User Not Registered Yet';
$respArr['status'] = '0';
......
......@@ -755,6 +755,7 @@ class Webservice_model extends CI_Model {
$this->db->query("UPDATE bookings
JOIN transaction ON transaction.booking_id=bookings.booking_id
SET bookings.status = $status WHERE transaction.id = $transId");
$this->db->query("UPDATE mechanic_booking SET status = $status WHERE booking_id =".$bookData->booking_id);
}
return 1;
}
......
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