From 571afd9db37fa340d47a3b39f69bdf51ac429ac7 Mon Sep 17 00:00:00 2001
From: tobin <tobin@techware.in>
Date: Wed, 13 Nov 2019 18:43:28 +0530
Subject: [PATCH] t : currency symbol in booking summary

---
 application/models/Webservice_model.php | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/application/models/Webservice_model.php b/application/models/Webservice_model.php
index 36a2235..671a0d8 100644
--- a/application/models/Webservice_model.php
+++ b/application/models/Webservice_model.php
@@ -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');
--
libgit2 0.27.1