domain_id based invoice deletion fixed
New variable in function delete() in sql_queries.php - $has_domain_id