[ 2856775 ] AD_Sequence ID is not fetched from Project ID Server
https://sourceforge.net/tracker/?func=detail&aid=2856775&group_id=176962&atid=879332
This commit is contained in:
parent
c8cee246da
commit
8d5a3e8225
|
@ -148,9 +148,6 @@ public class MSequence extends X_AD_Sequence
|
||||||
|
|
||||||
// Get the table
|
// Get the table
|
||||||
MTable table = MTable.get(Env.getCtx(), TableName);
|
MTable table = MTable.get(Env.getCtx(), TableName);
|
||||||
boolean hasEntityType = false;
|
|
||||||
if (table.getColumn("EntityType") != null)
|
|
||||||
hasEntityType = true;
|
|
||||||
|
|
||||||
int AD_Sequence_ID = rs.getInt(4);
|
int AD_Sequence_ID = rs.getInt(4);
|
||||||
boolean gotFromHTTP = false;
|
boolean gotFromHTTP = false;
|
||||||
|
@ -178,8 +175,14 @@ public class MSequence extends X_AD_Sequence
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean queryProjectServer = false;
|
||||||
|
if (table.getColumn("EntityType") != null)
|
||||||
|
queryProjectServer = true;
|
||||||
|
if (!queryProjectServer && MSequence.Table_Name.equalsIgnoreCase(TableName))
|
||||||
|
queryProjectServer = true;
|
||||||
|
|
||||||
// If not official dictionary try to get the ID from http custom server - if configured
|
// If not official dictionary try to get the ID from http custom server - if configured
|
||||||
if (hasEntityType && ( ! adempiereSys ) && ( ! isExceptionCentralized(TableName) ) ) {
|
if (queryProjectServer && ( ! adempiereSys ) && ( ! isExceptionCentralized(TableName) ) ) {
|
||||||
|
|
||||||
String isUseProjectCentralizedID = MSysConfig.getValue("PROJECT_ID_USE_CENTRALIZED_ID", "N"); // defaults to N
|
String isUseProjectCentralizedID = MSysConfig.getValue("PROJECT_ID_USE_CENTRALIZED_ID", "N"); // defaults to N
|
||||||
if (isUseProjectCentralizedID.equals("Y")) {
|
if (isUseProjectCentralizedID.equals("Y")) {
|
||||||
|
|
Loading…
Reference in New Issue