| Line 43... |
Line 43... |
| 43 |
print ' getCurrentNonSerializedInventoryByScans()'
|
43 |
print ' getCurrentNonSerializedInventoryByScans()'
|
| 44 |
print ' getHistoricSerializedInventoryByScans(i64 date)'
|
44 |
print ' getHistoricSerializedInventoryByScans(i64 date)'
|
| 45 |
print ' getHistoricNonSerializedInventoryByScans(i64 date)'
|
45 |
print ' getHistoricNonSerializedInventoryByScans(i64 date)'
|
| 46 |
print ' InventoryItem scanForOursExternalSale(i64 itemId, string serialNumber, string itemNumber, string invoiceNumber, i64 warehouseId, double unitPrice, i64 orderId)'
|
46 |
print ' InventoryItem scanForOursExternalSale(i64 itemId, string serialNumber, string itemNumber, string invoiceNumber, i64 warehouseId, double unitPrice, i64 orderId)'
|
| 47 |
print ' void scanForOursExternalSaleReturn(i64 orderId, double unitPrice)'
|
47 |
print ' void scanForOursExternalSaleReturn(i64 orderId, double unitPrice)'
|
| - |
|
48 |
print ' getMovementNonSerializedInventoryByScans(i64 startDate, i64 endDate)'
|
| - |
|
49 |
print ' getMovementSerializedInventoryByScans(i64 startDate, i64 endDate)'
|
| 48 |
print ''
|
50 |
print ''
|
| 49 |
sys.exit(0)
|
51 |
sys.exit(0)
|
| 50 |
|
52 |
|
| 51 |
pp = pprint.PrettyPrinter(indent = 2)
|
53 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 52 |
host = 'localhost'
|
54 |
host = 'localhost'
|
| Line 237... |
Line 239... |
| 237 |
if len(args) != 2:
|
239 |
if len(args) != 2:
|
| 238 |
print 'scanForOursExternalSaleReturn requires 2 args'
|
240 |
print 'scanForOursExternalSaleReturn requires 2 args'
|
| 239 |
sys.exit(1)
|
241 |
sys.exit(1)
|
| 240 |
pp.pprint(client.scanForOursExternalSaleReturn(eval(args[0]),eval(args[1]),))
|
242 |
pp.pprint(client.scanForOursExternalSaleReturn(eval(args[0]),eval(args[1]),))
|
| 241 |
|
243 |
|
| - |
|
244 |
elif cmd == 'getMovementNonSerializedInventoryByScans':
|
| - |
|
245 |
if len(args) != 2:
|
| - |
|
246 |
print 'getMovementNonSerializedInventoryByScans requires 2 args'
|
| - |
|
247 |
sys.exit(1)
|
| - |
|
248 |
pp.pprint(client.getMovementNonSerializedInventoryByScans(eval(args[0]),eval(args[1]),))
|
| - |
|
249 |
|
| - |
|
250 |
elif cmd == 'getMovementSerializedInventoryByScans':
|
| - |
|
251 |
if len(args) != 2:
|
| - |
|
252 |
print 'getMovementSerializedInventoryByScans requires 2 args'
|
| - |
|
253 |
sys.exit(1)
|
| - |
|
254 |
pp.pprint(client.getMovementSerializedInventoryByScans(eval(args[0]),eval(args[1]),))
|
| - |
|
255 |
|
| 242 |
else:
|
256 |
else:
|
| 243 |
print 'Unrecognized method %s' % cmd
|
257 |
print 'Unrecognized method %s' % cmd
|
| 244 |
sys.exit(1)
|
258 |
sys.exit(1)
|
| 245 |
|
259 |
|
| 246 |
transport.close()
|
260 |
transport.close()
|