[ 1949319 ] ReportEngine doesn't work inside transaction

This commit is contained in:
Heng Sin Low 2008-04-23 03:58:00 +00:00
parent 8986b65149
commit 536349d69f
1 changed files with 1 additions and 1 deletions

View File

@ -1269,7 +1269,7 @@ public class MInvoice extends X_C_Invoice implements DocAction
*/
public File createPDF (File file)
{
ReportEngine re = ReportEngine.get (getCtx(), ReportEngine.INVOICE, getC_Invoice_ID());
ReportEngine re = ReportEngine.get (getCtx(), ReportEngine.INVOICE, getC_Invoice_ID(), get_TrxName());
if (re == null)
return null;
return re.getPDF(file);