use of org.adempiere.pos.AdempierePOSException in project adempiere by adempiere.
the class CPOS method validLocator.
/**
* Valid Locator
* @return
* @return String
*/
public void validLocator() {
MWarehouse warehouse = MWarehouse.get(ctx, getM_Warehouse_ID());
MLocator[] locators = warehouse.getLocators(true);
for (MLocator mLocator : locators) {
if (mLocator.isDefault()) {
return;
}
}
throw new AdempierePOSException("@M_Locator_ID@ @default@ " + "@not.found@ @M_Warehouse_ID@: " + warehouse.getName());
}
Aggregations