Moved all SQL statements from PHP files into relevant *_db.inc files.
[fa-stable.git] / gl / includes / db / gl_db_bank_accounts.inc
index 4377ec29774a56c61a0099e19fbd14e555d8a06b..7d79858bef83457817bd8aa0bdde9c29629128f5 100644 (file)
@@ -102,26 +102,6 @@ function get_bank_gl_account($id)
 
 //---------------------------------------------------------------------------------------------
 
-function bank_account_in_transactions($acc)
-{
-       $sql= "SELECT COUNT(*) FROM ".TB_PREF."bank_trans WHERE bank_act=$acc";
-       $result = db_query($sql,"check failed");
-       $myrow = db_fetch_row($result);
-       return ($myrow[0] > 0); 
-}
-
-//---------------------------------------------------------------------------------------------
-
-function bank_account_in_sales_pos($acc)
-{
-       $sql= "SELECT COUNT(*) FROM ".TB_PREF."sales_pos WHERE pos_account=$acc";
-       $result = db_query($sql,"check failed");
-       $myrow = db_fetch_row($result);
-       return ($myrow[0] > 0); 
-}
-
-//---------------------------------------------------------------------------------------------
-
 function add_quick_entry($description, $type, $base_amount, $base_desc)
 {
        $sql = "INSERT INTO ".TB_PREF."quick_entries (description, type, base_amount, base_desc)