[ 1949319 ] ReportEngine doesn't work inside transaction
This commit is contained in:
parent
ede5509e89
commit
67bb818eb0
|
@ -523,7 +523,7 @@ public class MInOut extends X_M_InOut implements DocAction
|
||||||
*/
|
*/
|
||||||
public File createPDF (File file)
|
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)
|
if (re == null)
|
||||||
return null;
|
return null;
|
||||||
return re.getPDF(file);
|
return re.getPDF(file);
|
||||||
|
|
|
@ -571,7 +571,7 @@ public class MOrder extends X_C_Order implements DocAction
|
||||||
*/
|
*/
|
||||||
public File createPDF (File file)
|
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)
|
if (re == null)
|
||||||
return null;
|
return null;
|
||||||
return re.getPDF(file);
|
return re.getPDF(file);
|
||||||
|
|
Loading…
Reference in New Issue