| Line 22... |
Line 22... |
| 22 |
print ''
|
22 |
print ''
|
| 23 |
print 'Functions:'
|
23 |
print 'Functions:'
|
| 24 |
print ' InventoryItem getInventoryItem(string serialNumber)'
|
24 |
print ' InventoryItem getInventoryItem(string serialNumber)'
|
| 25 |
print ' InventoryItem getNonSeralizedInventoryItem(string itemNumber, i64 itemId, i64 fulfilmentWarehouseId, i64 billingWarehouseId)'
|
25 |
print ' InventoryItem getNonSeralizedInventoryItem(string itemNumber, i64 itemId, i64 fulfilmentWarehouseId, i64 billingWarehouseId)'
|
| 26 |
print ' void scan(InventoryItem inventoryItem, ScanType type, i64 quantity, i64 billingWarehouseId, i64 transferLotId)'
|
26 |
print ' void scan(InventoryItem inventoryItem, ScanType type, i64 quantity, i64 billingWarehouseId, i64 transferLotId)'
|
| - |
|
27 |
print ' void genericScan(InventoryItem inventoryItem, Scan scan)'
|
| 27 |
print ' InventoryItem scanSerializedItemForOrder(string serialNumber, ScanType type, i64 orderId, i64 fulfilmentWarehouseId, double quantity, i64 billingWarehouseId)'
|
28 |
print ' InventoryItem scanSerializedItemForOrder(string serialNumber, ScanType type, i64 orderId, i64 fulfilmentWarehouseId, double quantity, i64 billingWarehouseId)'
|
| 28 |
print ' InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, i64 quantity, i64 orderId, i64 fulfilmentWarehouseId, i64 billingWarehouseId)'
|
29 |
print ' InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, i64 quantity, i64 orderId, i64 fulfilmentWarehouseId, i64 billingWarehouseId)'
|
| 29 |
print ' void createItemNumberMapping(string itemNumber, i64 itemId)'
|
30 |
print ' void createItemNumberMapping(string itemNumber, i64 itemId)'
|
| 30 |
print ' getItemNumbers(i64 itemId)'
|
31 |
print ' getItemNumbers(i64 itemId)'
|
| 31 |
print ' getItemIds(string itemNumber)'
|
32 |
print ' getItemIds(string itemNumber)'
|
| 32 |
print ' getInventoryItemsFromLastScanType(ScanType lastScanType)'
|
33 |
print ' getInventoryItemsFromLastScanType(ScanType lastScanType)'
|
| 33 |
print ' InventoryItem getInventoryItemFromId(i64 inventoryItemId)'
|
34 |
print ' InventoryItem getInventoryItemFromId(i64 inventoryItemId)'
|
| 34 |
print ' getPurchaseScans(i64 startDate, i64 endDate)'
|
35 |
print ' getPurchaseScans(i64 startDate, i64 endDate)'
|
| 35 |
print ' getPurchaseScansByGrnDate(i64 startDate, i64 endDate)'
|
36 |
print ' getPurchaseScansByGrnDate(i64 startDate, i64 endDate)'
|
| - |
|
37 |
print ' getEmptyGrnsByDate(i64 startDate, i64 endDate)'
|
| 36 |
print ' fetchScansPerInvoiceNumber(i64 date)'
|
38 |
print ' fetchScansPerInvoiceNumber(i64 date)'
|
| 37 |
print ' InventoryItem getInventoryItemFromOrder(i64 orderId)'
|
39 |
print ' InventoryItem getInventoryItemFromOrder(i64 orderId)'
|
| 38 |
print ' getInventoryAge()'
|
40 |
print ' getInventoryAge()'
|
| 39 |
print ' getInventoryScansForItem(i64 itemId, i64 fromDate, i64 toDate)'
|
41 |
print ' getInventoryScansForItem(i64 itemId, i64 fromDate, i64 toDate)'
|
| 40 |
print ' getScanRecordsForSerialNumber(string serialNumber)'
|
42 |
print ' getScanRecordsForSerialNumber(string serialNumber)'
|
| Line 42... |
Line 44... |
| 42 |
print ' void scanForLostItem( lostItems, i64 vendorId, i64 billingWarehouseId)'
|
44 |
print ' void scanForLostItem( lostItems, i64 vendorId, i64 billingWarehouseId)'
|
| 43 |
print ' getCurrentSerializedInventoryByScans(i64 physicalWarehouseId)'
|
45 |
print ' getCurrentSerializedInventoryByScans(i64 physicalWarehouseId)'
|
| 44 |
print ' getCurrentNonSerializedInventoryByScans(i64 physicalWarehouseId)'
|
46 |
print ' getCurrentNonSerializedInventoryByScans(i64 physicalWarehouseId)'
|
| 45 |
print ' getHistoricSerializedInventoryByScans(i64 date)'
|
47 |
print ' getHistoricSerializedInventoryByScans(i64 date)'
|
| 46 |
print ' getHistoricNonSerializedInventoryByScans(i64 date)'
|
48 |
print ' getHistoricNonSerializedInventoryByScans(i64 date)'
|
| - |
|
49 |
print ' getOurHistoricSerializedInventoryByScans(i64 date)'
|
| - |
|
50 |
print ' getOurHistoricNonSerializedInventoryByScans(i64 date)'
|
| 47 |
print ' InventoryItem scanForOursExternalSale(i64 itemId, string serialNumber, string itemNumber, string invoiceNumber, i64 warehouseId, double unitPrice, double nlc, i64 orderId)'
|
51 |
print ' InventoryItem scanForOursExternalSale(i64 itemId, string serialNumber, string itemNumber, string invoiceNumber, i64 warehouseId, double unitPrice, double nlc, i64 orderId)'
|
| 48 |
print ' void scanForOursExternalSaleReturn(i64 orderId, double unitPrice)'
|
52 |
print ' void scanForOursExternalSaleReturn(i64 orderId, double unitPrice)'
|
| 49 |
print ' getMovementNonSerializedInventoryByScans(i64 startDate, i64 endDate)'
|
53 |
print ' getMovementNonSerializedInventoryByScans(i64 startDate, i64 endDate)'
|
| 50 |
print ' getMovementSerializedInventoryByScans(i64 startDate, i64 endDate)'
|
54 |
print ' getMovementSerializedInventoryByScans(i64 startDate, i64 endDate)'
|
| 51 |
print ' getCompleteMovementSerializedInventoryByScans(i64 startDate, i64 endDate)'
|
55 |
print ' getCompleteMovementSerializedInventoryByScans(i64 startDate, i64 endDate)'
|
| Line 70... |
Line 74... |
| 70 |
print ' getHistoricBadInventoryByScans(i64 date)'
|
74 |
print ' getHistoricBadInventoryByScans(i64 date)'
|
| 71 |
print ' InventoryItem scanForBadSale(string serialNumber, string itemNumber, i64 itemId, i64 orderId, i64 fulfilmentWarehouseId, i64 quantity, i64 billingWarehouseId)'
|
75 |
print ' InventoryItem scanForBadSale(string serialNumber, string itemNumber, i64 itemId, i64 orderId, i64 fulfilmentWarehouseId, i64 quantity, i64 billingWarehouseId)'
|
| 72 |
print ' getTransferLotItemsForMarkReceive(i64 transferLotId, ScanType scanType)'
|
76 |
print ' getTransferLotItemsForMarkReceive(i64 transferLotId, ScanType scanType)'
|
| 73 |
print ' void markItemsAsReceivedForTransferLotPartial( inventoryItems, i64 transferLotId)'
|
77 |
print ' void markItemsAsReceivedForTransferLotPartial( inventoryItems, i64 transferLotId)'
|
| 74 |
print ' void markTransferLotAsReceivedPartial(i64 id, string remoteTransferRefNumber)'
|
78 |
print ' void markTransferLotAsReceivedPartial(i64 id, string remoteTransferRefNumber)'
|
| - |
|
79 |
print ' getInventoryItemScannedInForPO(i64 itemId, purchaseIds)'
|
| - |
|
80 |
print ' getAmazonTransferredSkuDetails( itemIds)'
|
| - |
|
81 |
print ' getScansforPurchase(i64 purchaseId, ScanType scanType)'
|
| 75 |
print ''
|
82 |
print ''
|
| 76 |
sys.exit(0)
|
83 |
sys.exit(0)
|
| 77 |
|
84 |
|
| 78 |
pp = pprint.PrettyPrinter(indent = 2)
|
85 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 79 |
host = 'localhost'
|
86 |
host = 'localhost'
|
| Line 138... |
Line 145... |
| 138 |
if len(args) != 5:
|
145 |
if len(args) != 5:
|
| 139 |
print 'scan requires 5 args'
|
146 |
print 'scan requires 5 args'
|
| 140 |
sys.exit(1)
|
147 |
sys.exit(1)
|
| 141 |
pp.pprint(client.scan(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),))
|
148 |
pp.pprint(client.scan(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),))
|
| 142 |
|
149 |
|
| - |
|
150 |
elif cmd == 'genericScan':
|
| - |
|
151 |
if len(args) != 2:
|
| - |
|
152 |
print 'genericScan requires 2 args'
|
| - |
|
153 |
sys.exit(1)
|
| - |
|
154 |
pp.pprint(client.genericScan(eval(args[0]),eval(args[1]),))
|
| - |
|
155 |
|
| 143 |
elif cmd == 'scanSerializedItemForOrder':
|
156 |
elif cmd == 'scanSerializedItemForOrder':
|
| 144 |
if len(args) != 6:
|
157 |
if len(args) != 6:
|
| 145 |
print 'scanSerializedItemForOrder requires 6 args'
|
158 |
print 'scanSerializedItemForOrder requires 6 args'
|
| 146 |
sys.exit(1)
|
159 |
sys.exit(1)
|
| 147 |
pp.pprint(client.scanSerializedItemForOrder(args[0],eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),eval(args[5]),))
|
160 |
pp.pprint(client.scanSerializedItemForOrder(args[0],eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),eval(args[5]),))
|
| Line 192... |
Line 205... |
| 192 |
if len(args) != 2:
|
205 |
if len(args) != 2:
|
| 193 |
print 'getPurchaseScansByGrnDate requires 2 args'
|
206 |
print 'getPurchaseScansByGrnDate requires 2 args'
|
| 194 |
sys.exit(1)
|
207 |
sys.exit(1)
|
| 195 |
pp.pprint(client.getPurchaseScansByGrnDate(eval(args[0]),eval(args[1]),))
|
208 |
pp.pprint(client.getPurchaseScansByGrnDate(eval(args[0]),eval(args[1]),))
|
| 196 |
|
209 |
|
| - |
|
210 |
elif cmd == 'getEmptyGrnsByDate':
|
| - |
|
211 |
if len(args) != 2:
|
| - |
|
212 |
print 'getEmptyGrnsByDate requires 2 args'
|
| - |
|
213 |
sys.exit(1)
|
| - |
|
214 |
pp.pprint(client.getEmptyGrnsByDate(eval(args[0]),eval(args[1]),))
|
| - |
|
215 |
|
| 197 |
elif cmd == 'fetchScansPerInvoiceNumber':
|
216 |
elif cmd == 'fetchScansPerInvoiceNumber':
|
| 198 |
if len(args) != 1:
|
217 |
if len(args) != 1:
|
| 199 |
print 'fetchScansPerInvoiceNumber requires 1 args'
|
218 |
print 'fetchScansPerInvoiceNumber requires 1 args'
|
| 200 |
sys.exit(1)
|
219 |
sys.exit(1)
|
| 201 |
pp.pprint(client.fetchScansPerInvoiceNumber(eval(args[0]),))
|
220 |
pp.pprint(client.fetchScansPerInvoiceNumber(eval(args[0]),))
|
| Line 258... |
Line 277... |
| 258 |
if len(args) != 1:
|
277 |
if len(args) != 1:
|
| 259 |
print 'getHistoricNonSerializedInventoryByScans requires 1 args'
|
278 |
print 'getHistoricNonSerializedInventoryByScans requires 1 args'
|
| 260 |
sys.exit(1)
|
279 |
sys.exit(1)
|
| 261 |
pp.pprint(client.getHistoricNonSerializedInventoryByScans(eval(args[0]),))
|
280 |
pp.pprint(client.getHistoricNonSerializedInventoryByScans(eval(args[0]),))
|
| 262 |
|
281 |
|
| - |
|
282 |
elif cmd == 'getOurHistoricSerializedInventoryByScans':
|
| - |
|
283 |
if len(args) != 1:
|
| - |
|
284 |
print 'getOurHistoricSerializedInventoryByScans requires 1 args'
|
| - |
|
285 |
sys.exit(1)
|
| - |
|
286 |
pp.pprint(client.getOurHistoricSerializedInventoryByScans(eval(args[0]),))
|
| - |
|
287 |
|
| - |
|
288 |
elif cmd == 'getOurHistoricNonSerializedInventoryByScans':
|
| - |
|
289 |
if len(args) != 1:
|
| - |
|
290 |
print 'getOurHistoricNonSerializedInventoryByScans requires 1 args'
|
| - |
|
291 |
sys.exit(1)
|
| - |
|
292 |
pp.pprint(client.getOurHistoricNonSerializedInventoryByScans(eval(args[0]),))
|
| - |
|
293 |
|
| 263 |
elif cmd == 'scanForOursExternalSale':
|
294 |
elif cmd == 'scanForOursExternalSale':
|
| 264 |
if len(args) != 8:
|
295 |
if len(args) != 8:
|
| 265 |
print 'scanForOursExternalSale requires 8 args'
|
296 |
print 'scanForOursExternalSale requires 8 args'
|
| 266 |
sys.exit(1)
|
297 |
sys.exit(1)
|
| 267 |
pp.pprint(client.scanForOursExternalSale(eval(args[0]),args[1],args[2],args[3],eval(args[4]),eval(args[5]),eval(args[6]),eval(args[7]),))
|
298 |
pp.pprint(client.scanForOursExternalSale(eval(args[0]),args[1],args[2],args[3],eval(args[4]),eval(args[5]),eval(args[6]),eval(args[7]),))
|
| Line 426... |
Line 457... |
| 426 |
if len(args) != 2:
|
457 |
if len(args) != 2:
|
| 427 |
print 'markTransferLotAsReceivedPartial requires 2 args'
|
458 |
print 'markTransferLotAsReceivedPartial requires 2 args'
|
| 428 |
sys.exit(1)
|
459 |
sys.exit(1)
|
| 429 |
pp.pprint(client.markTransferLotAsReceivedPartial(eval(args[0]),args[1],))
|
460 |
pp.pprint(client.markTransferLotAsReceivedPartial(eval(args[0]),args[1],))
|
| 430 |
|
461 |
|
| - |
|
462 |
elif cmd == 'getInventoryItemScannedInForPO':
|
| - |
|
463 |
if len(args) != 2:
|
| - |
|
464 |
print 'getInventoryItemScannedInForPO requires 2 args'
|
| - |
|
465 |
sys.exit(1)
|
| - |
|
466 |
pp.pprint(client.getInventoryItemScannedInForPO(eval(args[0]),eval(args[1]),))
|
| - |
|
467 |
|
| - |
|
468 |
elif cmd == 'getAmazonTransferredSkuDetails':
|
| - |
|
469 |
if len(args) != 1:
|
| - |
|
470 |
print 'getAmazonTransferredSkuDetails requires 1 args'
|
| - |
|
471 |
sys.exit(1)
|
| - |
|
472 |
pp.pprint(client.getAmazonTransferredSkuDetails(eval(args[0]),))
|
| - |
|
473 |
|
| - |
|
474 |
elif cmd == 'getScansforPurchase':
|
| - |
|
475 |
if len(args) != 2:
|
| - |
|
476 |
print 'getScansforPurchase requires 2 args'
|
| - |
|
477 |
sys.exit(1)
|
| - |
|
478 |
pp.pprint(client.getScansforPurchase(eval(args[0]),eval(args[1]),))
|
| - |
|
479 |
|
| 431 |
else:
|
480 |
else:
|
| 432 |
print 'Unrecognized method %s' % cmd
|
481 |
print 'Unrecognized method %s' % cmd
|
| 433 |
sys.exit(1)
|
482 |
sys.exit(1)
|
| 434 |
|
483 |
|
| 435 |
transport.close()
|
484 |
transport.close()
|