From 5803ed9602fda14e25042a425ca097563a268724 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 16 Oct 2013 15:35:32 -0500 Subject: [PATCH] IDEMPIERE-1446 Order of report parameters on PDF is not consistent --- org.adempiere.base/src/org/compiere/model/MQuery.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/MQuery.java b/org.adempiere.base/src/org/compiere/model/MQuery.java index 8cc2c62032..acca3d496f 100644 --- a/org.adempiere.base/src/org/compiere/model/MQuery.java +++ b/org.adempiere.base/src/org/compiere/model/MQuery.java @@ -87,7 +87,8 @@ public class MQuery implements Serializable + " AND pp.AD_Process_ID=i.AD_Process_ID" + " AND pp.ColumnName=ip.ParameterName" + " AND pp.IsActive='Y'" - + " AND ip.AD_PInstance_ID=?"; + + " AND ip.AD_PInstance_ID=?" + + " ORDER BY pp.SeqNo"; else SQL = "SELECT ip.ParameterName,ip.P_String,ip.P_String_To, ip.P_Number,ip.P_Number_To," + "ip.P_Date,ip.P_Date_To, ip.Info,ip.Info_To, " @@ -99,7 +100,8 @@ public class MQuery implements Serializable + " AND pp.IsActive='Y'" + " AND pp.AD_Process_Para_ID=ppt.AD_Process_Para_ID" + " AND ip.AD_PInstance_ID=?" - + " AND ppt.AD_Language=?"; + + " AND ppt.AD_Language=?" + + " ORDER BY pp.SeqNo"; PreparedStatement pstmt = null; ResultSet rs = null; try