Hi all, i just try to upgrade to the latest version 2.4.14 from my share hosting.
But after the upgrade, i am unable to login.
It always shows a screen with the below wording, there is no other button to login into the system.

image link below:
https://ibb.co/px2xZDm

Kindly advise what has gone wrong and how to recover it.
Many thanks

HTY

Hi Kvvaradha

Thanks for the reply. Appreciated it.
I have check the GL close date. I have never use this function, but to try it, i have set the close date to 2020... and my current fiscal year is in 2022.
This transaction locked happen right after i accidental update the PHP version on my hosting server.

Now after i change the frontaccounting/includes/db/audit_trail_db.inc:
It can edit the sales order, but the invoice is still not able to show( The pencil button is now show as editable).
But still it cant convert DO into Invoice.

Kindly help this...
Thanks a lot...

I have change the function accordingly.
After this change, in the Customer Transaction Inquiry, I am able to click the edit button (Before this it show CLOSED), but it could not display the record for edit. It just go to new page and show the transaction no. only.

What is the possible causes?

As for the Sales Order Inquiry, it can be edit now.


rogerk wrote:

Hi,

In PHP 8.1 comparisons have changed if one of them is not a number.

Replace this function in frontaccounting/includes/db/audit_trail_db.inc:

function is_closed_trans($type, $trans_no) {

        $gl_seq = get_journal_number($type, $trans_no);
        if (is_numeric( $gl_seq )) {
                return  $gl_seq > 0;
        }
        else {
                return false;
        }
}