| Line 3215... |
Line 3215... |
| 3215 |
catalog_client = CatalogClient().get_client()
|
3215 |
catalog_client = CatalogClient().get_client()
|
| 3216 |
|
3216 |
|
| 3217 |
old_item = catalog_client.getItem(lineitem.item_id)
|
3217 |
old_item = catalog_client.getItem(lineitem.item_id)
|
| 3218 |
item = catalog_client.getItem(item_id)
|
3218 |
item = catalog_client.getItem(item_id)
|
| 3219 |
if old_item.catalogItemId != item.catalogItemId:
|
3219 |
if old_item.catalogItemId != item.catalogItemId:
|
| - |
|
3220 |
freebie_order_info_text = "Freebie Order for Order ID"
|
| - |
|
3221 |
if lineitem.extra_info and freebie_order_info_text in lineitem.extra_info:
|
| - |
|
3222 |
print "Allowing item change for split Freebie Order"
|
| - |
|
3223 |
else:
|
| 3220 |
raise TransactionServiceException(121, "You can't ship a different item. You can only ship the same item in a different color.")
|
3224 |
raise TransactionServiceException(121, "You can't ship a different item. You can only ship the same item in a different color.")
|
| 3221 |
|
3225 |
|
| 3222 |
inventoryClient = InventoryClient().get_client()
|
3226 |
inventoryClient = InventoryClient().get_client()
|
| 3223 |
inventoryClient.reserveItemInWarehouse(item_id, order.fulfilmentWarehouseId, sourceId, order.id, to_java_date(order.created_timestamp), to_java_date(order.promised_shipping_time), order.lineitems[0].quantity)
|
3227 |
inventoryClient.reserveItemInWarehouse(item_id, order.fulfilmentWarehouseId, sourceId, order.id, to_java_date(order.created_timestamp), to_java_date(order.promised_shipping_time), order.lineitems[0].quantity)
|
| 3224 |
__update_inventory_reservation(order)
|
3228 |
__update_inventory_reservation(order)
|
| 3225 |
#TODO: Check that this new item has the same price
|
3229 |
#TODO: Check that this new item has the same price
|