Which version of PHP/MySQL are you using?
Looks like the de-activation of the linked bank account is not being updated in the database presumably if there are transactions dependent on it.
This error is effected in line 87 (in current FA version) of gl/manage/gl_accounts.php.
Lines 89-94:
elseif (update_gl_account($_POST['account_code'], $_POST['account_name'],
$_POST['account_type'], $_POST['account_code2'])) {
update_record_status($_POST['account_code'], $_POST['inactive'],
'chart_master', 'account_code');
update_tag_associations(TAG_ACCOUNT, $_POST['account_code'],
$_POST['account_tags']);
need to succeed.
Furthermore, the table 0_bank_accounts too needs to have the inactive field set as needed and refreshed for the session variables to be updated. From line 282, the function is_bank_account($account_code) has been defined in gl/includes/db/gl_db_accounts.inc.
Hence the specific version of MySQL when queried may be returning a NULL instead of 0 for the inactive field or the get_post() part of the html response may not be of the type expected in the browser / PHP version used.
@joe: Any checks in the code that is preventing it?