Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IPok_Web
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
IPok
IPok_Web
Commits
c67fede4
Commit
c67fede4
authored
6 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jansa'
parents
9057ebd5
ae831db4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Webservice_model.php
admin/application/models/Webservice_model.php
+6
-2
No files found.
admin/application/models/Webservice_model.php
View file @
c67fede4
...
...
@@ -3511,6 +3511,10 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
$query
=
$this
->
db
->
get_where
(
'tbl_booking'
,
array
(
'id'
=>
$data
[
'booking_id'
]))
->
row
();
if
(
$query
){
$this
->
db
->
update
(
'tbl_booking'
,
array
(
'booking_status'
=>
'2'
),
array
(
'id'
=>
$data
[
'booking_id'
]));
$new
[
'main_complaint'
]
=
null
;
$this
->
db
->
insert
(
'tbl_medical_records'
,
$new
);
$last_id
=
$this
->
db
->
insert_id
();
$this
->
db
->
update
(
'tbl_booking'
,
array
(
'medical_record_id'
=>
$last_id
),
array
(
'id'
=>
$data
[
'booking_id'
]));
$result
=
array
(
'status'
=>
'success'
);
}
else
{
$result
=
array
(
'status'
=>
'failed'
,
'message'
=>
'Invalid Booking Id'
);
...
...
@@ -3685,7 +3689,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
}
else
{
$return
=
array
(
'status'
=>
'failed'
,
'message'
=>
'Something Went Wrong..Try Again Later!'
);
}
}
else
{
}
/*
else{
$this->db->insert('tbl_medical_records',$new);
$last_id = $this->db->insert_id();
if($this->db->update('tbl_booking',array('medical_record_id'=>$last_id),array('id'=>$data['booking_id']))){
...
...
@@ -3693,7 +3697,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
}else{
$return = array('status'=>'failed','message'=>'Something Went Wrong..Try Again Later!');
}
}
}
*/
}
else
{
$return
=
array
(
'status'
=>
'failed'
,
'message'
=>
'Invalid Doctor'
);
}
...
...
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