Commit 1dcabb80 by Tobin

t : sync contact

parent a4096cbc
......@@ -577,7 +577,7 @@ class Api extends CI_Controller {
$eventid = $data[2];
$booking_id = $data[3];
$this->Api_model->update_payment($response,'',$last_id,'0',$eventid);
$customData = $this->txnManager($eventid,array('tnx_id'=>$booking_id,'status'=>'0'));
$customData = $this->txnManager($eventid,array('tnx_id'=>$booking_id,'status'=>'2'));
$sql = "SELECT BOK.event_id FROM transaction AS TX
INNER JOIN booking AS BOK ON (BOK.bookId=TX.booking_id)
......
......@@ -25,5 +25,8 @@
WHERE transaction.datetime<'$date_time'";
mysqli_query($conn, $sql);
$sql = "UPDATE wallet_transactions SET status='2' WHERE status='0' && created_date<'$date_time'";
mysqli_query($conn, $sql);
$conn->close();
?>
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