IDEMPIERE-1269 Improve tax configuration to support external services - add checking to ensure that the tax provider is active

This commit is contained in:
Elaine Tan 2013-10-04 16:42:25 +08:00
parent c025cd2a9f
commit f2f0580161
1 changed files with 6 additions and 0 deletions

View File

@ -243,6 +243,12 @@ public class Core {
if (provider.getC_TaxProvider_ID() == 0)
return new StandardTaxProvider();
if (!provider.isActive())
{
s_log.log(Level.SEVERE, "Tax provider is inactive: " + provider);
return null;
}
String className = provider.getTaxProviderClass();
if (className == null || className.length() == 0)
{