? tax_billing_state.patch Index: tax.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/ecommerce/tax/tax.module,v retrieving revision 1.16.2.3 diff -u -F^f -r1.16.2.3 tax.module --- tax.module 8 Jun 2006 01:27:39 -0000 1.16.2.3 +++ tax.module 16 Aug 2006 17:59:13 -0000 @@ -49,7 +49,6 @@ function tax_checkoutapi(&$txn, $op, $ar $box['subject'] = t('Tax'); $billing = $txn->address['billing']; $rules = tax_get_rules(); - $states = store_build_states(); $total_tax = 0; $taxable_amount = 0; @@ -76,12 +75,11 @@ function tax_checkoutapi(&$txn, $op, $ar } break; case 'state': - if ($billing->state) { - if ($states[$billing->state] == $rule->realm_value && tax_rule_product_match($txn, $rule)) { - if ($tax = tax_calculate($taxable_amount, $rule->operand, $rule->operator)) { - $total_tax += $tax; - } - } + if (isset($billing->state) && + $billing->state == $rule->realm_value && + tax_rule_product_match($txn, $rule) && + $tax = tax_calculate($taxable_amount, $rule->operand, $rule->operator)) { + $total_tax += $tax; } break; }