Search in sources :

Example 6 with AdempierePOSException

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());
}
Also used : MLocator(org.compiere.model.MLocator) AdempierePOSException(org.adempiere.pos.AdempierePOSException) MWarehouse(org.compiere.model.MWarehouse)

Aggregations

AdempierePOSException (org.adempiere.pos.AdempierePOSException)6 MInvoice (org.compiere.model.MInvoice)2 ProcessInfo (org.compiere.process.ProcessInfo)2 BigDecimal (java.math.BigDecimal)1 I_AD_User (org.compiere.model.I_AD_User)1 MBPartnerLocation (org.compiere.model.MBPartnerLocation)1 MInOut (org.compiere.model.MInOut)1 MLocator (org.compiere.model.MLocator)1 MOrderLine (org.compiere.model.MOrderLine)1 MPriceListVersion (org.compiere.model.MPriceListVersion)1 MProductPrice (org.compiere.model.MProductPrice)1 MUser (org.compiere.model.MUser)1 MWarehouse (org.compiere.model.MWarehouse)1