Subversion Repositories SmartDukaan

Rev

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

Rev 4008 Rev 4018
Line 76... Line 76...
76
  print '  Order shiftToWarehouse(i64 orderId, i64 warehouseId)'
76
  print '  Order shiftToWarehouse(i64 orderId, i64 warehouseId)'
77
  print '  bool addDelayReason(i64 orderId, DelayReason delayReason, i64 furtherDelay)'
77
  print '  bool addDelayReason(i64 orderId, DelayReason delayReason, i64 furtherDelay)'
78
  print '   reconcileCodCollection( collectedAmountMap, string xferBy, string xferTxnId, i64 xferDate)'
78
  print '   reconcileCodCollection( collectedAmountMap, string xferBy, string xferTxnId, i64 xferDate)'
79
  print '   getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category)'
79
  print '   getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category)'
80
  print '  void markTransactionAsProcessed(i64 transactionId, ExtraTransactionProcessingType category)'
80
  print '  void markTransactionAsProcessed(i64 transactionId, ExtraTransactionProcessingType category)'
-
 
81
  print '   getItemWiseRiskyOrdersCount()'
81
  print ''
82
  print ''
82
  sys.exit(0)
83
  sys.exit(0)
83
 
84
 
84
pp = pprint.PrettyPrinter(indent = 2)
85
pp = pprint.PrettyPrinter(indent = 2)
85
host = 'localhost'
86
host = 'localhost'
Line 468... Line 469...
468
  if len(args) != 2:
469
  if len(args) != 2:
469
    print 'markTransactionAsProcessed requires 2 args'
470
    print 'markTransactionAsProcessed requires 2 args'
470
    sys.exit(1)
471
    sys.exit(1)
471
  pp.pprint(client.markTransactionAsProcessed(eval(args[0]),eval(args[1]),))
472
  pp.pprint(client.markTransactionAsProcessed(eval(args[0]),eval(args[1]),))
472
 
473
 
-
 
474
elif cmd == 'getItemWiseRiskyOrdersCount':
-
 
475
  if len(args) != 0:
-
 
476
    print 'getItemWiseRiskyOrdersCount requires 0 args'
-
 
477
    sys.exit(1)
-
 
478
  pp.pprint(client.getItemWiseRiskyOrdersCount())
-
 
479
 
473
else:
480
else:
474
  print 'Unrecognized method %s' % cmd
481
  print 'Unrecognized method %s' % cmd
475
  sys.exit(1)
482
  sys.exit(1)
476
 
483
 
477
transport.close()
484
transport.close()