diff --git a/base/src/org/compiere/model/MInOut.java b/base/src/org/compiere/model/MInOut.java index cc51a1d360..f7f1bca70b 100644 --- a/base/src/org/compiere/model/MInOut.java +++ b/base/src/org/compiere/model/MInOut.java @@ -527,7 +527,7 @@ public class MInOut extends X_M_InOut implements DocAction */ public File createPDF (File file) { - ReportEngine re = ReportEngine.get (getCtx(), ReportEngine.SHIPMENT, getC_Invoice_ID()); + ReportEngine re = ReportEngine.get (getCtx(), ReportEngine.SHIPMENT, getM_InOut_ID()); if (re == null) return null; return re.getPDF(file);