Subversion Repositories SmartDukaan

Rev

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

Rev 3401 Rev 3513
Line 37... Line 37...
37
                has_qualified_model = True
37
                has_qualified_model = True
38
                
38
                
39
                if line.actualPrice:
39
                if line.actualPrice:
40
                    line.discountedPrice = round(line.actualPrice  - 250)
40
                    line.discountedPrice = round(line.actualPrice  - 250)
41
            
41
            
42
            elif line.itemId == 1591:  #Blackberry 9900 Bold 4
42
#            elif line.itemId == 1591:  #Blackberry 9900 Bold 4
43
                
43
#                
44
                has_qualified_model = True
44
#                has_qualified_model = True
45
                
45
#                
46
                if line.actualPrice:
46
#                if line.actualPrice:
47
                    line.discountedPrice = line.actualPrice - 2000
47
#                    line.discountedPrice = line.actualPrice - 2000
48
            
48
            
49
            elif line.itemId in (10, 1560, 1561):  #Curve 3G 9300
49
            elif line.itemId in (10, 1560, 1561):  #Curve 3G 9300
50
                
50
                
51
                has_qualified_model = True
51
                has_qualified_model = True
52
                
52
                
Line 58... Line 58...
58
                has_qualified_model = True
58
                has_qualified_model = True
59
                
59
                
60
                if line.actualPrice:
60
                if line.actualPrice:
61
                    line.discountedPrice = line.actualPrice - 600
61
                    line.discountedPrice = line.actualPrice - 600
62
            
62
            
63
            elif line.itemId in (1, 2):  #Bold 3 9780
63
#            elif line.itemId in (1, 2):  #Bold 3 9780
64
                
64
#                
65
                has_qualified_model = True
65
#                has_qualified_model = True
66
                
66
#                
67
                if line.actualPrice:
67
#                if line.actualPrice:
68
                    line.discountedPrice = line.actualPrice - 1650
68
#                    line.discountedPrice = line.actualPrice - 1650
69
            
69
#            
70
            elif line.itemId == 1543:  #Playbook 16 GB
70
            elif line.itemId == 1543:  #Playbook 16 GB
71
                
71
                
72
                has_qualified_model = True
72
                has_qualified_model = True
73
                
73
                
74
                if line.actualPrice:
74
                if line.actualPrice:
Line 88... Line 88...
88
            raise PromotionException(115, 'This coupon is applicable only for selective 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
-
 
94
93
    return cart
-
 
94