| Line 1318... |
Line 1318... |
| 1318 |
inventory_client = InventoryClient().get_client()
|
1318 |
inventory_client = InventoryClient().get_client()
|
| 1319 |
warehouse = inventory_client.getWarehouse(fulfilmentWarehouseId)
|
1319 |
warehouse = inventory_client.getWarehouse(fulfilmentWarehouseId)
|
| 1320 |
item_pricing = inventory_client.getItemPricing(item_id, warehouse.vendor.id)
|
1320 |
item_pricing = inventory_client.getItemPricing(item_id, warehouse.vendor.id)
|
| 1321 |
lineitem.transfer_price = item_pricing.transferPrice
|
1321 |
lineitem.transfer_price = item_pricing.transferPrice
|
| 1322 |
lineitem.nlc = item_pricing.nlc
|
1322 |
lineitem.nlc = item_pricing.nlc
|
| 1323 |
lineitem.vatRate = catalog_client.getVatPercentageForItem(lineitem.item_id, lineitem.unit_price)
|
1323 |
lineitem.vatRate = catalog_client.getVatPercentageForItem(lineitem.item_id, warehouse.stateId, lineitem.unit_price)
|
| 1324 |
order.vendorId = warehouse.vendor.id
|
1324 |
order.vendorId = warehouse.vendor.id
|
| 1325 |
except InventoryServiceException as e:
|
1325 |
except InventoryServiceException as e:
|
| 1326 |
print sys.exc_info()[0]
|
1326 |
print sys.exc_info()[0]
|
| 1327 |
print e.message
|
1327 |
print e.message
|
| 1328 |
raise TransactionServiceException(110, 'Transfer price missing for itemId: ' + str(item_id) + ' and vendor: ' + str(warehouse.vendor.id))
|
1328 |
raise TransactionServiceException(110, 'Transfer price missing for itemId: ' + str(item_id) + ' and vendor: ' + str(warehouse.vendor.id))
|