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();
?>
......@@ -1398,7 +1398,7 @@ class Api_model extends CI_Model {
if($txnData['status'] == 1){
$cond = array('transaction_code'=>$txnData['tnx_id'],'status'=>'1');
$lastTxn = $this->db->get_where('wallet_transactions',$cond)->result_array();
$amount = $lastTxn['amount'];
$customer_id = $lastTxn['customer_id'];
$sql = "UPDATE wallet SET balance_amount=balance_amount+$amount
......
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