Subversion Repositories SmartDukaan

Rev

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

Rev 4291 Rev 4327
Line 27... Line 27...
27
    
27
    
28
    if email == 'raghvendra.saboo@gmail.com':
28
    if email == 'raghvendra.saboo@gmail.com':
29
        discount_value = 200
29
        discount_value = 200
30
    elif email == 'nishantgandhi@yahoo.com':
30
    elif email == 'nishantgandhi@yahoo.com':
31
        discount_value = 500
31
        discount_value = 500
-
 
32
    elif email == 'akshay.karandikar@rocketmail.com':
-
 
33
        discount_value = 250
-
 
34
    elif email == 'mis@birla.ac.in':
-
 
35
        discount_value = 1889
32
    else:
36
    else:
33
        raise PromotionException(111, 'You are not allowed to use this coupon')
37
        raise PromotionException(111, 'You are not allowed to use this coupon')
34
    
38
    
35
    #Allow only first 1000 users to use the coupon
39
    #Allow only first 1000 users to use the coupon
36
    count_coupon_usage = get_coupon_usage_count_by_user(coupon_code, cart.userId)
40
    count_coupon_usage = get_coupon_usage_count_by_user(coupon_code, cart.userId)