From 75b75957c790d8bbe11e27881b2cef97db15deef Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 15 Feb 2015 08:47:48 +0100 Subject: [PATCH 1/1] Better error msg when trying to use a GL account with transactions. --- gl/manage/bank_accounts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2