Subversion Repositories SmartDukaan

Rev

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

Rev 3513 Rev 3514
Line 2... Line 2...
2
Created on 14-Sept-2011
2
Created on 14-Sept-2011
3
 
3
 
4
@author: Varun Gupta
4
@author: Varun Gupta
5
 
5
 
6
Curve 8520    Rs.250 off
6
Curve 8520    Rs.250 off
7
Blackberry Bold 4 9900 Rs.2000 off
-
 
8
Curve 3G 9300    Rs.250 off
7
Curve 3G 9300    Rs.250 off
9
Torch 2 9810    Rs.600 off
8
Torch 2 9810    Rs.600 off
10
Bold 3 9780    Rs.1650 off
-
 
11
Playbook 16 GB    Rs.1390 off
9
Playbook 16 GB    Rs.1390 off
12
Playbook 32 GB    Rs.1690 off
10
Playbook 32 GB    Rs.1690 off
13
'''
11
'''
14
from shop2020.thriftpy.model.v1.user.ttypes import PromotionException
12
from shop2020.thriftpy.model.v1.user.ttypes import PromotionException
15
from shop2020.model.v1.user.impl.PromotionRuleDataUtilities import get_coupon_usage_count
13
from shop2020.model.v1.user.impl.PromotionRuleDataUtilities import get_coupon_usage_count
Line 37... Line 35...
37
                has_qualified_model = True
35
                has_qualified_model = True
38
                
36
                
39
                if line.actualPrice:
37
                if line.actualPrice:
40
                    line.discountedPrice = round(line.actualPrice  - 250)
38
                    line.discountedPrice = round(line.actualPrice  - 250)
41
            
39
            
42
#            elif line.itemId == 1591:  #Blackberry 9900 Bold 4
-
 
43
#                
-
 
44
#                has_qualified_model = True
-
 
45
#                
-
 
46
#                if line.actualPrice:
-
 
47
#                    line.discountedPrice = line.actualPrice - 2000
-
 
48
            
-
 
49
            elif line.itemId in (10, 1560, 1561):  #Curve 3G 9300
40
            elif line.itemId in (10, 1560, 1561):  #Curve 3G 9300
50
                
41
                
51
                has_qualified_model = True
42
                has_qualified_model = True
52
                
43
                
53
                if line.actualPrice:
44
                if line.actualPrice:
Line 57... Line 48...
57
                
48
                
58
                has_qualified_model = True
49
                has_qualified_model = True
59
                
50
                
60
                if line.actualPrice:
51
                if line.actualPrice:
61
                    line.discountedPrice = line.actualPrice - 600
52
                    line.discountedPrice = line.actualPrice - 600
62
            
-
 
63
#            elif line.itemId in (1, 2):  #Bold 3 9780
-
 
64
#                
-
 
65
#                has_qualified_model = True
-
 
66
#                
-
 
67
#                if line.actualPrice:
-
 
68
#                    line.discountedPrice = line.actualPrice - 1650
-
 
69
#            
53
             
70
            elif line.itemId == 1543:  #Playbook 16 GB
54
            elif line.itemId == 1543:  #Playbook 16 GB
71
                
55
                
72
                has_qualified_model = True
56
                has_qualified_model = True
73
                
57
                
74
                if line.actualPrice:
58
                if line.actualPrice: