Fix bug [ 1881291 ] Found orphan trx in Doc_Allocation

This commit is contained in:
Carlos Ruiz 2008-01-28 17:28:30 +00:00
parent 17321afafb
commit 346983a22a
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ public class Doc_Allocation extends Doc
payment = new MPayment (getCtx(), line.getC_Payment_ID(), getTrxName());
MInvoice invoice = null;
if (line.getC_Invoice_ID() != 0)
invoice = new MInvoice (getCtx(), line.getC_Invoice_ID(), null);
invoice = new MInvoice (getCtx(), line.getC_Invoice_ID(), getTrxName());
// No Invoice
if (invoice == null)