Commit 571afd9d by Tobin

t : currency symbol in booking summary

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