Subversion Repositories SmartDukaan

Rev

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

Rev 6001 Rev 6002
Line 41... Line 41...
41
            line.discountedPrice = line.actualPrice - discount_value
41
            line.discountedPrice = line.actualPrice - discount_value
42
            
42
            
43
            has_used_coupon = True
43
            has_used_coupon = True
44
            
44
            
45
            total_selling_price += line.actualPrice * line.quantity
45
            total_selling_price += line.actualPrice * line.quantity
46
            total_discounted_price += line.discountedPrice + (line.quantity-1)*line.actualPrice
46
            total_discounted_price += line.discountedPrice * line.quantity
47
            
47
            
48
            if discount_value > 0:
48
            if discount_value > 0:
49
                discount = Discount()
49
                discount = Discount()
50
                discount.cart_id = cart.id
50
                discount.cart_id = cart.id
51
                discount.item_id = line.itemId
51
                discount.item_id = line.itemId