Subversion Repositories SmartDukaan

Rev

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

Rev 10864 Rev 10886
Line 80... Line 80...
80
  print '   getAmazonTransferredSkuDetails( itemIds)'
80
  print '   getAmazonTransferredSkuDetails( itemIds)'
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)'
84
  print '   getItemsInPurchaseReturn(i64 purchaseReturnId)'
-
 
85
  print '   getScansForInventoryItem(i64 inventoryItemId, ScanType type)'
85
  print ''
86
  print ''
86
  sys.exit(0)
87
  sys.exit(0)
87
 
88
 
88
pp = pprint.PrettyPrinter(indent = 2)
89
pp = pprint.PrettyPrinter(indent = 2)
89
host = 'localhost'
90
host = 'localhost'
Line 496... Line 497...
496
  if len(args) != 1:
497
  if len(args) != 1:
497
    print 'getItemsInPurchaseReturn requires 1 args'
498
    print 'getItemsInPurchaseReturn requires 1 args'
498
    sys.exit(1)
499
    sys.exit(1)
499
  pp.pprint(client.getItemsInPurchaseReturn(eval(args[0]),))
500
  pp.pprint(client.getItemsInPurchaseReturn(eval(args[0]),))
500
 
501
 
-
 
502
elif cmd == 'getScansForInventoryItem':
-
 
503
  if len(args) != 2:
-
 
504
    print 'getScansForInventoryItem requires 2 args'
-
 
505
    sys.exit(1)
-
 
506
  pp.pprint(client.getScansForInventoryItem(eval(args[0]),eval(args[1]),))
-
 
507
 
501
else:
508
else:
502
  print 'Unrecognized method %s' % cmd
509
  print 'Unrecognized method %s' % cmd
503
  sys.exit(1)
510
  sys.exit(1)
504
 
511
 
505
transport.close()
512
transport.close()