Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nemt_backend
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
Tobin
nemt_backend
Commits
3d5497f5
Commit
3d5497f5
authored
Oct 15, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
f79787d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Ride.php
application/controllers/Ride.php
+1
-1
Ride_model.php
application/models/Ride_model.php
+1
-1
No files found.
application/controllers/Ride.php
View file @
3d5497f5
...
...
@@ -1057,7 +1057,7 @@ class Ride extends CI_Controller {
if
((
empty
(
$ride
->
trip_status
)
||
$ride
->
trip_status
==
$ride
->
accept_trip_status
)
&&
!
empty
(
$ride
->
appointment_time
)
&&
$this
->
session
->
userdata
[
'user_type'
]
!=
1
&&
!
empty
(
$ride
->
appointment_time
)
&&
$ride
->
is_scheduled
!=
3
&&
$ride
->
appointment_time
>
strtotime
(
date
(
'Y-m-d G:i
'
))){
$ride
->
appointment_time
>
=
strtotime
(
date
(
'Y-m-d 00:00
'
))){
$style
=
'style="color:red;";'
;
$ride
->
is_scheduled
=
(
isset
(
$ride
->
is_scheduled
))
?
$ride
->
is_scheduled
:
0
;
if
(
$ride
->
is_scheduled
==
1
){
...
...
application/models/Ride_model.php
View file @
3d5497f5
...
...
@@ -117,7 +117,7 @@ class Ride_model extends CI_Model {
$field
=
'count(TD.transport_id) AS count'
;
if
(
$scheduleCnt
==
1
){
$field
=
" TD.transport_id "
;
$cond
.=
" AND TD.appointment_time>
"
.
strtotime
(
date
(
'Y-m-d G:i
'
));
$cond
.=
" AND TD.appointment_time>
="
.
strtotime
(
date
(
'Y-m-d 00:00
'
));
$cond
.=
" AND TD.is_scheduled='0' AND (TD.trip_status=BK.accept_trip_status OR TD.broker_id=0)"
;
}
$sql
=
"SELECT
$field
FROM transport_details TD
...
...
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