diff --git a/application/models/Webservice_model.php b/application/models/Webservice_model.php index be26cdb..fc8f682 100644 --- a/application/models/Webservice_model.php +++ b/application/models/Webservice_model.php @@ -1558,7 +1558,7 @@ class Webservice_model extends CI_Model { $this->db->join("mechanic_booking","mechanic_booking.booking_id = bookings.booking_id AND mechanic_booking.status='1'"); $this->db->join("mechanic","mechanic_booking.mechanic_id = mechanic.mechanic_id AND mechanic_booking.status='1'"); } - $result = $this->db->get_where('transaction',array('transaction.id'=>$transId))->row_array(); + $result = $this->db->get_where('transaction',array('transaction.id'=>$transId,'transaction.payment_for'=>'1'))->row_array(); if($result){ $respArr['status'] = "success"; $respArr['data'] = $result;