Subversion Repositories SmartDukaan

Rev

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

Rev 10864 Rev 11751
Line 48... Line 48...
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)'
51
  print '  void changeWarehouseForPO(i64 id, i64 warehouseId)'
52
  print '  void changePOStatus(i64 id, POStatus poStatus)'
52
  print '  void changePOStatus(i64 id, POStatus poStatus)'
-
 
53
  print '  PurchaseReturn getPurchaseReturn(i64 id)'
53
  print ''
54
  print ''
54
  sys.exit(0)
55
  sys.exit(0)
55
 
56
 
56
pp = pprint.PrettyPrinter(indent = 2)
57
pp = pprint.PrettyPrinter(indent = 2)
57
host = 'localhost'
58
host = 'localhost'
Line 272... Line 273...
272
  if len(args) != 2:
273
  if len(args) != 2:
273
    print 'changePOStatus requires 2 args'
274
    print 'changePOStatus requires 2 args'
274
    sys.exit(1)
275
    sys.exit(1)
275
  pp.pprint(client.changePOStatus(eval(args[0]),eval(args[1]),))
276
  pp.pprint(client.changePOStatus(eval(args[0]),eval(args[1]),))
276
 
277
 
-
 
278
elif cmd == 'getPurchaseReturn':
-
 
279
  if len(args) != 1:
-
 
280
    print 'getPurchaseReturn requires 1 args'
-
 
281
    sys.exit(1)
-
 
282
  pp.pprint(client.getPurchaseReturn(eval(args[0]),))
-
 
283
 
277
else:
284
else:
278
  print 'Unrecognized method %s' % cmd
285
  print 'Unrecognized method %s' % cmd
279
  sys.exit(1)
286
  sys.exit(1)
280
 
287
 
281
transport.close()
288
transport.close()