| Line 4410... |
Line 4410... |
| 4410 |
raise TransactionServiceException(119, "Shifting of warehouse allowed to warehouse with billing support only")
|
4410 |
raise TransactionServiceException(119, "Shifting of warehouse allowed to warehouse with billing support only")
|
| 4411 |
|
4411 |
|
| 4412 |
# If One gives a billing warehouse for warehouse shift, we should assign order to the GOOD warehouse
|
4412 |
# If One gives a billing warehouse for warehouse shift, we should assign order to the GOOD warehouse
|
| 4413 |
# present within it with maximum availability
|
4413 |
# present within it with maximum availability
|
| 4414 |
if warehouse.id == warehouse.billingWarehouseId:
|
4414 |
if warehouse.id == warehouse.billingWarehouseId:
|
| 4415 |
warehouses = inventoryClient.getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 0, 0, warehouse.id)
|
4415 |
warehouses = inventoryClient.getWarehouses(None, InventoryType.GOOD, 0, 0, warehouse.id)
|
| 4416 |
if warehouses:
|
4416 |
if warehouses:
|
| 4417 |
itemInventory = inventoryClient.getItemInventoryByItemId(lineitem.item_id)
|
4417 |
itemInventory = inventoryClient.getItemInventoryByItemId(lineitem.item_id)
|
| 4418 |
warehouse = warehouses[0]
|
4418 |
warehouse = warehouses[0]
|
| 4419 |
maxAvailability = 0
|
4419 |
maxAvailability = 0
|
| 4420 |
for goodWarehouse in warehouses:
|
4420 |
for goodWarehouse in warehouses:
|