2874512 - BOM Component UOM, Desc & Help not being set

https://sourceforge.net/tracker/?func=detail&aid=2874512&group_id=176962&atid=934929
This commit is contained in:
tspc 2009-10-08 06:45:06 +00:00
parent ec348ca36c
commit 6309936b81
1 changed files with 6 additions and 1 deletions

View File

@ -41,7 +41,7 @@ import org.compiere.util.Env;
public class CalloutBOM extends CalloutEngine public class CalloutBOM extends CalloutEngine
{ {
/** /**
* Parent cycle. * Parent cycle check and BOM Line defaults.
* @param ctx Context * @param ctx Context
* @param WindowNo current Window No * @param WindowNo current Window No
* @param mTab Model Tab * @param mTab Model Tab
@ -62,6 +62,11 @@ public class CalloutBOM extends CalloutEngine
{ {
throw new AdempiereException("@ValidComponent@ - Error Parent not be Component"); 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 ""; return "";
} }