I think I may have tracked down the code but I'm not 100% sure. I am modified line 260 in StateTaxRate.cs to be the following but this throws the error "Object reference not set to an instance of an object":
Code:
public StateTaxRates()
{
m_StateTaxRates = new SortedList();
object customersession = HttpContext.Current.Session["CustomerID"];
int customer;
customer = (int)customersession;
using (SqlConnection con = new SqlConnection(DB.GetDBConn()))
{
con.Open();
using (IDataReader rs = DB.GetRS("aspdnsf_getStateTaxRate " + customer.ToString(), con))
{
while (rs.Read())
{
m_StateTaxRates.Add(DB.RSFieldInt(rs, "StateTaxID"), new StateTaxRate(DB.RSFieldInt(rs, "StateTaxID"), DB.RSFieldInt(rs, "StateID"), DB.RSFieldInt(rs, "TaxClassID"), DB.RSField(rs, "StateName"), DB.RSField(rs, "TaxClass"), DB.RSFieldDecimal(rs, "TaxRate"), DB.RSFieldDateTime(rs, "CreatedOn")));
}
}
}
Any ideas why I'm getting this error or if this is even the right spot to modify?