Subversion Repositories SmartDukaan

Rev

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

Rev 14413 Rev 14449
Line 241... Line 241...
241
        tprint("Could not batch refund")
241
        tprint("Could not batch refund")
242
        return False
242
        return False
243
    
243
    
244
def main():
244
def main():
245
    store = getStore(4)
245
    store = getStore(4)
246
    print store.getCashbackAmount('1010989', 500)
246
    #print store.getCashbackAmount('1010989', 500)
247
    #data = urllib.urlencode({'orderId':6000, 'amount':200})
247
    #data = urllib.urlencode({'orderId':6000, 'amount':200})
248
    #request = urllib2.Request(WALLET_CREDIT_URL % (483649), headers=headers)
248
    #request = urllib2.Request(WALLET_CREDIT_URL % (483649), headers=headers)
249
    #response = urllib2.urlopen(request, data)
249
    #response = urllib2.urlopen(request, data)
250
    #print response.read()
250
    #print response.read()
251
    #settlePayBack()
251
    #settlePayBack()
-
 
252
    for store in client.Dtr.merchantOrder.find({"storeId":3}):
-
 
253
        client.Dtr.merchantOrder.update({"orderId":store["orderId"]},{'$set':{'placedOn':store['subOrders'][0]['placedOn']}})
252
    
254
    
253
        
255
        
254
 
256
 
255
 
257
 
256
###
258
###