Subversion Repositories SmartDukaan

Rev

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

Rev 18900 Rev 18908
Line 15... Line 15...
15
 */
15
 */
16
	public $components = array('Paginator');
16
	public $components = array('Paginator');
17
 
17
 
18
	public function beforeFilter() {
18
	public function beforeFilter() {
19
		parent::beforeFilter();
19
		parent::beforeFilter();
-
 
20
		$this->Auth->allow(array('tin_search'));
20
		$this->apihost = Configure::read('pythonapihost');
21
		$this->apihost = Configure::read('pythonapihost');
21
	}
22
	}
22
	public function tin_search($tin_num = null) {
23
	public function tin_search($tin_num = null) {
23
		$this->layout = 'ajax';
24
		$this->layout = 'ajax';
24
// 		$tinres = json_decode('{"tin" : "07976957280" , "cst" : "07976957280","counter_name" : "E-RETAIL SHOP","counter_address" : "SHOP IN H. NO. 61 BLOCK B MOLAR BAND EXTN.,-110044" ,"state" : "North Delhi","pan" : "AEEPV9740C","registered_on" :"16/03/15 ","cst_status" : "Active","valid_since" :"06/07/15", "isError": "false", "errorMsg": "Error message"}',true);
25
// 		$tinres = json_decode('{"tin" : "07976957280" , "cst" : "07976957280","counter_name" : "E-RETAIL SHOP","counter_address" : "SHOP IN H. NO. 61 BLOCK B MOLAR BAND EXTN.,-110044" ,"state" : "North Delhi","pan" : "AEEPV9740C","registered_on" :"16/03/15 ","cst_status" : "Active","valid_since" :"06/07/15", "isError": "false", "errorMsg": "Error message"}',true);
Line 33... Line 34...
33
	}
34
	}
34
	
35
	
35
	public function confirm(){
36
	public function confirm(){
36
// 		return $this->redirect(
37
// 		return $this->redirect(
37
// 				array('controller' => 'categories', 'action' => 'view',3));
38
// 				array('controller' => 'categories', 'action' => 'view',3));
-
 
39
// 		mobileapi/tin?userId=<>&isLoggedIn=true&privateDealUser=true
38
		$this->redirect('/category/3');
40
		$this->redirect('/category/3');
39
	}
41
	}
40
 
42
 
41
}
43
}
42
 
44