From f2f0580161b9940673e55aaa91f4b5df26921a0d Mon Sep 17 00:00:00 2001 From: Elaine Tan Date: Fri, 4 Oct 2013 16:42:25 +0800 Subject: [PATCH] IDEMPIERE-1269 Improve tax configuration to support external services - add checking to ensure that the tax provider is active --- org.adempiere.base/src/org/adempiere/base/Core.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/org.adempiere.base/src/org/adempiere/base/Core.java b/org.adempiere.base/src/org/adempiere/base/Core.java index f1ffbac366..58f18f345a 100644 --- a/org.adempiere.base/src/org/adempiere/base/Core.java +++ b/org.adempiere.base/src/org/adempiere/base/Core.java @@ -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) {