BF [ 2605888 ] CreatePOfromRequisition creates more PO than needed

https://sourceforge.net/tracker/index.php?func=detail&aid=2605888&group_id=176962&atid=879332

Fix bug introduced in previous commit related to this issue.
This commit is contained in:
teo_sarca 2009-02-19 10:30:04 +00:00
parent 1ea0cc1da5
commit 672d637e71
1 changed files with 1 additions and 2 deletions

View File

@ -363,7 +363,7 @@ public class RequisitionPOCreate extends SvrProcess
m_orderLine.saveEx();
}
m_orderLine = null;
MProduct product = null;
MProduct product = MProduct.get(getCtx(), rLine.getM_Product_ID());
// Get Business Partner
int C_BPartner_ID = rLine.getC_BPartner_ID();
@ -384,7 +384,6 @@ public class RequisitionPOCreate extends SvrProcess
{
// Find Strategic Vendor for Product
// TODO: refactor
product = MProduct.get(getCtx(), rLine.getM_Product_ID());
MProductPO[] ppos = MProductPO.getOfProduct(getCtx(), product.getM_Product_ID(), null);
for (int i = 0; i < ppos.length; i++)
{