Subversion Repositories SmartDukaan

Rev

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

Rev 5527 Rev 5553
Line 71... Line 71...
71
  print '  void markOrdersAsFirstDeliveryAttempted(i64 providerId,  first_atdl_orders)'
71
  print '  void markOrdersAsFirstDeliveryAttempted(i64 providerId,  first_atdl_orders)'
72
  print '   getUndeliveredOrders(i64 providerId, i64 warehouseId)'
72
  print '   getUndeliveredOrders(i64 providerId, i64 warehouseId)'
73
  print '   getUndeliveredOrdersExpectedDeliveryDateNotMet()'
73
  print '   getUndeliveredOrdersExpectedDeliveryDateNotMet()'
74
  print '  bool toggleDOAFlag(i64 orderId)'
74
  print '  bool toggleDOAFlag(i64 orderId)'
75
  print '  void markOrderAsDelivered(i64 orderId, i64 deliveryTimestamp, string receiver)'
75
  print '  void markOrderAsDelivered(i64 orderId, i64 deliveryTimestamp, string receiver)'
-
 
76
  print '  void markOrderAsReceivedAtStore(i64 orderId, i64 deliveryTimestamp)'
76
  print '  bool markOrderDoaRequestReceived(i64 orderId)'
77
  print '  bool markOrderDoaRequestReceived(i64 orderId)'
77
  print '  bool markOrderDoaRequestAuthorized(i64 orderId, bool isAuthorized)'
78
  print '  bool markOrderDoaRequestAuthorized(i64 orderId, bool isAuthorized)'
78
  print '  bool markOrderReturnRequestReceived(i64 orderId)'
79
  print '  bool markOrderReturnRequestReceived(i64 orderId)'
79
  print '  bool markOrderReturnRequestAuthorized(i64 orderId, bool isAuthorized)'
80
  print '  bool markOrderReturnRequestAuthorized(i64 orderId, bool isAuthorized)'
80
  print '  bool requestPickupNumber(i64 orderId, i64 providerId)'
81
  print '  bool requestPickupNumber(i64 orderId, i64 providerId)'
Line 136... Line 137...
136
  print '  void updateOrderOnlyAsPaidToVendor(i64 orderId)'
137
  print '  void updateOrderOnlyAsPaidToVendor(i64 orderId)'
137
  print '   getRefundedOrdersMarkedPaid()'
138
  print '   getRefundedOrdersMarkedPaid()'
138
  print '   getAllVerificationAgents(i64 minOrderId, i64 maxOrderId)'
139
  print '   getAllVerificationAgents(i64 minOrderId, i64 maxOrderId)'
139
  print '   getAllAttributesForOrderId(i64 orderId)'
140
  print '   getAllAttributesForOrderId(i64 orderId)'
140
  print '  void setOrderAttributeForTransaction(i64 transactionId, Attribute attribute)'
141
  print '  void setOrderAttributeForTransaction(i64 transactionId, Attribute attribute)'
-
 
142
  print '   getReceivePendingOrders(i64 storeId)'
-
 
143
  print '   getReceivedAtStoreOrders(i64 storeId)'
141
  print ''
144
  print ''
142
  sys.exit(0)
145
  sys.exit(0)
143
 
146
 
144
pp = pprint.PrettyPrinter(indent = 2)
147
pp = pprint.PrettyPrinter(indent = 2)
145
host = 'localhost'
148
host = 'localhost'
Line 498... Line 501...
498
  if len(args) != 3:
501
  if len(args) != 3:
499
    print 'markOrderAsDelivered requires 3 args'
502
    print 'markOrderAsDelivered requires 3 args'
500
    sys.exit(1)
503
    sys.exit(1)
501
  pp.pprint(client.markOrderAsDelivered(eval(args[0]),eval(args[1]),args[2],))
504
  pp.pprint(client.markOrderAsDelivered(eval(args[0]),eval(args[1]),args[2],))
502
 
505
 
-
 
506
elif cmd == 'markOrderAsReceivedAtStore':
-
 
507
  if len(args) != 2:
-
 
508
    print 'markOrderAsReceivedAtStore requires 2 args'
-
 
509
    sys.exit(1)
-
 
510
  pp.pprint(client.markOrderAsReceivedAtStore(eval(args[0]),eval(args[1]),))
-
 
511
 
503
elif cmd == 'markOrderDoaRequestReceived':
512
elif cmd == 'markOrderDoaRequestReceived':
504
  if len(args) != 1:
513
  if len(args) != 1:
505
    print 'markOrderDoaRequestReceived requires 1 args'
514
    print 'markOrderDoaRequestReceived requires 1 args'
506
    sys.exit(1)
515
    sys.exit(1)
507
  pp.pprint(client.markOrderDoaRequestReceived(eval(args[0]),))
516
  pp.pprint(client.markOrderDoaRequestReceived(eval(args[0]),))
Line 888... Line 897...
888
  if len(args) != 2:
897
  if len(args) != 2:
889
    print 'setOrderAttributeForTransaction requires 2 args'
898
    print 'setOrderAttributeForTransaction requires 2 args'
890
    sys.exit(1)
899
    sys.exit(1)
891
  pp.pprint(client.setOrderAttributeForTransaction(eval(args[0]),eval(args[1]),))
900
  pp.pprint(client.setOrderAttributeForTransaction(eval(args[0]),eval(args[1]),))
892
 
901
 
-
 
902
elif cmd == 'getReceivePendingOrders':
-
 
903
  if len(args) != 1:
-
 
904
    print 'getReceivePendingOrders requires 1 args'
-
 
905
    sys.exit(1)
-
 
906
  pp.pprint(client.getReceivePendingOrders(eval(args[0]),))
-
 
907
 
-
 
908
elif cmd == 'getReceivedAtStoreOrders':
-
 
909
  if len(args) != 1:
-
 
910
    print 'getReceivedAtStoreOrders requires 1 args'
-
 
911
    sys.exit(1)
-
 
912
  pp.pprint(client.getReceivedAtStoreOrders(eval(args[0]),))
-
 
913
 
893
else:
914
else:
894
  print 'Unrecognized method %s' % cmd
915
  print 'Unrecognized method %s' % cmd
895
  sys.exit(1)
916
  sys.exit(1)
896
 
917
 
897
transport.close()
918
transport.close()