Subversion Repositories SmartDukaan

Rev

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

Rev 7987 Rev 8189
Line 170... Line 170...
170
        try:
170
        try:
171
            user_client.deleteDiscountsFromCart(cart_id)
171
            user_client.deleteDiscountsFromCart(cart_id)
172
            imported_coupon_module = __import__("shop2020.model.v1.user.promotionrules", globals(), locals(), [coupon_module])
172
            imported_coupon_module = __import__("shop2020.model.v1.user.promotionrules", globals(), locals(), [coupon_module])
173
            rule = eval("imported_coupon_module." + coupon_module)
173
            rule = eval("imported_coupon_module." + coupon_module)
174
            
174
            
-
 
175
            if coupon.promotion.id == 37:
-
 
176
                count = PromotionTracker.get_by(promotion_id = 37).count()
-
 
177
                if count == 2013:
-
 
178
                    raise PromotionException(112, 'This promotion is over.')
-
 
179
            
175
            args = eval(coupon.arguments) if coupon.arguments is not None else {}
180
            args = eval(coupon.arguments) if coupon.arguments is not None else {}
176
            
181
            
177
            '''
182
            '''
178
            Processing in case of EMI
183
            Processing in case of EMI
179
            '''
184
            '''