IDEMPIERE-1286 Improve address validation configuration to support external services

This commit is contained in:
Elaine Tan 2013-09-03 17:21:51 +08:00
parent c250df9d25
commit 32b7640889
1 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ public class MAddressTransaction extends X_C_AddressTransaction
else
{
processed = validation.onlineValidate(getCtx(), this, get_TrxName());
if (!processed)
if (!processed || !isValid())
setErrorMessage("From " + getMAddressValidation().getName() + ": " + getResult());
}
}
@ -104,7 +104,7 @@ public class MAddressTransaction extends X_C_AddressTransaction
MOnlineTrxHistory history = new MOnlineTrxHistory(getCtx(), 0, get_TrxName());
history.setAD_Table_ID(MAddressTransaction.Table_ID);
history.setRecord_ID(getC_AddressTransaction_ID());
history.setIsError(!processed);
history.setIsError(!(processed && isValid()));
history.setProcessed(processed);
StringBuilder msg = new StringBuilder();