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
e33a01be
Commit
e33a01be
authored
5 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'local_production'
get allocated service api See merge request
!104
parents
fca71ec5
b1f5360e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Webservice_model.php
application/models/Webservice_model.php
+3
-1
No files found.
application/models/Webservice_model.php
View file @
e33a01be
...
...
@@ -185,7 +185,9 @@ class Webservice_model extends CI_Model {
$bookData
[
$key
][
'engine_no'
]
=
json_decode
(
$value
[
'vehicle_data'
])
->
engine
;
$bookData
[
$key
][
'booked_date'
]
=
(
string
)
strtotime
(
$value
[
'booked_date'
])
*
1000
;
$bookData
[
$key
][
'booked_date'
]
=
$bookData
[
$key
][
'booked_date'
]
.
""
;
$bookData
[
$key
][
'services'
]
=
!
empty
(
$value
[
'issues_selected'
])
?
json_decode
(
$value
[
'issues_selected'
])
:
''
;
if
(
$value
->
is_emergency
==
'1'
){
$bookData
[
$key
][
'services'
]
=
!
empty
(
$value
[
'issues_selected'
])
?
json_decode
(
$value
[
'issues_selected'
])
:
''
;
}
$bookData
[
$key
][
'service_description'
]
=
!
empty
(
$value
[
'custom_issue_data'
])
?
json_decode
(
$value
[
'custom_issue_data'
])
->
optionlaDescription
:
''
;
unset
(
$bookData
[
$key
][
'vehicle_data'
],
$bookData
[
$key
][
'issues_selected'
],
$bookData
[
$key
][
'custom_issue_data'
]);
}
...
...
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