Page 1 of 1

Created Custom Tax Module but its not working???

Posted: Fri Mar 28, 2014 1:54 am
by sunita
i have created custom tax module but the method ''calculateTaxForOrder is not getting called.., i need to print the following line 'in calculateTaxForOrder Method................. ' and show the tax as per the logic on screen. Please help..

CalculateTax.java

@SuppressWarnings("deprecation")
public class CalculateTax implements TaxModule {
@Override
public Order calculateTaxForOrder(Order order) throws TaxException {
System.out.println("in calculateTaxForOrder Method.................");
//Some business logic
}
return order;
}

ApplicationContext.xml
<bean id="gCommerceTaxModule" class="com.gcommerce.tax.CalculateTax">
</bean>
<bean class="org.broadleafcommerce.core.pricing.service.workflow.TaxActivity">
<property name="taxModule" ref="gCommerceTaxModule"/>
</bean>

Re: Created Custom Tax Module but its not working???

Posted: Fri Mar 28, 2014 1:04 pm
by phillipuniverse
What version of Broadleaf are you using?

Re: Created Custom Tax Module but its not working???

Posted: Fri Mar 28, 2014 6:34 pm
by sunita
broadleaf-framework-3.0.2