Problem when unapply in vendor Ledger Entry

Hi All,

One of our customer using NAV 5.0 SP1 Malaysia version. We encounter a problem when trying to unapply vendor ledger entries. The following error appears:

The latest Transaction No. must be an application in Vendor Ledger Entry No. ######.

Looking at the Detailed Vendor Ledger Entries I notice that the last transcation No Entry type <> Application.

And Last entry Type = Unrealized Loss and after clarify with end user, they had run the Adjust Exchange Rate batch job.

It could be causing by Unrealized Gain/Loss batch job.

Thanks in advance