Subversion Repositories SmartDukaan

Rev

Rev 23242 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23242 Rev 23243
Line 88... Line 88...
88
    public String verifyRetailer() throws Exception{
88
    public String verifyRetailer() throws Exception{
89
    	try{
89
    	try{
90
			UserClient userServiceClient = new UserClient();
90
			UserClient userServiceClient = new UserClient();
91
	        in.shop2020.model.v1.user.UserContextService.Client userClient = userServiceClient.getClient();
91
	        in.shop2020.model.v1.user.UserContextService.Client userClient = userServiceClient.getClient();
92
	        Counter counter = userClient.getCounterByUserId(userId);
92
	        Counter counter = userClient.getCounterByUserId(userId);
93
	        if(counter.getId()!=0) {
93
	        if(counter.getId()!=-1) {
94
	        	counter.setGstin(gstin);
94
	        	counter.setGstin(gstin);
95
	        	counter.setDocumentVerified(true);
95
	        	counter.setDocumentVerified(true);
96
	        	userClient.updateCounter(counter);
96
	        	userClient.updateCounter(counter);
97
	        }else{
97
	        }else{
98
		        counter = new Counter();
98
		        counter = new Counter();