Created Custom Tax Module but its not working???
Posted: Fri Mar 28, 2014 1:54 am
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>
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>