[ 1949319 ] ReportEngine doesn't work inside transaction

This commit is contained in:
Heng Sin Low 2008-04-23 06:02:09 +00:00
parent ede5509e89
commit 67bb818eb0
2 changed files with 2 additions and 2 deletions

View File

@ -523,7 +523,7 @@ public class MInOut extends X_M_InOut implements DocAction
*/
public File createPDF (File file)
{
ReportEngine re = ReportEngine.get (getCtx(), ReportEngine.SHIPMENT, getM_InOut_ID());
ReportEngine re = ReportEngine.get (getCtx(), ReportEngine.SHIPMENT, getM_InOut_ID(), get_TrxName());
if (re == null)
return null;
return re.getPDF(file);

View File

@ -571,7 +571,7 @@ public class MOrder extends X_C_Order implements DocAction
*/
public File createPDF (File file)
{
ReportEngine re = ReportEngine.get (getCtx(), ReportEngine.ORDER, getC_Order_ID());
ReportEngine re = ReportEngine.get (getCtx(), ReportEngine.ORDER, getC_Order_ID(), get_TrxName());
if (re == null)
return null;
return re.getPDF(file);