Subversion Repositories SmartDukaan

Rev

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

Rev 19465 Rev 19466
Line 218... Line 218...
218
		$url = $this->apihost."getSaleDetail/".$dt->getTimestamp();
218
		$url = $this->apihost."getSaleDetail/".$dt->getTimestamp();
219
		$result = $this->make_request($url,null);
219
		$result = $this->make_request($url,null);
220
		return json_encode($result);
220
		return json_encode($result);
221
	}
221
	}
222
	
222
	
223
	public function admin_pendingapproval($type = null,$id = null,$user_id = null,$amount = null){
223
	public function admin_pendingapproval($type = null,$id = null,$user_id = null,$amount = null,$rtype = null){
224
		$page = $this->request->query('page');
224
		$page = $this->request->query('page');
225
		if(!isset($page)){
225
		if(!isset($page)){
226
			$page = 1;
226
			$page = 1;
227
		}
227
		}
228
		$limit = 20;
228
		$limit = 20;
Line 230... Line 230...
230
		$sendata = array();
230
		$sendata = array();
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
			$sendata['type'] = $rtype;
235
// 			$senddata = '{"user_id" : '.$user_id.' , "_id" : '.$id.'}';
236
// 			$senddata = '{"user_id" : '.$user_id.' , "_id" : '.$id.'}';
236
			$sendurl = $this->apihost."updateRefundStatus?status=".$type;
237
			$sendurl = $this->apihost."updateRefundStatus?status=".$type;
237
			$this->make_request($sendurl, json_encode($senddata));
238
			$this->make_request($sendurl, json_encode($senddata));
238
		}
239
		}
239
		$url  = $this->apihost."refundToWallet?offset=".$offset."&limit=".$limit."&status=Pending";
240
		$url  = $this->apihost."refundToWallet?offset=".$offset."&limit=".$limit."&status=Pending";