Commit 27aa0325 by Jansa Jose

encryptdata medical

parent 3891b384
......@@ -1482,7 +1482,7 @@ class Webservice_model extends CI_Model {
$query = $this->db->get_where('tbl_booking',array('medical_record_id'=>$data['medical_record_id']))->row();
if($query){
if($query->medical_record_id != '' || $query->medical_record_id != '0'){
$this->db->update('tbl_medical_records',array('patient_review'=>$data['review']),array('id'=>$data['medical_record_id']));
$this->db->update('tbl_medical_records',array('patient_review'=>encrypt_data($data['review'])),array('id'=>$data['medical_record_id']));
}
}
unset($data['medical_record_id']);
......@@ -2091,7 +2091,7 @@ class Webservice_model extends CI_Model {
//echo"<pre>";print_r($result);echo"</pre>";
if($result){
$fee = $this->db->get('settings')->row();
$result['review'] = $result['patient_review'];
$result['review'] = decrypt_data($result['patient_review']);
unset($result['patient_review']);
$actual = ($result['consultation_fee'] * $fee->ipok_fee)/100 ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment