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:
parent
1ea0cc1da5
commit
672d637e71
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue