FR [ 1828521 ] Centralized ID management

Fix possible precedence problems with parenthesis
This commit is contained in:
Carlos Ruiz 2007-12-18 06:16:57 +00:00
parent 5752bdbe07
commit a2191ada06
1 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ public class MSequence extends X_AD_Sequence
if (adempiereSys) {
String isUseCentralizedID = MSysConfig.getValue("DICTIONARY_ID_USE_CENTRALIZED_ID", "Y"); // defaults to Y
if (! isUseCentralizedID.equals("N") && ! isExceptionCentralized(TableName)) {
if ( ( ! isUseCentralizedID.equals("N") ) && ( ! isExceptionCentralized(TableName) ) ) {
// get ID from http site
retValue = getNextOfficialID_HTTP(TableName);
if (retValue > 0) {
@ -174,7 +174,7 @@ public class MSequence extends X_AD_Sequence
}
// If not official dictionary try to get the ID from http custom server - if configured
if (hasEntityType && ! adempiereSys && ! isExceptionCentralized(TableName)) {
if (hasEntityType && ( ! adempiereSys ) && ( ! isExceptionCentralized(TableName) ) ) {
String isUseProjectCentralizedID = MSysConfig.getValue("PROJECT_ID_USE_CENTRALIZED_ID", "N"); // defaults to N
if (isUseProjectCentralizedID.equals("Y")) {