* Sets Tax in float for a given Tax Class & Jurisdiction
* @return void
*/
public void setTax(int taxClassId, int taxJurisdictionId, float tax)
{
SaleHelperLocal local = null;
try {
InitialContext ic = CVUtility.getInitialContext();
SaleHelperLocalHome home = (SaleHelperLocalHome)ic.lookup("local/SaleHelper");
local = home.create();
local.setDataSource(this.dataSource);
local.setTax(taxClassId, taxJurisdictionId, tax);
} catch (Exception e) {
System.out.println("Failed in getting tax");
e.printStackTrace();
} finally {
local.setTax(taxClassId, taxJurisdictionId, 0.0f);
}
}