IDEMPIERE-3159 found more places where ImportInvoice doesn't have a trx leading to errors
This commit is contained in:
parent
7b7199bfe3
commit
8c2088ba80
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue