Subversion Repositories SmartDukaan

Rev

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

Rev 3553 Rev 3956
Line 73... Line 73...
73
  print '  i64 createPurchaseOrder(i64 warehouseId)'
73
  print '  i64 createPurchaseOrder(i64 warehouseId)'
74
  print '  Order updateWeight(i64 orderId, double weight)'
74
  print '  Order updateWeight(i64 orderId, double weight)'
75
  print '  Order changeItem(i64 orderId, i64 itemId)'
75
  print '  Order changeItem(i64 orderId, i64 itemId)'
76
  print '  Order shiftToWarehouse(i64 orderId, i64 warehouseId)'
76
  print '  Order shiftToWarehouse(i64 orderId, i64 warehouseId)'
77
  print '  bool addDelayReason(i64 orderId, DelayReason delayReason)'
77
  print '  bool addDelayReason(i64 orderId, DelayReason delayReason)'
-
 
78
  print '   reconcileCodCollection( collectedAmountMap, string xferBy, string xferTxnId, i64 xferDate)'
78
  print ''
79
  print ''
79
  sys.exit(0)
80
  sys.exit(0)
80
 
81
 
81
pp = pprint.PrettyPrinter(indent = 2)
82
pp = pprint.PrettyPrinter(indent = 2)
82
host = 'localhost'
83
host = 'localhost'
Line 447... Line 448...
447
  if len(args) != 2:
448
  if len(args) != 2:
448
    print 'addDelayReason requires 2 args'
449
    print 'addDelayReason requires 2 args'
449
    sys.exit(1)
450
    sys.exit(1)
450
  pp.pprint(client.addDelayReason(eval(args[0]),eval(args[1]),))
451
  pp.pprint(client.addDelayReason(eval(args[0]),eval(args[1]),))
451
 
452
 
-
 
453
elif cmd == 'reconcileCodCollection':
-
 
454
  if len(args) != 4:
-
 
455
    print 'reconcileCodCollection requires 4 args'
-
 
456
    sys.exit(1)
-
 
457
  pp.pprint(client.reconcileCodCollection(eval(args[0]),args[1],args[2],eval(args[3]),))
-
 
458
 
452
else:
459
else:
453
  print 'Unrecognized method %s' % cmd
460
  print 'Unrecognized method %s' % cmd
454
  sys.exit(1)
461
  sys.exit(1)
455
 
462
 
456
transport.close()
463
transport.close()