Interface WarehouseService
- All Known Subinterfaces:
WarehousingWarehouseService
- All Known Implementing Classes:
DefaultWarehouseService,DefaultWarehousingWarehouseService
public interface WarehouseService
The service is used to fetch warehouse for order entries.
-
Method Summary
Modifier and TypeMethodDescriptionGets warehouse that is marked as default.getWarehouseForCode(String code) Return the warehouse with for the codegetWarehouses(Collection<? extends AbstractOrderEntryModel> orderEntries) Return list of warehouses that can be used to create order from order entries.Return list of warehouses that can be used to create order from order entry.
-
Method Details
-
getWarehousesWithProductsInStock
Return list of warehouses that can be used to create order from order entry.- Parameters:
orderEntry- queried order entry- Returns:
- list of warehouses
-
getWarehouses
Return list of warehouses that can be used to create order from order entries.- Parameters:
orderEntries- queried list- Returns:
- list of warehouses
-
getWarehouseForCode
Return the warehouse with for the code- Parameters:
code- code of warehouse to search.- Returns:
- instance of
WarehouseModel,RuntimeExceptionis thrown otherwise
-
getDefWarehouse
List<WarehouseModel> getDefWarehouse()Gets warehouse that is marked as default.- Returns:
- default warehouse
-