| Line 676... |
Line 676... |
| 676 |
lineitem = order.lineitems[0]
|
676 |
lineitem = order.lineitems[0]
|
| 677 |
scanItemString = " ".join([item.brand, item.modelName, item.modelNumber, item.color])
|
677 |
scanItemString = " ".join([item.brand, item.modelName, item.modelNumber, item.color])
|
| 678 |
lineItemString = " ".join([lineitem.brand, lineitem.model_name, lineitem.model_number, lineitem.color])
|
678 |
lineItemString = " ".join([lineitem.brand, lineitem.model_name, lineitem.model_number, lineitem.color])
|
| 679 |
raise TransactionServiceException(110, 'Trying to scan ' + scanItemString + ' instead of ' + lineItemString)
|
679 |
raise TransactionServiceException(110, 'Trying to scan ' + scanItemString + ' instead of ' + lineItemString)
|
| 680 |
transferPrice = warehouse_client.scanSerializedItemForOrder(inventoryItem.id, ScanType.SALE, orderId, order.warehouse_id)
|
680 |
transferPrice = warehouse_client.scanSerializedItemForOrder(inventoryItem.id, ScanType.SALE, orderId, order.warehouse_id)
|
| 681 |
order.transfer_price = transferPrice
|
681 |
lineitem.transfer_price = transferPrice
|
| 682 |
except WarehouseServiceException as e:
|
682 |
except WarehouseServiceException as e:
|
| 683 |
print sys.exc_info()[0]
|
683 |
print sys.exc_info()[0]
|
| 684 |
print 'Could not scan out orders due to: ' + e.message
|
684 |
print 'Could not scan out orders due to: ' + e.message
|
| 685 |
if e.exceptionType == ExceptionType.ILLEGAL_ARGUMENTS:
|
685 |
if e.exceptionType == ExceptionType.ILLEGAL_ARGUMENTS:
|
| 686 |
raise TransactionServiceException(110, e.message)
|
686 |
raise TransactionServiceException(110, e.message)
|