IDEMPIERE-4061 isTranslated is not set Yes on new Record default (#825)
This commit is contained in:
parent
b8437b2c23
commit
1af3cc0848
|
@ -3795,13 +3795,13 @@ public abstract class PO
|
|||
sql.append("SELECT l.AD_Language,t.")
|
||||
.append(keyColumn).append(", ")
|
||||
.append(sColumns)
|
||||
.append(" 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy");
|
||||
.append(" CASE WHEN l.AD_Language=c.AD_Language THEN 'Y' ELSE 'N' END AS IsTranslated,t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy");
|
||||
if (uuidColumn != null && uuidFunction)
|
||||
sql.append(",Generate_UUID() ");
|
||||
else
|
||||
sql.append(" ");
|
||||
sql.append("FROM AD_Language l, ").append(tableName).append(" t ")
|
||||
.append("WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.")
|
||||
sql.append("FROM AD_Language l, ").append(tableName).append(" t, AD_Client c ")
|
||||
.append("WHERE t.AD_Client_ID=c.AD_Client_ID AND l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.")
|
||||
.append(keyColumn).append("=").append(get_ID())
|
||||
.append(" AND NOT EXISTS (SELECT * FROM ").append(tableName)
|
||||
.append("_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.")
|
||||
|
|
Loading…
Reference in New Issue