Here is the associated code I was able to find in /includes/functions/functions_taxes.php
Code:
// Return the tax description for a zone / class
// TABLES: tax_rates;
function zen_get_tax_description($class_id, $country_id, $zone_id) {
global $db;
$tax_query = "select tax_description
from " . TABLE_TAX_RATES . " tr
left join " . TABLE_ZONES_TO_GEO_ZONES . " za on (tr.tax_zone_id = za.geo_zone_id)
left join " . TABLE_GEO_ZONES . " tz on (tz.geo_zone_id = tr.tax_zone_id)
where (za.zone_country_id is null or za.zone_country_id = '0'
or za.zone_country_id = '" . (int)$country_id . "')
and (za.zone_id is null
or za.zone_id = '0'
or za.zone_id = '" . (int)$zone_id . "')
and tr.tax_class_id = '" . (int)$class_id . "'
order by tr.tax_priority";
$tax = $db->Execute($tax_query);
if ($tax->RecordCount() > 0) {
$tax_description = '';
while (!$tax->EOF) {
$tax_description .= $tax->fields['tax_description'] . ' + ';
$tax->MoveNext();
}
$tax_description = substr($tax_description, 0, -3);
return $tax_description;
} else {
return TEXT_UNKNOWN_TAX_RATE;
}
}
Since it is an erroneous field I suppose I could play around w/ commenting lines out, but, rather than break it, I think I will wait for somebody who can actually read php to glance at it for me if they are so inclined.
Thanks to all of you knowledgeables out there who have been so helpful,
Audra