Fix [ 1979978 ] A_VALID_ASSET_COMBINATIONS in dict not in db
GenerateModel is generating even for inactive tables
This commit is contained in:
parent
d43944d2f5
commit
faf6e29f9d
|
@ -117,7 +117,7 @@ public class GenerateModel
|
|||
+ "FROM AD_Table "
|
||||
+ "WHERE (TableName IN ('RV_WarehousePrice','RV_BPartner')" // special views
|
||||
+ " OR IsView='N')"
|
||||
+ " AND TableName NOT LIKE '%_Trl' AND ");
|
||||
+ " AND IsActive = 'Y' AND TableName NOT LIKE '%_Trl' AND ");
|
||||
sql.append(" AND TableName LIKE ").append(tableLike);
|
||||
|
||||
sql.append(" ORDER BY TableName");
|
||||
|
|
|
@ -1011,7 +1011,7 @@ public class ModelClassGenerator
|
|||
+ "FROM AD_Table "
|
||||
+ "WHERE (TableName IN ('RV_WarehousePrice','RV_BPartner')" // special views
|
||||
+ " OR IsView='N')"
|
||||
+ " AND TableName NOT LIKE '%_Trl' AND ");
|
||||
+ " AND IsActive = 'Y' AND TableName NOT LIKE '%_Trl' AND ");
|
||||
sql.append(" AND TableName LIKE ").append(tableLike);
|
||||
|
||||
sql.append(" ORDER BY TableName");
|
||||
|
|
|
@ -588,7 +588,7 @@ public class ModelInterfaceGenerator {
|
|||
// complete sql
|
||||
sql.insert(0, "SELECT AD_Table_ID " + "FROM AD_Table "
|
||||
+ "WHERE (TableName IN ('RV_WarehousePrice','RV_BPartner')" // special views
|
||||
+ " OR IsView='N')" + " AND TableName NOT LIKE '%_Trl' AND ");
|
||||
+ " OR IsView='N') AND IsActive = 'Y' AND TableName NOT LIKE '%_Trl' AND ");
|
||||
sql.append(" AND TableName LIKE ").append(tableLike);
|
||||
sql.append(" ORDER BY TableName");
|
||||
|
||||
|
|
Loading…
Reference in New Issue