BF [ 2549326 ] I not receive notification MRP-120

https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2549326&group_id=176962
This commit is contained in:
teo_sarca 2009-01-30 15:16:42 +00:00
parent 8ea9bd3cb5
commit ece8b5ce20
1 changed files with 24 additions and 22 deletions

View File

@ -1042,18 +1042,21 @@ public class MRP extends SvrProcess
commit(); commit();
} }
protected void createMRPNote(String code, int AD_Org_ID, int PP_MRP_ID, MProduct product,String documentNo,BigDecimal qty ,String comment) protected void createMRPNote(String code, int AD_Org_ID, int PP_MRP_ID, MProduct product, String documentNo, BigDecimal qty, String comment)
{ {
documentNo = documentNo != null ? documentNo : ""; documentNo = documentNo != null ? documentNo : "";
comment = comment != null ? comment : ""; comment = comment != null ? comment : "";
qty = qty != null ? qty : Env.ZERO; qty = qty != null ? qty : Env.ZERO;
MMessage msg = MMessage.get(getCtx(), code); MMessage msg = MMessage.get(getCtx(), code);
String message = Msg.getMsg(getCtx(), msg.getValue());
int user_id = 0; int user_id = 0;
if (PP_MRP_ID == 0 && m_product_planning != null) if (m_product_planning != null)
{ {
user_id = m_product_planning.getPlanner_ID(); user_id = m_product_planning.getPlanner_ID();
String message = Msg.getMsg(getCtx(), msg.getValue()); }
if (documentNo.length() > 0) if (documentNo.length() > 0)
message += " " + Msg.translate(getCtx(), MPPOrder.COLUMNNAME_DocumentNo) +":" + documentNo; message += " " + Msg.translate(getCtx(), MPPOrder.COLUMNNAME_DocumentNo) +":" + documentNo;
if (qty != null) if (qty != null)
@ -1074,7 +1077,6 @@ public class MRP extends SvrProcess
log.info(code+": "+note.getTextMsg()); log.info(code+": "+note.getTextMsg());
count_Msg += 1; count_Msg += 1;
} }
}
private int getDDOrder_ID(int AD_Org_ID,int M_Warehouse_ID, int M_Shipper_ID,int C_BPartner_ID, Timestamp DatePromised) private int getDDOrder_ID(int AD_Org_ID,int M_Warehouse_ID, int M_Shipper_ID,int C_BPartner_ID, Timestamp DatePromised)
{ {