Subversion Repositories SmartDukaan

Rev

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

Rev 4910 Rev 4999
Line 39... Line 39...
39
  print '   getOrdersForTransaction(i64 transactionId, i64 customerId)'
39
  print '   getOrdersForTransaction(i64 transactionId, i64 customerId)'
40
  print '   getOrdersForCustomer(i64 customerId, i64 from_date, i64 to_date,  statuses)'
40
  print '   getOrdersForCustomer(i64 customerId, i64 from_date, i64 to_date,  statuses)'
41
  print '  i64 createOrder(Order order)'
41
  print '  i64 createOrder(Order order)'
42
  print '  Order getOrder(i64 id)'
42
  print '  Order getOrder(i64 id)'
43
  print '   getLineItemsForOrder(i64 orderId)'
43
  print '   getLineItemsForOrder(i64 orderId)'
-
 
44
  print '   getOrderList( order_ids)'
44
  print '  Order getOrderForCustomer(i64 orderId, i64 customerId)'
45
  print '  Order getOrderForCustomer(i64 orderId, i64 customerId)'
45
  print '   getAlerts(i64 type, i64 warehouseId, i64 status, i64 timestamp)'
46
  print '   getAlerts(i64 type, i64 warehouseId, i64 status, i64 timestamp)'
46
  print '  void addAlert(i64 type, i64 warehouseId, string description)'
47
  print '  void addAlert(i64 type, i64 warehouseId, string description)'
47
  print '  void markAlertsAsSeen(i64 warehouseId)'
48
  print '  void markAlertsAsSeen(i64 warehouseId)'
48
  print '  i64 getValidOrderCount()'
49
  print '  i64 getValidOrderCount()'
Line 294... Line 295...
294
  if len(args) != 1:
295
  if len(args) != 1:
295
    print 'getLineItemsForOrder requires 1 args'
296
    print 'getLineItemsForOrder requires 1 args'
296
    sys.exit(1)
297
    sys.exit(1)
297
  pp.pprint(client.getLineItemsForOrder(eval(args[0]),))
298
  pp.pprint(client.getLineItemsForOrder(eval(args[0]),))
298
 
299
 
-
 
300
elif cmd == 'getOrderList':
-
 
301
  if len(args) != 1:
-
 
302
    print 'getOrderList requires 1 args'
-
 
303
    sys.exit(1)
-
 
304
  pp.pprint(client.getOrderList(eval(args[0]),))
-
 
305
 
299
elif cmd == 'getOrderForCustomer':
306
elif cmd == 'getOrderForCustomer':
300
  if len(args) != 2:
307
  if len(args) != 2:
301
    print 'getOrderForCustomer requires 2 args'
308
    print 'getOrderForCustomer requires 2 args'
302
    sys.exit(1)
309
    sys.exit(1)
303
  pp.pprint(client.getOrderForCustomer(eval(args[0]),eval(args[1]),))
310
  pp.pprint(client.getOrderForCustomer(eval(args[0]),eval(args[1]),))