// 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)
{