Subversion Repositories SmartDukaan

Rev

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

Rev 7672 Rev 10864
Line 46... Line 46...
46
  print '   getInvoice(string invoiceNumber, i64 supplierId)'
46
  print '   getInvoice(string invoiceNumber, i64 supplierId)'
47
  print '  i64 createPurchaseForOurExtBilling(string invoiceNumber, double unitPrice, double nlc, i64 itemId)'
47
  print '  i64 createPurchaseForOurExtBilling(string invoiceNumber, double unitPrice, double nlc, i64 itemId)'
48
  print '  void fulfillPOForExtBilling(i64 itemId, i64 quantity)'
48
  print '  void fulfillPOForExtBilling(i64 itemId, i64 quantity)'
49
  print '  void closePO(i64 poId)'
49
  print '  void closePO(i64 poId)'
50
  print '  bool isInvoiceReceived(string invoiceNumber, i64 supplierId)'
50
  print '  bool isInvoiceReceived(string invoiceNumber, i64 supplierId)'
-
 
51
  print '  void changeWarehouseForPO(i64 id, i64 warehouseId)'
-
 
52
  print '  void changePOStatus(i64 id, POStatus poStatus)'
51
  print ''
53
  print ''
52
  sys.exit(0)
54
  sys.exit(0)
53
 
55
 
54
pp = pprint.PrettyPrinter(indent = 2)
56
pp = pprint.PrettyPrinter(indent = 2)
55
host = 'localhost'
57
host = 'localhost'
Line 258... Line 260...
258
  if len(args) != 2:
260
  if len(args) != 2:
259
    print 'isInvoiceReceived requires 2 args'
261
    print 'isInvoiceReceived requires 2 args'
260
    sys.exit(1)
262
    sys.exit(1)
261
  pp.pprint(client.isInvoiceReceived(args[0],eval(args[1]),))
263
  pp.pprint(client.isInvoiceReceived(args[0],eval(args[1]),))
262
 
264
 
-
 
265
elif cmd == 'changeWarehouseForPO':
-
 
266
  if len(args) != 2:
-
 
267
    print 'changeWarehouseForPO requires 2 args'
-
 
268
    sys.exit(1)
-
 
269
  pp.pprint(client.changeWarehouseForPO(eval(args[0]),eval(args[1]),))
-
 
270
 
-
 
271
elif cmd == 'changePOStatus':
-
 
272
  if len(args) != 2:
-
 
273
    print 'changePOStatus requires 2 args'
-
 
274
    sys.exit(1)
-
 
275
  pp.pprint(client.changePOStatus(eval(args[0]),eval(args[1]),))
-
 
276
 
263
else:
277
else:
264
  print 'Unrecognized method %s' % cmd
278
  print 'Unrecognized method %s' % cmd
265
  sys.exit(1)
279
  sys.exit(1)
266
 
280
 
267
transport.close()
281
transport.close()