Subversion Repositories SmartDukaan

Rev

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

Rev 8707 Rev 9620
Line 228... Line 228...
228
				    }
228
				    }
229
				    
229
				    
230
				    coupon = pClient.createCoupon(type, couponcategory, couponCode, arguments, false, prefix);
230
				    coupon = pClient.createCoupon(type, couponcategory, couponCode, arguments, false, prefix);
231
					
231
					
232
				} catch (Exception e){
232
				} catch (Exception e){
-
 
233
					logger.info("Exception Caught"+e);
-
 
234
				    System.out.println("Exception Caught"+e);
233
					return "authsuccess";
235
					return "authsuccess";
234
				}
236
				}
235
			}
237
			}
236
		}
238
		}
237
		return "authsuccess";	
239
		return "authsuccess";	
Line 252... Line 254...
252
				logger.error("Error getting order object for orderId: "+orderId, e1);
254
				logger.error("Error getting order object for orderId: "+orderId, e1);
253
			}
255
			}
254
			if(order!=null && discount<=order.getTotal_amount()){
256
			if(order!=null && discount<=order.getTotal_amount()){
255
				return true;
257
				return true;
256
			}
258
			}
-
 
259
			logger.info("Coupon Can't be created due to Coupon Amount Greater Than Order Total Amount");
257
		}
260
		}
258
		else if(couponcategory==CouponCategory.CUSTOMER_SATISFACTION.getValue() || couponcategory==CouponCategory.MARKETING.getValue()){
261
		else if(couponcategory==CouponCategory.CUSTOMER_SATISFACTION.getValue() || couponcategory==CouponCategory.MARKETING.getValue()){
259
			return true;
262
			return true;
260
		}
263
		}
261
		return false;
264
		return false;