Subversion Repositories SmartDukaan

Rev

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

Rev 3383 Rev 3424
Line 27... Line 27...
27
  print '  Supplier getSupplier(i64 id)'
27
  print '  Supplier getSupplier(i64 id)'
28
  print '  i64 startPurchase(i64 purchaseOrderId, string invoiceNumber, double freightCharges)'
28
  print '  i64 startPurchase(i64 purchaseOrderId, string invoiceNumber, double freightCharges)'
29
  print '  i64 closePurchase(i64 purchaseId)'
29
  print '  i64 closePurchase(i64 purchaseId)'
30
  print '   getAllPurchases(i64 purchaseOrderId, bool open)'
30
  print '   getAllPurchases(i64 purchaseOrderId, bool open)'
31
  print '  void scanIn(i64 purchaseId, string itemNumber, string imeiNumber, ScanType type)'
31
  print '  void scanIn(i64 purchaseId, string itemNumber, string imeiNumber, ScanType type)'
32
  print '  void scanOut(i64 itemNumber, i64 imeiNumber, ScanType type)'
32
  print '  void scanOut(string itemNumber, string imeiNumber, ScanType type)'
33
  print ''
33
  print ''
34
  sys.exit(0)
34
  sys.exit(0)
35
 
35
 
36
pp = pprint.PrettyPrinter(indent = 2)
36
pp = pprint.PrettyPrinter(indent = 2)
37
host = 'localhost'
37
host = 'localhost'
Line 128... Line 128...
128
 
128
 
129
elif cmd == 'scanOut':
129
elif cmd == 'scanOut':
130
  if len(args) != 3:
130
  if len(args) != 3:
131
    print 'scanOut requires 3 args'
131
    print 'scanOut requires 3 args'
132
    sys.exit(1)
132
    sys.exit(1)
133
  pp.pprint(client.scanOut(eval(args[0]),eval(args[1]),eval(args[2]),))
133
  pp.pprint(client.scanOut(args[0],args[1],eval(args[2]),))
134
 
134
 
135
transport.close()
135
transport.close()