Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcarfixers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
dcarfixers
Commits
420b3c8d
Commit
420b3c8d
authored
Jun 21, 2019
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'dev_production'
Master See merge request
!71
parents
40a0bedb
d3c07698
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
7 deletions
+16
-7
Webservices.php
application/controllers/Webservices.php
+0
-0
Booking_model.php
application/models/Booking_model.php
+3
-3
Mechanic_model.php
application/models/Mechanic_model.php
+0
-3
Vehicle_model.php
application/models/Vehicle_model.php
+13
-1
Webservice_model.php
application/models/Webservice_model.php
+0
-0
No files found.
application/controllers/Webservices.php
View file @
420b3c8d
This diff is collapsed.
Click to expand it.
application/models/Booking_model.php
View file @
420b3c8d
...
...
@@ -208,9 +208,9 @@ class Booking_model extends CI_Model {
BK.customer_veh_id,BK.scheduled_date,BK.scheduled_time,BK.cost,BK.status,BK.mileage,
BK.issues_selected,VEH.car_name,BK.custom_issue_data,VEH.car_model,VEH.car_maker,
VEH.car_model_year,VEH.car_vin,VEH.vehicle_data,BK.car_location,BK.car_loc_lat,
BK.car_loc_lng,CUST.first_name AS custFirstName,CUST.last_name AS custLastName,
CUST.phone,
CUST.
email,CUST.address,CUST.profile_image,CUST.date_of_birth,CUSQTE.custom_id
,
MBK.status AS mech_status
BK.car_loc_lng,CUST.first_name AS custFirstName,CUST.last_name AS custLastName,
CUST.
phone,CUST.email,CUST.address,CUST.profile_image,CUST.date_of_birth
,
CUSQTE.custom_id,
MBK.status AS mech_status
FROM bookings AS BK
INNER JOIN mechanic_booking AS MBK ON (MBK.booking_id=BK.booking_id)
INNER JOIN customers AS CUST ON (CUST.customer_id=BK.customer_id)
...
...
application/models/Mechanic_model.php
View file @
420b3c8d
...
...
@@ -183,8 +183,6 @@ class Mechanic_model extends CI_Model {
foreach
(
$mechData
AS
$index
=>
$data
){
$data
[
'distance'
]
=
(
int
)
$data
[
'distance'
];
if
(
empty
(
$data
[
'start_time'
])
||
empty
(
$data
[
'end_time'
])){
//$scheduleTiming = array('09:00 AM','10:00 AM','11:00 AM','12:00 PM','01:00 PM',
// '02:00 PM','03:00 PM','04:00 PM','05:00 PM','06:00 PM');
$scheduleTiming
=
array
(
strtotime
(
date
(
'Y-m-d 09:00'
))
*
1000
,
strtotime
(
date
(
'Y-m-d 10:00'
))
*
1000
,
...
...
@@ -206,7 +204,6 @@ class Mechanic_model extends CI_Model {
$scheduleTiming
=
array
();
for
(
;
$schTime
<=
(
$endTime
-
3600
)
;
$schTime
+=
3600
){
//$scheduleTiming[] = date('h:i A',$schTime);
$scheduleTiming
[]
=
$schTime
*
1000
;
}
}
...
...
application/models/Vehicle_model.php
View file @
420b3c8d
...
...
@@ -132,7 +132,7 @@ class Vehicle_model extends CI_Model {
return
$last_id
;
}
function
updateVehModel
(
$model_id
=
''
,
$model_data
=
array
()){
public
function
updateVehModel
(
$model_id
=
''
,
$model_data
=
array
()){
if
(
empty
(
$model_id
)
||
empty
(
$model_data
)){
return
0
;
}
...
...
@@ -140,5 +140,16 @@ class Vehicle_model extends CI_Model {
return
(
$status
)
?
1
:
0
;
}
public
function
changeReminderStatus
(
$postData
=
array
()){
$respArr
=
array
(
'status'
=>
'error'
);
if
(
empty
(
$postData
)){
$respArr
[
'message'
]
=
'All Field is Required'
;
}
if
(
$this
->
db
->
update
(
'customer_vehicle'
,
array
(
'enable_notification'
=>
$postData
[
'status'
]),
array
(
'customer_veh_id'
=>
$postData
[
'customer_veh_id'
]))){
$respArr
[
'status'
]
=
'success'
;
}
return
$respArr
;
}
}
?>
\ No newline at end of file
application/models/Webservice_model.php
View file @
420b3c8d
This diff is collapsed.
Click to expand it.
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