IDEMPIERE-3159 found more places where ImportInvoice doesn't have a trx leading to errors

This commit is contained in:
Carlos Ruiz 2018-05-17 23:01:29 +02:00
parent 7b7199bfe3
commit 8c2088ba80
1 changed files with 2 additions and 2 deletions

View File

@ -655,7 +655,7 @@ public class ImportInvoice extends SvrProcess
int lineNo = 0; int lineNo = 0;
while (rs.next ()) while (rs.next ())
{ {
X_I_Invoice imp = new X_I_Invoice (getCtx (), rs, null); X_I_Invoice imp = new X_I_Invoice (getCtx (), rs, get_TrxName());
String cmpDocumentNo = imp.getDocumentNo(); String cmpDocumentNo = imp.getDocumentNo();
if (cmpDocumentNo == null) if (cmpDocumentNo == null)
cmpDocumentNo = ""; cmpDocumentNo = "";
@ -680,7 +680,7 @@ public class ImportInvoice extends SvrProcess
if (oldDocumentNo == null) if (oldDocumentNo == null)
oldDocumentNo = ""; oldDocumentNo = "";
// //
invoice = new MInvoice (getCtx(), 0, null); invoice = new MInvoice (getCtx(), 0, get_TrxName());
invoice.setClientOrg (imp.getAD_Client_ID(), imp.getAD_Org_ID()); invoice.setClientOrg (imp.getAD_Client_ID(), imp.getAD_Org_ID());
invoice.setC_DocTypeTarget_ID(imp.getC_DocType_ID()); invoice.setC_DocTypeTarget_ID(imp.getC_DocType_ID());
invoice.setIsSOTrx(imp.isSOTrx()); invoice.setIsSOTrx(imp.isSOTrx());