Commit 571afd9d by Tobin

t : currency symbol in booking summary

parent 9f0cc905
...@@ -839,11 +839,12 @@ class Webservice_model extends CI_Model { ...@@ -839,11 +839,12 @@ class Webservice_model extends CI_Model {
$countryData = $this->getCountryData($user_id); $countryData = $this->getCountryData($user_id);
$lang = $countryData['language_code']; $lang = $countryData['language_code'];
$kk = array();
$sql = "SELECT ticket_details FROM booking WHERE bookId='$bookId'"; $sql = "SELECT ticket_details FROM booking WHERE bookId='$bookId'";
$ticketDetails = $this->db->query($sql)->row(); $ticketDetails = $this->db->query($sql)->row();
$res = json_decode($ticketDetails->ticket_details); if(!empty($ticketDetails)){
if(!empty($res)){ $res = json_decode($ticketDetails->ticket_details);
$kk['ticket_rate'] = "$res->price"; $kk['ticket_rate'] = (!empty($res))?"$res->price":'';
} }
$settings = getSettings(); $settings = getSettings();
...@@ -881,6 +882,7 @@ class Webservice_model extends CI_Model { ...@@ -881,6 +882,7 @@ class Webservice_model extends CI_Model {
$resultData = array(); $resultData = array();
$result['is_payment_required'] = ($result['is_payment_required'] == 1) ? true: false; $result['is_payment_required'] = ($result['is_payment_required'] == 1) ? true: false;
$resultData = array_merge($settingsDetails, $result,!empty($kk)?$kk:[]); $resultData = array_merge($settingsDetails, $result,!empty($kk)?$kk:[]);
$resultData['currency_symbol'] = $countryData['currency_symbol'];
$res = array('status'=>1,'data'=>$resultData); $res = array('status'=>1,'data'=>$resultData);
} else { } else {
$res = array('status'=>0,'message'=>'No records found','code'=>'ER13'); $res = array('status'=>0,'message'=>'No records found','code'=>'ER13');
......
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