Subversion Repositories SmartDukaan

Rev

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

Rev 6996 Rev 8756
Line 331... Line 331...
331
                if (userinfo.getUserId() != Long.parseLong(userId)) {
331
                if (userinfo.getUserId() != Long.parseLong(userId)) {
332
                    errorMessage = "Oops! There seems to be a problem. Please try after some time";
332
                    errorMessage = "Oops! There seems to be a problem. Please try after some time";
333
                    log.warn("Logged in user : " + userinfo.getUserId() + " does not match with userId sent by user  : " +  userId);
333
                    log.warn("Logged in user : " + userinfo.getUserId() + " does not match with userId sent by user  : " +  userId);
334
                    return "recharge-redirect";
334
                    return "recharge-redirect";
335
                }
335
                }
-
 
336
            }else{
-
 
337
                if(Long.parseLong(walletAmountUsed) > 0) {
-
 
338
                    errorMessage = "Oops! There seems to be a problem. Please try after some time";
-
 
339
                    log.warn("WalletAmount used : " + walletAmountUsed + " is greater than zero for non logged-in user.");
-
 
340
                    return "recharge-redirect";
-
 
341
                }
-
 
342
            	
336
            }
343
            }
337
            
344
            
338
            PromotionClient pc = new PromotionClient();
345
            PromotionClient pc = new PromotionClient();
339
            Map<Long, String> couponResult = null;
346
            Map<Long, String> couponResult = null;
340
            couponResult = pc.getClient().applyRechargeCoupon(couponCode, Long.parseLong(totalAmount), Long.parseLong(userId));
347
            couponResult = pc.getClient().applyRechargeCoupon(couponCode, Long.parseLong(totalAmount), Long.parseLong(userId));