| Line 606... |
Line 606... |
| 606 |
warehouse = warehouses[warehouse_retid]
|
606 |
warehouse = warehouses[warehouse_retid]
|
| 607 |
billingWarehouseId = warehouse.billingWarehouseId
|
607 |
billingWarehouseId = warehouse.billingWarehouseId
|
| 608 |
|
608 |
|
| 609 |
# Fetching billing warehouse of a Good billable warehouse corresponding to the virtual one
|
609 |
# Fetching billing warehouse of a Good billable warehouse corresponding to the virtual one
|
| 610 |
if not warehouse.billingWarehouseId:
|
610 |
if not warehouse.billingWarehouseId:
|
| 611 |
for w in Warehouse.query.filter_by(vendor_id = warehouse.vendor_id, inventoryType = InventoryType._VALUES_TO_NAMES[InventoryType.GOOD], logisticsLocation=w.logisticsLocation).all():
|
611 |
for w in Warehouse.query.filter_by(vendor_id = warehouse.vendor_id, inventoryType = InventoryType._VALUES_TO_NAMES[InventoryType.GOOD], logisticsLocation=warehouse.logisticsLocation).all():
|
| 612 |
if w.billingWarehouseId:
|
612 |
if w.billingWarehouseId:
|
| 613 |
billingWarehouseId = w.billingWarehouseId
|
613 |
billingWarehouseId = w.billingWarehouseId
|
| 614 |
break
|
614 |
break
|
| 615 |
|
615 |
|
| 616 |
expectedDelay = item.expectedDelay
|
616 |
expectedDelay = item.expectedDelay
|