Taxes and 3.0
Posted: Thu Jun 20, 2013 9:14 am
by tduffey
What is the correct way to setup simple taxes, e.g., rates by US state in version 3? I see the SimpleTaxModule has been deprecated and in fact doesn't do anything if activated because the system is now using a TaxService that is supposed to have a list of TaxProviders. Digging deeper it seems some database configuration is necessary to get all of this going but I'm not finding any information on how to set it up. I'm sure I'll figure it out but it would be awesome if someone has time saving notes...
Tom
Re: Taxes and 3.0
Posted: Fri Jun 21, 2013 7:37 pm
by tduffey
Seems like the simplest thing to do if you want to follow existing documentation to use SimpleTaxModule is to redefine the blTaxActivity bean in your application context:
Code: Select all
<bean p:order="7000" id="blTaxActivity" class="org.broadleafcommerce.core.pricing.service.workflow.TaxActivity">
<property name="taxModule" ref="blTaxModule"/>
</bean>
The TaxActivity has logic to use the presumably newer TaxService and its list of TaxProviders when available and then fall back to the TaxModule. If you redefine the bean like above then it no longer has a reference to a TaxService and will use the module, meaning you can follow the existing docs.
Tom