Moved all SQL statements from PHP files into relevant *_db.inc files.
[fa-stable.git] / taxes / tax_calc.inc
index 7107cdca7a75c8f6732e533231faeda6c84cc92e..0da0a74ed147d0f40746e3d065d4920b30922ade 100644 (file)
@@ -207,16 +207,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