| Line 1251... |
Line 1251... |
| 1251 |
raise TransactionServiceException(110, e.message)
|
1251 |
raise TransactionServiceException(110, e.message)
|
| 1252 |
elif billingType == BillingType.OURS_EXTERNAL:
|
1252 |
elif billingType == BillingType.OURS_EXTERNAL:
|
| 1253 |
try:
|
1253 |
try:
|
| 1254 |
serialNumber = serialNumbers[0]
|
1254 |
serialNumber = serialNumbers[0]
|
| 1255 |
warehouse_client = WarehouseClient().get_client()
|
1255 |
warehouse_client = WarehouseClient().get_client()
|
| 1256 |
inventoryItem = warehouse_client.scanForOursExternalSale(lineitem.item_number, serialNumber, invoice_number, order.fulfilmentWarehouseId, lineitem.unit_price, order.id)
|
1256 |
inventoryItem = warehouse_client.scanForOursExternalSale(lineitem.item_id, serialNumber, lineitem.item_number, invoice_number, order.fulfilmentWarehouseId, lineitem.transfer_price, order.id)
|
| 1257 |
lineitem.transfer_price = inventoryItem.unitPrice
|
1257 |
lineitem.transfer_price = inventoryItem.unitPrice
|
| 1258 |
order.vendorId = inventoryItem.supplierId
|
1258 |
order.vendorId = inventoryItem.supplierId
|
| 1259 |
except WarehouseServiceException as e:
|
1259 |
except WarehouseServiceException as e:
|
| 1260 |
print sys.exc_info()[0]
|
1260 |
print sys.exc_info()[0]
|
| 1261 |
print 'Could not scan out orders due to: ' + e.message
|
1261 |
print 'Could not scan out orders due to: ' + e.message
|