Clenaups.
[fa-stable.git] / includes / ui / ui_lists.inc
index 5fbdb8d4436e12ed0a45ce31fc191fa1e8938c5f..cae9efbc5f16a34b74f1827e7f395965d515e3a7 100644 (file)
@@ -1411,7 +1411,7 @@ function cash_accounts_list_row($label, $name, $selected_id=null, $submit_on_cha
 {
        $sql = "SELECT ".TB_PREF."bank_accounts.id, bank_account_name, bank_curr_code, inactive
                FROM ".TB_PREF."bank_accounts
-               WHERE ".TB_PREF."bank_accounts.account_type=3";
+               WHERE ".TB_PREF."bank_accounts.account_type=".BT_CASH;
 
        if ($label != null)
                echo "<tr><td class='label'>$label</td>\n";