Sales invoice voiding is blocked when sales credit was issued against the invoice.
[fa-stable.git] / gl / manage / bank_accounts.php
index b10c408e3f4aa9f72df146d96c73c4a43c585b40..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)
@@ -202,4 +202,3 @@ submit_add_or_update_center($selected_id == -1, '', 'both');
 end_form();
 
 end_page();
-?>