Fix [2891382] - CopyFromInvoice not in trx

https://sourceforge.net/tracker/?func=detail&aid=2891382&group_id=176962&atid=879332
This commit is contained in:
Carlos Ruiz 2009-11-03 16:59:47 +00:00
parent 54109e1332
commit 80802d6e11
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@ public class CopyFromInvoice extends SvrProcess
throw new IllegalArgumentException("Target C_Invoice_ID == 0");
if (m_C_Invoice_ID == 0)
throw new IllegalArgumentException("Source C_Invoice_ID == 0");
MInvoice from = new MInvoice (getCtx(), m_C_Invoice_ID, null);
MInvoice to = new MInvoice (getCtx(), To_C_Invoice_ID, null);
MInvoice from = new MInvoice (getCtx(), m_C_Invoice_ID, get_TrxName());
MInvoice to = new MInvoice (getCtx(), To_C_Invoice_ID, get_TrxName());
//
int no = to.copyLinesFrom (from, false, false);
//