BF [ 2588043 ] Insufficient message ProductNotOnPriceList
https://sourceforge.net/tracker/index.php?func=detail&aid=2588043&group_id=176962&atid=879332
This commit is contained in:
parent
5ed7fcaafd
commit
077a2be635
|
@ -22,6 +22,7 @@ import java.sql.ResultSet;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
import org.adempiere.exceptions.AdempiereException;
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
|
@ -43,8 +44,7 @@ import org.compiere.util.Msg;
|
||||||
* @version $Id: MOrderLine.java,v 1.6 2006/10/02 05:18:39 jjanke Exp $
|
* @version $Id: MOrderLine.java,v 1.6 2006/10/02 05:18:39 jjanke Exp $
|
||||||
*
|
*
|
||||||
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
|
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
|
||||||
* <li>FR [ 1883362 ] Usability: force Product/Charge on Invoice Line as an option
|
* <li>BF [ 2588043 ] Insufficient message ProductNotOnPriceList
|
||||||
* TODO: integrate to trunk
|
|
||||||
*/
|
*/
|
||||||
public class MOrderLine extends X_C_OrderLine
|
public class MOrderLine extends X_C_OrderLine
|
||||||
{
|
{
|
||||||
|
@ -751,8 +751,7 @@ public class MOrderLine extends X_C_OrderLine
|
||||||
getProductPricing(m_M_PriceList_ID);
|
getProductPricing(m_M_PriceList_ID);
|
||||||
if (!m_productPrice.isCalculated())
|
if (!m_productPrice.isCalculated())
|
||||||
{
|
{
|
||||||
log.saveError("Error", Msg.getMsg(getCtx(), "ProductNotOnPriceList"));
|
throw new AdempiereException("@ProductNotOnPriceList@ @Line@: "+getLine());
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue