use of org.eevolution.model.MWMArea in project adempiere by adempiere.
the class WMRuleFIFO method getLocator.
/**
* Get locator
* @param ctx
* @param warehouseId
* @param productId
* @param warehouseAreaTypeId
* @param warehouseSectionTypeId
* @param trxName
* @return
*/
public List<MLocator> getLocator(Properties ctx, int warehouseId, int productId, int warehouseAreaTypeId, int warehouseSectionTypeId, String trxName) {
ArrayList<MLocator> locators = new ArrayList();
List<MWMArea> areas = MWMArea.getByWarehouse(ctx, warehouseId, trxName);
for (MWMArea area : areas) {
List<MWMSection> sections = area.getBySectionType(warehouseSectionTypeId);
for (MWMSection section : sections) {
locators.addAll(MWMSectionDetail.getLocatorBySection(section));
}
}
return locators;
}
Aggregations