Commit 632dd931 by Jansa Jose

add to order table

parent acec7033
...@@ -1158,6 +1158,7 @@ class Webservice_model extends CI_Model { ...@@ -1158,6 +1158,7 @@ class Webservice_model extends CI_Model {
$rs = $this->db->insert('booking', $post_data); $rs = $this->db->insert('booking', $post_data);
$id = $this->db->insert_id(); $id = $this->db->insert_id();
$this->db->insert('orders',array('booking_id'=>$post_data['bookId'],'order_type'=>'1','created_date'=>date('Y-m-d h:i:s'),'customer_id'=>$user_id));
if($id){ if($id){
if(!empty($promocodeData)){ if(!empty($promocodeData)){
......
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