New files from unstable branch
[fa-stable.git] / taxes / tax_calc.inc
index f0be73231fcf1fb5e8d8def1ebfcb0dc545ec898..3f54bd226aa65ee6871e86e30598f11f57d9ec37 100644 (file)
@@ -212,16 +212,4 @@ function get_tax_for_items($items, $prices, $shipping_cost, $tax_group, $tax_inc
        return $ret_tax_array;
 }
 
-function is_tax_account($account_code)
-{
-       $sql= "SELECT id FROM ".TB_PREF."tax_types WHERE 
-               sales_gl_code=".db_escape($account_code)." OR purchasing_gl_code=".db_escape($account_code);
-       $result = db_query($sql, "checking account is tax account");
-       if (db_num_rows($result) > 0) {
-               $acct = db_fetch($result);
-               return $acct['id'];
-       } else
-               return false;
-}
-
 ?>
\ No newline at end of file