Small fixes in attachments (check for non existent trasactions, proper page refresh...
[fa-stable.git] / admin / db / transactions_db.inc
index 293e8f4d0aad1dcec2ef45825cd603864260aa4e..8eb12130daea2591aa943b6d77dbe07384a911a6 100644 (file)
@@ -60,4 +60,8 @@ function get_sql_for_view_transactions($filtertype, $from, $to, &$trans_ref)
        return $sql;
 }
 
+function transaction_exists($trans_type, $trans_no)
+{
+       return db_num_rows(db_query(get_sql_for_view_transactions($trans_type, $trans_no, $trans_no, $dummy)));
+}
 ?>
\ No newline at end of file