Subversion Repositories SmartDukaan

Rev

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

Rev 11819 Rev 11820
Line 61... Line 61...
61
            isGiftVoucher = promotion_type == 1
61
            isGiftVoucher = promotion_type == 1
62
        finally:
62
        finally:
63
            PromotionDataAccessors.close_session()
63
            PromotionDataAccessors.close_session()
64
            return isGiftVoucher
64
            return isGiftVoucher
65
    
65
    
66
    def isCodApplicable(self, coupon_code):
66
    def isCodApplicable(self, cart):
67
        isCod = True
67
        isCod = True
-
 
68
        coupon_code = cart.coupon_code
68
        try:
69
        try:
69
            coupon = get_coupon(coupon_code)
70
            coupon = get_coupon(coupon_code)
70
            if coupon.arguments:
71
            if coupon.arguments:
71
                args = eval(coupon.arguments)
72
                args = eval(coupon.arguments)
72
                if 'isCod' in args:
73
                if 'isCod' in args: