Package org.adempiere.exceptions

Examples of org.adempiere.exceptions.FillMandatoryException


    // Locator is mandatory if no charge is defined - teo_sarca BF [ 2757978 ]
    if(getProduct() != null && MProduct.PRODUCTTYPE_Item.equals(getProduct().getProductType()))
    {
      if (getM_Locator_ID() <= 0 && getC_Charge_ID() <= 0)
      {
        throw new FillMandatoryException(COLUMNNAME_M_Locator_ID);
      }
    }

    // Receipt should not allow lines with Qty=0 - teo_sarca [ 2797938 ]
    if (!isDescription()
        && getMovementQty().signum() == 0
        && getPickedQty().signum() == 0
        && getScrappedQty().signum() == 0)
    {
      throw new FillMandatoryException(COLUMNNAME_MovementQty);
    }
   
    //  Get Line No
    if (getLine() == 0)
    {
View Full Code Here


      int ii = Env.getContextAsInt(getCtx(), "#M_Warehouse_ID");
      if (ii != 0)
        setM_Warehouse_ID(ii);
      else
      {
        throw new FillMandatoryException(COLUMNNAME_M_Warehouse_ID);
      }
    }
    //  Warehouse Org
    if (newRecord
      || is_ValueChanged("AD_Org_ID") || is_ValueChanged("M_Warehouse_ID"))
View Full Code Here

TOP

Related Classes of org.adempiere.exceptions.FillMandatoryException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.