| 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)'
|
- |
|
| 50 |
print ''
|
48 |
print ''
|
| 51 |
sys.exit(0)
|
49 |
sys.exit(0)
|
| 52 |
|
50 |
|
| 53 |
pp = pprint.PrettyPrinter(indent = 2)
|
51 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 54 |
host = 'localhost'
|
52 |
host = 'localhost'
|
| Line 239... |
Line 237... |
| 239 |
if len(args) != 2:
|
237 |
if len(args) != 2:
|
| 240 |
print 'scanForOursExternalSaleReturn requires 2 args'
|
238 |
print 'scanForOursExternalSaleReturn requires 2 args'
|
| 241 |
sys.exit(1)
|
239 |
sys.exit(1)
|
| 242 |
pp.pprint(client.scanForOursExternalSaleReturn(eval(args[0]),eval(args[1]),))
|
240 |
pp.pprint(client.scanForOursExternalSaleReturn(eval(args[0]),eval(args[1]),))
|
| 243 |
|
241 |
|
| 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 |
|
- |
|
| 256 |
else:
|
242 |
else:
|
| 257 |
print 'Unrecognized method %s' % cmd
|
243 |
print 'Unrecognized method %s' % cmd
|
| 258 |
sys.exit(1)
|
244 |
sys.exit(1)
|
| 259 |
|
245 |
|
| 260 |
transport.close()
|
246 |
transport.close()
|