Subversion Repositories SmartDukaan

Rev

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

Rev 13169 Rev 13170
Line 71... Line 71...
71
    
71
    
72
    foundDeal=False
72
    foundDeal=False
73
    
73
    
74
    for line in cart.lines:
74
    for line in cart.lines:
75
        if line.itemId in dealItems:
75
        if line.itemId in dealItems:
76
            print "continued  line.itemId",  line.itemId
-
 
77
            foundDeal = True 
76
            foundDeal = True 
78
            continue
77
            continue
79
        if discount_left > 0 :
78
        if discount_left > 0 :
80
            discount_value = 0
79
            discount_value = 0
81
            
80
            
Line 177... Line 176...
177
            raise PromotionException(115, 'This coupon is applicable only for ' + args['handset_display_name'])
176
            raise PromotionException(115, 'This coupon is applicable only for ' + args['handset_display_name'])
178
            
177
            
179
    
178
    
180
    
179
    
181
    cart.discountedPrice = cart.totalPrice - round(total_discounts, 0)
180
    cart.discountedPrice = cart.totalPrice - round(total_discounts, 0)
182
    print "cart.discountedPrice----",  cart.discountedPrice
-
 
183
    return cart, discounts
181
    return cart, discounts
184
 
182
 
185
def getDiscountOnItem(item):
183
def getDiscountOnItem(item):
186
    return None
184
    return None
187
185