Commit 9541a6e8 by Tobin

dc

parent 62a91351
...@@ -608,6 +608,9 @@ class Api_model extends CI_Model { ...@@ -608,6 +608,9 @@ class Api_model extends CI_Model {
$post_data['customer_id'] = $user_id; $post_data['customer_id'] = $user_id;
$post_data['booking_date'] = date('Y-m-d H:i:s'); $post_data['booking_date'] = date('Y-m-d H:i:s');
$post_data['ticket_details'] = json_encode($post_data['ticket_details']); $post_data['ticket_details'] = json_encode($post_data['ticket_details']);
if(!isset($post_data['amount']) || $post_data['amount'] == ''){
$post_data['amount'] = 0;
}
$promocodeData = array(); $promocodeData = array();
if(isset($post_data['promocode_id']) && !empty($post_data['promocode_id']) && if(isset($post_data['promocode_id']) && !empty($post_data['promocode_id']) &&
......
...@@ -213,13 +213,7 @@ class Validation_model extends CI_Model { ...@@ -213,13 +213,7 @@ class Validation_model extends CI_Model {
'code' => 'ER33', 'code' => 'ER33',
'message' => 'Event date and time is null or empty' 'message' => 'Event date and time is null or empty'
) )
) , ),
'amount' => array(
'required' => array(
'code' => 'ER35',
'message' => 'Amount is null or empty'
)
) ,
'no_of_ticket' => array( 'no_of_ticket' => array(
'required' => array( 'required' => array(
'code' => 'ER36', 'code' => 'ER36',
......
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