Subversion Repositories SmartDukaan

Rev

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

Rev 7781 Rev 8456
Line 121... Line 121...
121
            break
121
            break
122
    
122
    
123
    if cart_has_specified_item is False:
123
    if cart_has_specified_item is False:
124
        raise PromotionException(115, 'This coupon is applicable only for ' + args['handset_display_name'])
124
        raise PromotionException(115, 'This coupon is applicable only for ' + args['handset_display_name'])
125
    
125
    
126
    cart.discountedPrice = cart.totalPrice - total_discounts
126
    cart.discountedPrice = cart.totalPrice - round(total_discounts, 0)
127
    return cart, discounts
127
    return cart, discounts
128
 
128
 
129
def getDiscountOnItem(item):
129
def getDiscountOnItem(item):
130
    return None
130
    return None
131
131