Subversion Repositories SmartDukaan

Rev

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

Rev 3387 Rev 3401
Line 83... Line 83...
83
            
83
            
84
            total_selling_price += line.actualPrice * line.quantity
84
            total_selling_price += line.actualPrice * line.quantity
85
            total_discounted_price += line.discountedPrice * line.quantity
85
            total_discounted_price += line.discountedPrice * line.quantity
86
        
86
        
87
        if has_qualified_model is False:
87
        if has_qualified_model is False:
88
            raise PromotionException(115, 'This coupon is applicable only for selected Blackberry handsets.')
88
            raise PromotionException(115, 'This coupon is applicable only for selective Blackberry handsets.')
89
        
89
        
90
        cart.totalPrice = total_selling_price
90
        cart.totalPrice = total_selling_price
91
        cart.discountedPrice = total_discounted_price
91
        cart.discountedPrice = total_discounted_price
92
    
92
    
93
    return cart
93
    return cart
94
94