Topic: Error "exceed of authorized overdraft limit" - I had to hack core file

Hello all
Please help
I am using FrontAccounting 2.4.11
I closed last year fiscal account and opened new one this year.
Then am trying to transact with a bank account that has enough balance, e.g. balance of $1,000 and only paying $10
And getting following error ""The bank transaction would result in exceed of authorized overdraft limit for transaction"
I look through bank inquiry report throughout the history, it has never had negative balance

So to temporarily get past this error, I had to comment out the whole validation statement in core file gl/gl_bank.php

This is the portion I commented out

    /*
    if ($trans = check_bank_account_history($amnt_chg, $_POST['bank_account'], $_POST['date_'])) {

        if (isset($trans['trans_no'])) {
            display_error(sprintf(_("The bank transaction would result in exceed of authorized overdraft limit for transaction: %s #%s on %s."),
                $systypes_array[$trans['type']], $trans['trans_no'], sql2date($trans['trans_date'])));
            set_focus('amount');
            $input_error = 1;
        }    
    }
    */

Re: Error "exceed of authorized overdraft limit" - I had to hack core file

As far as I am aware, the cash accounts and savings accounts cannot go into negative. Chequing and credit accounts would. Select the correct type of account

Wynand