From: Joe Date: Sun, 15 Feb 2015 07:47:48 +0000 (+0100) Subject: Better error msg when trying to use a GL account with transactions. X-Git-Tag: v2.4.2~19^2~254 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=75b75957c790d8bbe11e27881b2cef97db15deef;p=fa-stable.git Better error msg when trying to use a GL account with transactions. --- diff --git a/gl/manage/bank_accounts.php b/gl/manage/bank_accounts.php index 0100b515..2517efa1 100644 --- a/gl/manage/bank_accounts.php +++ b/gl/manage/bank_accounts.php @@ -36,7 +36,7 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM') if ($Mode=='ADD_ITEM' && (gl_account_in_bank_accounts(get_post('account_code')) || key_in_foreign_table(get_post('account_code'), 'gl_trans', 'account'))) { $input_error = 1; - display_error(_("The GL account selected is already in use. Select another GL account.")); + display_error(_("The GL account selected is already in use or has transactions. Select another empty GL account.")); set_focus('account_code'); } if ($input_error != 1)