From 077a2be635a9bea5791a0bc4a08ec64f133fc69b Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Wed, 11 Feb 2009 06:56:40 +0000 Subject: [PATCH] BF [ 2588043 ] Insufficient message ProductNotOnPriceList https://sourceforge.net/tracker/index.php?func=detail&aid=2588043&group_id=176962&atid=879332 --- base/src/org/compiere/model/MOrderLine.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/base/src/org/compiere/model/MOrderLine.java b/base/src/org/compiere/model/MOrderLine.java index 26b76eeb6a..83d3429e75 100644 --- a/base/src/org/compiere/model/MOrderLine.java +++ b/base/src/org/compiere/model/MOrderLine.java @@ -22,6 +22,7 @@ import java.sql.ResultSet; import java.util.Properties; import java.util.logging.Level; +import org.adempiere.exceptions.AdempiereException; import org.compiere.util.CLogger; import org.compiere.util.DB; 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 $ * * @author Teo Sarca, SC ARHIPAC SERVICE SRL - *
  • FR [ 1883362 ] Usability: force Product/Charge on Invoice Line as an option - * TODO: integrate to trunk + *
  • BF [ 2588043 ] Insufficient message ProductNotOnPriceList */ public class MOrderLine extends X_C_OrderLine { @@ -751,8 +751,7 @@ public class MOrderLine extends X_C_OrderLine getProductPricing(m_M_PriceList_ID); if (!m_productPrice.isCalculated()) { - log.saveError("Error", Msg.getMsg(getCtx(), "ProductNotOnPriceList")); - return false; + throw new AdempiereException("@ProductNotOnPriceList@ @Line@: "+getLine()); } }