Better error msg when trying to use a GL account with transactions.
authorJoe <unknown>
Sun, 15 Feb 2015 07:47:48 +0000 (08:47 +0100)
committerJoe <unknown>
Sun, 15 Feb 2015 07:47:48 +0000 (08:47 +0100)
gl/manage/bank_accounts.php

index 0100b515fa7b244f83720015718c282458f3af67..2517efa1741e7907311c56c9f7851fdb50b73fb7 100644 (file)
@@ -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)