Fix [3277139] - Doc_MatchPO has null trxName

http://kenai.com/jira/browse/HENGSIN-71
http://sourceforge.net/support/tracker.php?aid=3277139
This commit is contained in:
Redhuan D. Oon 2011-04-12 22:21:26 -05:00
parent f5a2d182f7
commit 0ce8f093b2
2 changed files with 4 additions and 4 deletions

View File

@ -82,16 +82,16 @@ public class Doc_MatchInv extends Doc
setQty (matchInv.getQty());
// Invoice Info
int C_InvoiceLine_ID = matchInv.getC_InvoiceLine_ID();
m_invoiceLine = new MInvoiceLine (getCtx(), C_InvoiceLine_ID, null);
m_invoiceLine = new MInvoiceLine (getCtx(), C_InvoiceLine_ID, getTrxName());
// BP for NotInvoicedReceipts
int C_BPartner_ID = m_invoiceLine.getParent().getC_BPartner_ID();
setC_BPartner_ID(C_BPartner_ID);
//
int M_InOutLine_ID = matchInv.getM_InOutLine_ID();
m_receiptLine = new MInOutLine (getCtx(), M_InOutLine_ID, null);
m_receiptLine = new MInOutLine (getCtx(), M_InOutLine_ID, getTrxName());
//
m_pc = new ProductCost (Env.getCtx(),
getM_Product_ID(), matchInv.getM_AttributeSetInstance_ID(), null);
getM_Product_ID(), matchInv.getM_AttributeSetInstance_ID(), getTrxName());
m_pc.setQty(getQty());
return null;

View File

@ -86,7 +86,7 @@ public class Doc_MatchPO extends Doc
m_oLine = new MOrderLine (getCtx(), m_C_OrderLine_ID, getTrxName());
//
m_M_InOutLine_ID = matchPO.getM_InOutLine_ID();
m_ioLine = new MInOutLine (getCtx(), m_M_InOutLine_ID, null);
m_ioLine = new MInOutLine (getCtx(), m_M_InOutLine_ID, getTrxName());
m_C_InvoiceLine_ID = matchPO.getC_InvoiceLine_ID();