X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gl%2Fmanage%2Fgl_accounts.php;h=0ce1d5da8e385b5a4a0b7253354df5b151b6fef8;hb=9a98bb3bc7a94f1a8e47f8dab45a87c8b4212080;hp=c47abcc8409fe41381a064165f632ab5c9a68609;hpb=78fe8cb8f56510ba3f6a1720b207a33b5828e071;p=fa-stable.git diff --git a/gl/manage/gl_accounts.php b/gl/manage/gl_accounts.php index c47abcc8..0ce1d5da 100644 --- a/gl/manage/gl_accounts.php +++ b/gl/manage/gl_accounts.php @@ -111,7 +111,7 @@ function can_delete($selected_account) if ($selected_account == "") return false; - if (key_in_foreign_table($selected_account, 'gl_trans', 'account', true)) + if (key_in_foreign_table($selected_account, 'gl_trans', 'account')) { display_error(_("Cannot delete this account because transactions have been created using this account.")); return false; @@ -123,7 +123,7 @@ function can_delete($selected_account) return false; } - if (key_in_foreign_table($selected_account, 'bank_accounts', 'account_code', true)) + if (key_in_foreign_table($selected_account, 'bank_accounts', 'account_code')) { display_error(_("Cannot delete this account because it is used by a bank account.")); return false;