| Line 1055... |
Line 1055... |
| 1055 |
try:
|
1055 |
try:
|
| 1056 |
inventory_client = InventoryClient().get_client()
|
1056 |
inventory_client = InventoryClient().get_client()
|
| 1057 |
warehouse = inventory_client.getWarehouse(fulfilmentWarehouseId)
|
1057 |
warehouse = inventory_client.getWarehouse(fulfilmentWarehouseId)
|
| 1058 |
item_pricing = inventory_client.getItemPricing(item_id, warehouse.vendor.id)
|
1058 |
item_pricing = inventory_client.getItemPricing(item_id, warehouse.vendor.id)
|
| 1059 |
lineitem.transfer_price = item_pricing.transferPrice
|
1059 |
lineitem.transfer_price = item_pricing.transferPrice
|
| - |
|
1060 |
lineitem.vatRate = catalog_client.getVatPercentageForItem(lineitem.item_id, lineitem.unit_price)
|
| 1060 |
order.vendorId = warehouse.vendor.id
|
1061 |
order.vendorId = warehouse.vendor.id
|
| 1061 |
except InventoryServiceException as e:
|
1062 |
except InventoryServiceException as e:
|
| 1062 |
print sys.exc_info()[0]
|
1063 |
print sys.exc_info()[0]
|
| 1063 |
print e.message
|
1064 |
print e.message
|
| 1064 |
raise TransactionServiceException(110, 'Transfer price missing for itemId: ' + str(item_id) + ' and vendor: ' + str(warehouse.vendor.id))
|
1065 |
raise TransactionServiceException(110, 'Transfer price missing for itemId: ' + str(item_id) + ' and vendor: ' + str(warehouse.vendor.id))
|