IDEMPIERE-1526 Add trx to ExpenseAPInvoice

This commit is contained in:
Carlos Ruiz 2014-08-27 19:36:34 -05:00
parent 30dc6c9af7
commit d41e69f6c6
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ public class ExpenseAPInvoice extends SvrProcess
MBPartner bp = new MBPartner (getCtx(), te.getC_BPartner_ID(), get_TrxName()); MBPartner bp = new MBPartner (getCtx(), te.getC_BPartner_ID(), get_TrxName());
// //
if (log.isLoggable(Level.INFO)) log.info("New Invoice for " + bp); if (log.isLoggable(Level.INFO)) log.info("New Invoice for " + bp);
invoice = new MInvoice (getCtx(), 0, null); invoice = new MInvoice (getCtx(), 0, get_TrxName());
invoice.setClientOrg(te.getAD_Client_ID(), te.getAD_Org_ID()); invoice.setClientOrg(te.getAD_Client_ID(), te.getAD_Org_ID());
invoice.setC_DocTypeTarget_ID(MDocType.DOCBASETYPE_APInvoice); // API invoice.setC_DocTypeTarget_ID(MDocType.DOCBASETYPE_APInvoice); // API
invoice.setDocumentNo (te.getDocumentNo()); invoice.setDocumentNo (te.getDocumentNo());