X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fmanage%2Fgl_accounts.php;h=221a76cd28e8d7944f1fc84157fa7c12372f8f6f;hb=9bb7d0742be8a96fe8152c338998bbd5b6daa0be;hp=db432dcc288209332c2ed9b92f1b285385f5f7e6;hpb=f158d84399d97f9d5556dbab48f46ed79d221182;p=fa-stable.git diff --git a/gl/manage/gl_accounts.php b/gl/manage/gl_accounts.php index db432dcc..221a76cd 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;