Commit f7d8b6bb by Jansa Jose

book

parent f25e0f47
......@@ -3780,7 +3780,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
$this->db->update('tbl_medical_records',array('other_observations'=>encrypt_data($data['observations']),'images'=>$data['images']),array('booking_id'=>$data['booking_id']));
$doctor_wallet = $this->db->get_where('tbl_wallet_details',array('doctor_id'=>$doctor_id))->row();
$earn = $res->total_sum - (($res->total_sum * $res->ipok_fee)/100);
if($res->visit_type == '0'){
if($res->visit_type == '0' && $res->payment_type == '2'){
if($doctor_wallet){
$redem_earn = decrypt_data($doctor_wallet->reedem_earn) + $earn;
$future_earn = decrypt_data($doctor_wallet->future_earn) - $earn;
......
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