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
36b63830
Commit
36b63830
authored
Mar 03, 2020
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
7300c4ce
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
Api_model.php
application/models/Api_model.php
+4
-4
Webservice_model.php
application/models/Webservice_model.php
+6
-6
No files found.
application/models/Api_model.php
View file @
36b63830
...
...
@@ -383,10 +383,10 @@ class Api_model extends CI_Model {
FROM orders AS ODR
LEFT JOIN booking AS BOK ON
(ODR.booking_id=BOK.bookId AND BOK.status IN (0,1,2,3,5,6))
LEFT JOIN flight_booking AS FBK ON
(ODR.booking_id=FBK.flight_book_id AND FBK.status IN (0,1,2,3,5))
LEFT JOIN hotel_booking AS HBK ON
(ODR.booking_id=HBK.hotel_book_id AND HBK.status IN (0,1,2,3,5))
--
LEFT JOIN flight_booking AS FBK ON
--
(ODR.booking_id=FBK.flight_book_id AND FBK.status IN (0,1,2,3,5))
--
LEFT JOIN hotel_booking AS HBK ON
--
(ODR.booking_id=HBK.hotel_book_id AND HBK.status IN (0,1,2,3,5))
WHERE ODR.customer_id='
$user_id
'
GROUP BY ODR.order_id ORDER BY ODR.order_id DESC
$cond
"
;
$bookedData
=
$this
->
db
->
query
(
$sql
);
...
...
application/models/Webservice_model.php
View file @
36b63830
...
...
@@ -1448,12 +1448,12 @@ class Webservice_model extends CI_Model {
LEFT JOIN booking AS BOK ON
(ODR.booking_id=BOK.bookId AND BOK.status IN (0,1,2,3,5,6) AND
BOK.customer_id='
$user_id
')
LEFT JOIN flight_booking AS FBK ON
(ODR.booking_id=FBK.flight_book_id AND FBK.status IN (0,1,2,3,5) AND
FBK.customer_id='
$user_id
')
LEFT JOIN hotel_booking AS HBK ON
(ODR.booking_id=HBK.hotel_book_id AND HBK.status IN (0,1,2,3,5) AND
HBK.customer_id='
$user_id
')
--
LEFT JOIN flight_booking AS FBK ON
--
(ODR.booking_id=FBK.flight_book_id AND FBK.status IN (0,1,2,3,5) AND
--
FBK.customer_id='
$user_id
')
--
LEFT JOIN hotel_booking AS HBK ON
--
(ODR.booking_id=HBK.hotel_book_id AND HBK.status IN (0,1,2,3,5) AND
--
HBK.customer_id='
$user_id
')
GROUP BY ODR.order_id
$cond
"
);
if
(
$per_page
==
0
&&
$page
==
0
){
return
$bookedData
->
num_rows
();
...
...
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