Subversion Repositories SmartDukaan

Rev

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

Rev 6455 Rev 6456
Line 40... Line 40...
40
            cart_has_specified_item = True
40
            cart_has_specified_item = True
41
            discount_value = args['items'][line.itemId]
41
            discount_value = args['items'][line.itemId]
42
            if isPercentageDiscount:
42
            if isPercentageDiscount:
43
                discount_value = round((line.actualPrice*discount_value)/100, 4)
43
                discount_value = round((line.actualPrice*discount_value)/100, 4)
44
                
44
                
45
            line.discountedPrice = line.actualPrice - discount_value, 4
45
            line.discountedPrice = round(line.actualPrice - discount_value, 4)
46
            total_discounted_price += round(line.discountedPrice * line.quantity, 4)
46
            total_discounted_price += round(line.discountedPrice * line.quantity, 4)
47
        else:
47
        else:
48
            total_discounted_price += round(line.actualPrice * line.quantity, 4)
48
            total_discounted_price += round(line.actualPrice * line.quantity, 4)
49
        
49
        
50
        if discount_value > 0:
50
        if discount_value > 0: