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
60f8f4ff
Commit
60f8f4ff
authored
6 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jansa'
parents
85b79d75
67c378d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
Webservice_model.php
admin/application/models/Webservice_model.php
+1
-0
Printer.php
application/controllers/Printer.php
+1
-1
Doctor_model.php
application/models/Doctor_model.php
+4
-1
No files found.
admin/application/models/Webservice_model.php
View file @
60f8f4ff
...
@@ -3240,6 +3240,7 @@ class Webservice_model extends CI_Model {
...
@@ -3240,6 +3240,7 @@ class Webservice_model extends CI_Model {
//$this->db->select('id,type,message,read_status');
//$this->db->select('id,type,message,read_status');
//SELECT IIF(Obsolete = 'N' or InStock = 'Y', 1, 0) as Saleable, * FROM Product
//SELECT IIF(Obsolete = 'N' or InStock = 'Y', 1, 0) as Saleable, * FROM Product
$this
->
db
->
select
(
"read_status,id,type,message"
);
$this
->
db
->
select
(
"read_status,id,type,message"
);
$this
->
db
->
order_by
(
'tbl_doctor_notifications.id'
,
'DESC'
);
$this
->
db
->
limit
(
$per_page
,
$start
);
$this
->
db
->
limit
(
$per_page
,
$start
);
$result
=
$this
->
db
->
get_where
(
'tbl_doctor_notifications'
,
array
(
'doctor_id'
=>
$doctorid
))
->
result
();
$result
=
$this
->
db
->
get_where
(
'tbl_doctor_notifications'
,
array
(
'doctor_id'
=>
$doctorid
))
->
result
();
//echo $this->db->last_query();exit();
//echo $this->db->last_query();exit();
...
...
This diff is collapsed.
Click to expand it.
application/controllers/Printer.php
View file @
60f8f4ff
...
@@ -259,7 +259,7 @@ class Printer extends CI_Controller {
...
@@ -259,7 +259,7 @@ class Printer extends CI_Controller {
<h5 style="margin:0px;font-size: 14px;"><b>'
.
$bud_quantity
.
' - '
.
$bud_procedure
.
'</b></h5>
<h5 style="margin:0px;font-size: 14px;"><b>'
.
$bud_quantity
.
' - '
.
$bud_procedure
.
'</b></h5>
</td>
</td>
<td style="padding:15px;padding-left: 0px;border-bottom:1px solid #a8a8a8;">
<td style="padding:15px;padding-left: 0px;border-bottom:1px solid #a8a8a8;">
<h5 style="margin:0px;font-size: 14px;text-align: right;"><b>R$'
.
$bud_amount
.
'</b></h5>
<h5 style="margin:0px;font-size: 14px;text-align: right;"><b>R$
'
.
$bud_amount
.
'</b></h5>
</td>
</td>
</tr>'
;
</tr>'
;
...
...
This diff is collapsed.
Click to expand it.
application/models/Doctor_model.php
View file @
60f8f4ff
...
@@ -838,12 +838,15 @@ public function get_wallet_for_doctor($doc_id)
...
@@ -838,12 +838,15 @@ public function get_wallet_for_doctor($doc_id)
$this
->
db
->
from
(
'tbl_wallet_details'
);
$this
->
db
->
from
(
'tbl_wallet_details'
);
$this
->
db
->
where
(
'doctor_id'
,
$doc_id
);
$this
->
db
->
where
(
'doctor_id'
,
$doc_id
);
$query
=
$this
->
db
->
get
();
$query
=
$this
->
db
->
get
();
$query
[
'reedem_earn'
]
=
decrypt_data
(
$query
[
'reedem_earn'
]);
$query
[
'future_earn'
]
=
decrypt_data
(
$query
[
'future_earn'
]);
$query
[
'total_earn'
]
=
decrypt_data
(
$query
[
'total_earn'
]);
return
$query
->
row_array
();
return
$query
->
row_array
();
}
}
public
function
update_wallet
(
$id
,
$data
)
public
function
update_wallet
(
$id
,
$data
)
{
{
$sql
=
$this
->
db
->
insert_string
(
'tbl_wallet_details'
,
array
(
"doctor_id"
=>
$id
,
"reedem_earn"
=>
$data
[
'reedem_earn'
],
"future_earn"
=>
$data
[
'future_earn'
],
"total_earn"
=>
$data
[
'total_earn'
]))
.
' ON DUPLICATE KEY UPDATE doctor_id = '
.
$id
.
',reedem_earn ='
.
'"'
.
$data
[
'reedem_earn'
]
.
'"'
.
',future_earn='
.
$data
[
'future_earn'
]
.
',total_earn='
.
$data
[
'total_earn'
]
;
$sql
=
$this
->
db
->
insert_string
(
'tbl_wallet_details'
,
array
(
"doctor_id"
=>
$id
,
"reedem_earn"
=>
encrypt_data
(
$data
[
'reedem_earn'
]),
"future_earn"
=>
encrypt_data
(
$data
[
'future_earn'
]),
"total_earn"
=>
encrypt_data
(
$data
[
'total_earn'
])))
.
' ON DUPLICATE KEY UPDATE doctor_id = '
.
$id
.
',reedem_earn ='
.
'"'
.
encrypt_data
(
$data
[
'reedem_earn'
])
.
'"'
.
',future_earn='
.
'"'
.
encrypt_data
(
$data
[
'future_earn'
])
.
'"'
.
',total_earn='
.
'"'
.
$data
[
'total_earn'
]
.
'"'
;
//print_r($this->db->last_sqlquery());die();
//print_r($this->db->last_sqlquery());die();
if
(
$this
->
db
->
query
(
$sql
)){
if
(
$this
->
db
->
query
(
$sql
)){
$return_array
=
array
(
'status'
=>
'success'
);
$return_array
=
array
(
'status'
=>
'success'
);
...
...
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