Subversion Repositories SmartDukaan

Rev

Rev 23686 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23686 Rev 23839
Line 3327... Line 3327...
3327
            
3327
            
3328
        
3328
        
3329
def main():
3329
def main():
3330
    #OrderServiceHandler().creditBatch(2, '{"483649":100.0, "8021773":23, "123213":10}')
3330
    #OrderServiceHandler().creditBatch(2, '{"483649":100.0, "8021773":23, "123213":10}')
3331
    #OrderServiceHandler('transaction', '192.168.190.112').refundTransaction(, "Deenanath", "Low Inventory Cancellation")
3331
    #OrderServiceHandler('transaction', '192.168.190.112').refundTransaction(, "Deenanath", "Low Inventory Cancellation")
3332
    OrderServiceHandler('transaction', '192.168.190.112').refundTransaction(1040179, "Deenanath", "Low Inventory Cancellation")
3332
    osh = OrderServiceHandler('transaction', '192.168.190.112')
-
 
3333
    for o in osh.getTransaction(1040376).orders:
-
 
3334
        try:
-
 
3335
            osh.shiftToWarehouse(o.id, 7681)
-
 
3336
            if osh.getOrder(o.id).warehouse_id==0:
-
 
3337
                print "OrderId ", o.id, "landed to zero" 
-
 
3338
                break
-
 
3339
        except:
-
 
3340
            traceback.print_exc()
3333
            
3341
            
3334
if __name__ == '__main__':
3342
if __name__ == '__main__':
3335
    main()
3343
    main()
3336
3344