diff --git a/base/src/org/eevolution/model/MDDOrder.java b/base/src/org/eevolution/model/MDDOrder.java index a3f9eeb2ca..3d12b2a5c0 100644 --- a/base/src/org/eevolution/model/MDDOrder.java +++ b/base/src/org/eevolution/model/MDDOrder.java @@ -452,7 +452,7 @@ public class MDDOrder extends X_DD_Order implements DocAction */ public MDDOrderLine[] getLines (String whereClause, String orderClause) { - StringBuffer whereClauseFinal = new StringBuffer(MPPOrderBOMLine.COLUMNNAME_PP_Order_ID).append("=?"); + StringBuffer whereClauseFinal = new StringBuffer(MDDOrderLine.COLUMNNAME_DD_Order_ID).append("=?"); if (!Util.isEmpty(whereClause, true)) whereClauseFinal.append("AND (").append(whereClause).append(")"); //