IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information / Adding IsDefault to some views is causing problems - i.e. setting defaults for BP and orderline

This commit is contained in:
Carlos Ruiz 2013-03-23 10:24:18 -05:00
parent 4057fdabcc
commit 72058d4ac8
1 changed files with 1 additions and 1 deletions

View File

@ -956,7 +956,7 @@ public class Login
sql = "SELECT t.TableName, c.ColumnName "
+ "FROM AD_Column c "
+ " INNER JOIN AD_Table t ON (c.AD_Table_ID=t.AD_Table_ID) "
+ "WHERE c.IsKey='Y' AND t.IsActive='Y'"
+ "WHERE c.IsKey='Y' AND t.IsActive='Y' AND t.IsView='N'"
+ " AND EXISTS (SELECT * FROM AD_Column cc "
+ " WHERE ColumnName = 'IsDefault' AND t.AD_Table_ID=cc.AD_Table_ID AND cc.IsActive='Y')";
pstmt = DB.prepareStatement(sql, null);