Subversion Repositories SmartDukaan

Rev

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

Rev 13521 Rev 15757
Line 339... Line 339...
339
        try {
339
        try {
340
            String couponCode = transaction.getCoupon_code();
340
            String couponCode = transaction.getCoupon_code();
341
            
341
            
342
            if (couponCode != null && !couponCode.isEmpty()) {
342
            if (couponCode != null && !couponCode.isEmpty()) {
343
            	PromotionClient promotionServiceClient = new PromotionClient();
343
            	PromotionClient promotionServiceClient = new PromotionClient();
344
                promotionServiceClient.getClient().trackCouponUsage(couponCode, transaction.getId(), transaction.getCustomer_id(), sum, true);
344
                promotionServiceClient.getClient().trackCouponUsage(couponCode, transaction.getId(), transaction.getCustomer_id(), sum, false);
345
            }
345
            }
346
        } catch (PromotionException e) {
346
        } catch (PromotionException e) {
347
            log.error("Promotion Exception: " + e);
347
            log.error("Promotion Exception: " + e);
348
        } catch (TException e)  {
348
        } catch (TException e)  {
349
            log.error("Transport from Promotion Service failed:", e);
349
            log.error("Transport from Promotion Service failed:", e);