Subversion Repositories SmartDukaan

Rev

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

Rev 11821 Rev 11900
Line 63... Line 63...
63
            PromotionDataAccessors.close_session()
63
            PromotionDataAccessors.close_session()
64
            return isGiftVoucher
64
            return isGiftVoucher
65
    
65
    
66
    def isCodApplicable(self, cart):
66
    def isCodApplicable(self, cart):
67
        isCod = True
67
        isCod = True
68
        coupon_code = cart.coupon_code
68
        coupon_code = cart.couponCode
69
        try:
69
        try:
70
            coupon = get_coupon(coupon_code)
70
            coupon = get_coupon(coupon_code)
71
            if coupon.arguments:
71
            if coupon.arguments:
72
                args = eval(coupon.arguments)
72
                args = eval(coupon.arguments)
73
                if 'isCod' in args:
73
                if 'isCod' in args: