From 6309936b81f786eaae1663bc26034ba282205cbe Mon Sep 17 00:00:00 2001 From: tspc Date: Thu, 8 Oct 2009 06:45:06 +0000 Subject: [PATCH] 2874512 - BOM Component UOM, Desc & Help not being set https://sourceforge.net/tracker/?func=detail&aid=2874512&group_id=176962&atid=934929 --- base/src/org/eevolution/model/CalloutBOM.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/base/src/org/eevolution/model/CalloutBOM.java b/base/src/org/eevolution/model/CalloutBOM.java index 90c04b519c..a8117fbf8d 100644 --- a/base/src/org/eevolution/model/CalloutBOM.java +++ b/base/src/org/eevolution/model/CalloutBOM.java @@ -41,7 +41,7 @@ import org.compiere.util.Env; public class CalloutBOM extends CalloutEngine { /** - * Parent cycle. + * Parent cycle check and BOM Line defaults. * @param ctx Context * @param WindowNo current Window No * @param mTab Model Tab @@ -62,6 +62,11 @@ public class CalloutBOM extends CalloutEngine { throw new AdempiereException("@ValidComponent@ - Error Parent not be Component"); } + // Set BOM Line defaults + I_M_Product product = MProduct.get(ctx, M_Product_ID); + bomLine.setDescription(product.getDescription()); + bomLine.setHelp(product.getHelp()); + bomLine.setC_UOM_ID(product.getC_UOM_ID()); return ""; }