fixes IDEMPIERE-44 - Problem creating PO from Requisition

http://jira.idempiere.com/browse/IDEMPIERE-44
This commit is contained in:
Carlos Ruiz 2011-07-09 10:11:07 -05:00
parent 3ae076965e
commit 41457e65e8
1 changed files with 2 additions and 0 deletions

View File

@ -345,6 +345,8 @@ public class RequisitionPOCreate extends SvrProcess
if (m_order == null) if (m_order == null)
{ {
m_order = new MOrder(getCtx(), 0, get_TrxName()); m_order = new MOrder(getCtx(), 0, get_TrxName());
m_order.setAD_Org_ID(rLine.getAD_Org_ID());
m_order.setM_Warehouse_ID(rLine.getParent().getM_Warehouse_ID());
m_order.setDatePromised(DateRequired); m_order.setDatePromised(DateRequired);
m_order.setIsSOTrx(false); m_order.setIsSOTrx(false);
m_order.setC_DocTypeTarget_ID(); m_order.setC_DocTypeTarget_ID();