Subversion Repositories SmartDukaan

Rev

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

Rev 8786 Rev 8787
Line 4308... Line 4308...
4308
            pc = PromotionClient().get_client()
4308
            pc = PromotionClient().get_client()
4309
            enddate = datetime.datetime.now() + datetime.timedelta(days=45)
4309
            enddate = datetime.datetime.now() + datetime.timedelta(days=45)
4310
            while totalAmount > 0:
4310
            while totalAmount > 0:
4311
                gvAmount = totalAmount if totalAmount <= 250 else 250
4311
                gvAmount = totalAmount if totalAmount <= 250 else 250
4312
                totalAmount = totalAmount - gvAmount
4312
                totalAmount = totalAmount - gvAmount
4313
                gv = pc.createCoupon(26, to_java_date(enddate), recharge_order.userEmailId, gvAmount, False, 1, None)
4313
                gv = pc.createCoupon(26,CouponCategory.CUSTOMER_SATISFACTION , to_java_date(enddate), recharge_order.userEmailId, gvAmount, False, 1, None)
4314
                gvs[gv] = gvAmount  
4314
                gvs[gv] = gvAmount  
4315
        except:
4315
        except:
4316
            print "Not able to create gift voucher for user " + recharge_order.userEmailId
4316
            print "Not able to create gift voucher for user " + recharge_order.userEmailId
4317
    return gvs     
4317
    return gvs     
4318
 
4318