IDEMPIERE-1269 Improve tax configuration to support external services - add checking to ensure that the tax provider is active
This commit is contained in:
parent
c025cd2a9f
commit
f2f0580161
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue