Subversion Repositories SmartDukaan

Rev

Rev 16264 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16264 Rev 21619
Line 90... Line 90...
90
  print '   getAllUnCompletedStockShipments(string source)'
90
  print '   getAllUnCompletedStockShipments(string source)'
91
  print '  RemovalStockShipmentReference getRemovalStockShipmentReferenceById(i64 id)'
91
  print '  RemovalStockShipmentReference getRemovalStockShipmentReferenceById(i64 id)'
92
  print '  i64 createRemovalStockShipmentReference(RemovalStockShipmentReference removalStockShipmentReference)'
92
  print '  i64 createRemovalStockShipmentReference(RemovalStockShipmentReference removalStockShipmentReference)'
93
  print '  void updateShipmentReferenceTransferLot(i64 transferLotId, i64 shipmentReferenceId)'
93
  print '  void updateShipmentReferenceTransferLot(i64 transferLotId, i64 shipmentReferenceId)'
94
  print '   fetchScansPerTransferInvoiceNumber(i64 date)'
94
  print '   fetchScansPerTransferInvoiceNumber(i64 date)'
-
 
95
  print '   getInventoryItems( serialNumbers)'
-
 
96
  print '   getInventoryItemsBySerailNumbers( serialNumbers)'
-
 
97
  print '  void scanPurchaseBulk( inventoryItems)'
95
  print ''
98
  print ''
96
  sys.exit(0)
99
  sys.exit(0)
97
 
100
 
98
pp = pprint.PrettyPrinter(indent = 2)
101
pp = pprint.PrettyPrinter(indent = 2)
99
host = 'localhost'
102
host = 'localhost'
Line 566... Line 569...
566
  if len(args) != 1:
569
  if len(args) != 1:
567
    print 'fetchScansPerTransferInvoiceNumber requires 1 args'
570
    print 'fetchScansPerTransferInvoiceNumber requires 1 args'
568
    sys.exit(1)
571
    sys.exit(1)
569
  pp.pprint(client.fetchScansPerTransferInvoiceNumber(eval(args[0]),))
572
  pp.pprint(client.fetchScansPerTransferInvoiceNumber(eval(args[0]),))
570
 
573
 
-
 
574
elif cmd == 'getInventoryItems':
-
 
575
  if len(args) != 1:
-
 
576
    print 'getInventoryItems requires 1 args'
-
 
577
    sys.exit(1)
-
 
578
  pp.pprint(client.getInventoryItems(eval(args[0]),))
-
 
579
 
-
 
580
elif cmd == 'getInventoryItemsBySerailNumbers':
-
 
581
  if len(args) != 1:
-
 
582
    print 'getInventoryItemsBySerailNumbers requires 1 args'
-
 
583
    sys.exit(1)
-
 
584
  pp.pprint(client.getInventoryItemsBySerailNumbers(eval(args[0]),))
-
 
585
 
-
 
586
elif cmd == 'scanPurchaseBulk':
-
 
587
  if len(args) != 1:
-
 
588
    print 'scanPurchaseBulk requires 1 args'
-
 
589
    sys.exit(1)
-
 
590
  pp.pprint(client.scanPurchaseBulk(eval(args[0]),))
-
 
591
 
571
else:
592
else:
572
  print 'Unrecognized method %s' % cmd
593
  print 'Unrecognized method %s' % cmd
573
  sys.exit(1)
594
  sys.exit(1)
574
 
595
 
575
transport.close()
596
transport.close()