Subversion Repositories SmartDukaan

Rev

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

Rev 11751 Rev 12531
Line 81... Line 81...
81
  print '   getScansforPurchase(i64 purchaseId, ScanType scanType)'
81
  print '   getScansforPurchase(i64 purchaseId, ScanType scanType)'
82
  print '  i64 getCurrentBadQuantityForItem(i64 itemId, i64 currentWarehouseId, i64 physicalWarehouseId)'
82
  print '  i64 getCurrentBadQuantityForItem(i64 itemId, i64 currentWarehouseId, i64 physicalWarehouseId)'
83
  print '  i64 scanForBadPurchaseReturn( saleReturnItems, i64 vendorId, i64 billingWarehouseId)'
83
  print '  i64 scanForBadPurchaseReturn( saleReturnItems, i64 vendorId, i64 billingWarehouseId)'
84
  print '   getItemsInPurchaseReturn(i64 purchaseReturnId, ScanType type)'
84
  print '   getItemsInPurchaseReturn(i64 purchaseReturnId, ScanType type)'
85
  print '   getScansForInventoryItem(i64 inventoryItemId, ScanType type)'
85
  print '   getScansForInventoryItem(i64 inventoryItemId, ScanType type)'
-
 
86
  print '   checkGrnImeiStatus( imeiNos)'
86
  print ''
87
  print ''
87
  sys.exit(0)
88
  sys.exit(0)
88
 
89
 
89
pp = pprint.PrettyPrinter(indent = 2)
90
pp = pprint.PrettyPrinter(indent = 2)
90
host = 'localhost'
91
host = 'localhost'
Line 503... Line 504...
503
  if len(args) != 2:
504
  if len(args) != 2:
504
    print 'getScansForInventoryItem requires 2 args'
505
    print 'getScansForInventoryItem requires 2 args'
505
    sys.exit(1)
506
    sys.exit(1)
506
  pp.pprint(client.getScansForInventoryItem(eval(args[0]),eval(args[1]),))
507
  pp.pprint(client.getScansForInventoryItem(eval(args[0]),eval(args[1]),))
507
 
508
 
-
 
509
elif cmd == 'checkGrnImeiStatus':
-
 
510
  if len(args) != 1:
-
 
511
    print 'checkGrnImeiStatus requires 1 args'
-
 
512
    sys.exit(1)
-
 
513
  pp.pprint(client.checkGrnImeiStatus(eval(args[0]),))
-
 
514
 
508
else:
515
else:
509
  print 'Unrecognized method %s' % cmd
516
  print 'Unrecognized method %s' % cmd
510
  sys.exit(1)
517
  sys.exit(1)
511
 
518
 
512
transport.close()
519
transport.close()