Subversion Repositories SmartDukaan

Rev

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

Rev 5997 Rev 6018
Line 33... Line 33...
33
    for line in cart.lines:
33
    for line in cart.lines:
34
        total_selling_price += line.actualPrice * line.quantity
34
        total_selling_price += line.actualPrice * line.quantity
35
        discount_value = 0
35
        discount_value = 0
36
        
36
        
37
        if line.itemId in itemTuple:
37
        if line.itemId in itemTuple:
-
 
38
            discount = args['discount']
-
 
39
            if line.itemId in (6830, 6737, 7769):
-
 
40
                discount = 500
38
            cart_has_specified_item = True
41
            cart_has_specified_item = True
39
            line.discountedPrice = round(line.actualPrice - args['discount'], 4)
42
            line.discountedPrice = round(line.actualPrice - discount, 4)
40
            total_discounted_price += round(line.discountedPrice * line.quantity, 4)
43
            total_discounted_price += round(line.discountedPrice * line.quantity, 4)
41
            discount_value = args['discount']
44
            discount_value = discount
42
        else:
45
        else:
43
            total_discounted_price += round(line.actualPrice * line.quantity, 4)
46
            total_discounted_price += round(line.actualPrice * line.quantity, 4)
44
        
47
        
45
        if discount_value > 0:
48
        if discount_value > 0:
46
            discount = Discount()
49
            discount = Discount()