Subversion Repositories SmartDukaan

Rev

Rev 19468 | Rev 19530 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19468 Rev 19498
Line 231... Line 231...
231
		if($type != null){
231
		if($type != null){
232
			$senddata['user_id'] = $user_id;
232
			$senddata['user_id'] = $user_id;
233
			$senddata['_id'] = $id;
233
			$senddata['_id'] = $id;
234
			$senddata['amount'] = $amount;
234
			$senddata['amount'] = $amount;
235
			$senddata['type'] = $rtype;
235
			$senddata['type'] = $rtype;
-
 
236
			$senddata['approved_by'] = $this->Auth->user('email');
236
// 			$senddata = '{"user_id" : '.$user_id.' , "_id" : '.$id.'}';
237
// 			$senddata = '{"user_id" : '.$user_id.' , "_id" : '.$id.'}';
237
			$sendurl = $this->apihost."updateRefundStatus?status=".$type;
238
			$sendurl = $this->apihost."updateRefundStatus?status=".$type;
238
			$this->make_request($sendurl, json_encode($senddata));
239
			$this->make_request($sendurl, json_encode($senddata));
239
 			return $this->redirect(array('action' => 'admin_pendingapproval'));
240
 			return $this->redirect(array('action' => 'admin_pendingapproval'));
240
		}		
241
		}