Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TimeOutAdmin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TimeOut
TimeOutAdmin
Commits
571afd9d
Commit
571afd9d
authored
Nov 13, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t : currency symbol in booking summary
parent
9f0cc905
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Webservice_model.php
application/models/Webservice_model.php
+5
-3
No files found.
application/models/Webservice_model.php
View file @
571afd9d
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment