Subversion Repositories SmartDukaan

Rev

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

Rev 17016 Rev 17374
Line 200... Line 200...
200
		foreach ($masterdata as $key => $value) {
200
		foreach ($masterdata as $key => $value) {
201
			$map[$value['MasterData']['skuBundleId']] = array('name'=>$value['MasterData']['source_product_name'],'brand'=>$value['MasterData']['brand']);
201
			$map[$value['MasterData']['skuBundleId']] = array('name'=>$value['MasterData']['source_product_name'],'brand'=>$value['MasterData']['brand']);
202
		}
202
		}
203
		$this->set(compact('map'));
203
		$this->set(compact('map'));
204
	}
204
	}
-
 
205
 
-
 
206
	public function admin_saledetail(){
-
 
207
		$date  = date("Y-m-d");
-
 
208
		$dt   = new DateTime($date);
-
 
209
		$url = $this->apihost."getSaleDetail/".$dt->getTimestamp();
-
 
210
		$result = $this->make_request($url,null);
-
 
211
		$this->set(compact('result'));
-
 
212
	}
-
 
213
	public  function getDetails($dateval)
-
 
214
	{
-
 
215
		$this->autoRender = false;	
-
 
216
		$this->request->onlyAllow('ajax');
-
 
217
		$dt   = new DateTime($dateval);
-
 
218
		$url = $this->apihost."getSaleDetail/".$dt->getTimestamp();
-
 
219
		$result = $this->make_request($url,null);
-
 
220
		return json_encode($result);
-
 
221
	}
205
}
222
}
206
223