Subversion Repositories SmartDukaan

Rev

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

Rev 11602 Rev 11768
Line 212... Line 212...
212
                }
212
                }
213
                
213
                
214
                promotionServiceClient = new PromotionClient();
214
                promotionServiceClient = new PromotionClient();
215
                PromotionService.Client promotionClient = promotionServiceClient.getClient();
215
                PromotionService.Client promotionClient = promotionServiceClient.getClient();
216
                
216
                
217
                promotionClient.applyCoupon(couponCode, id);
217
                Cart cart = promotionClient.applyCoupon(couponCode, id);
-
 
218
                if (!(cart.getCouponCode() == null || cart.getCouponCode().equals(""))) {
-
 
219
                	errorMsg = "Coupon successfully applied";
-
 
220
                	for(Line l : cart.getLines()){
-
 
221
                		if (!(l.getDealText() == null || l.getDealText().equals(""))) {
-
 
222
                			errorMsg += ", Your deal has been changed";
-
 
223
                		}
-
 
224
                	}
-
 
225
                }
218
                
226
                
219
            }
227
            }
220
            else if (action.equals("removecoupon"))    {
228
            else if (action.equals("removecoupon"))    {
221
                getClient().removeCoupon(id);
229
                getClient().removeCoupon(id);
222
            }
230
            }