Subversion Repositories SmartDukaan

Rev

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

Rev 23095 Rev 23194
Line 1008... Line 1008...
1008
        if fofoDealsMap:
1008
        if fofoDealsMap:
1009
            return validate_fofo_cart(cart, user, privateDealUser, customer_pincode)
1009
            return validate_fofo_cart(cart, user, privateDealUser, customer_pincode)
1010
 
1010
 
1011
    
1011
    
1012
    logistics_client = LogisticsClient().get_client()
1012
    logistics_client = LogisticsClient().get_client()
1013
    promotion_client = PromotionClient().get_client()
-
 
1014
 
1013
 
1015
    responseMap = {}
1014
    responseMap = {}
1016
    totalQty = 0
1015
    totalQty = 0
1017
    nonAccessoryQuantity = 0
1016
    nonAccessoryQuantity = 0
1018
    totalAmount = 0 
1017
    totalAmount = 0 
Line 1221... Line 1220...
1221
            cart.checked_out_on = None
1220
            cart.checked_out_on = None
1222
    session.commit()
1221
    session.commit()
1223
    
1222
    
1224
    if cart.coupon_code is not None:
1223
    if cart.coupon_code is not None:
1225
        try:
1224
        try:
-
 
1225
            promotion_client = PromotionClient().get_client()
1226
            updated_cart = promotion_client.applyCoupon(cart.coupon_code, cart.id)
1226
            updated_cart = promotion_client.applyCoupon(cart.coupon_code, cart.id)
1227
            if updated_cart.message is not None:
1227
            if updated_cart.message is not None:
1228
                emival = updated_cart.message
1228
                emival = updated_cart.message
1229
        except PromotionException as ex:
1229
        except PromotionException as ex:
1230
            remove_coupon(cart.id)
1230
            remove_coupon(cart.id)