Subversion Repositories SmartDukaan

Rev

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

Rev 4860 Rev 4861
Line 51... Line 51...
51
    if cart_has_specified_item is False:
51
    if cart_has_specified_item is False:
52
        raise PromotionException(115, 'This coupon is applicable only for ' + args['handset_display_name'])
52
        raise PromotionException(115, 'This coupon is applicable only for ' + args['handset_display_name'])
53
    
53
    
54
    cart.totalPrice = round(total_selling_price, 4)
54
    cart.totalPrice = round(total_selling_price, 4)
55
    cart.discountedPrice = total_discounted_price
55
    cart.discountedPrice = total_discounted_price
56
    return cart, discount
-
 
57
56
    return cart, discounts
-
 
57
58
58