There is a utility program FIXAPAGE.RUN that should help but once it is run, there may be a few stragglers that will need to be edited in Maintain Database. The latest version of the utility is available at
www.istechsupport.com/dl/fixapage.zip; unzip to DBAMFG and run FIXAPAGE at UT-A
Once it is run, to clean up any stragglers, you need to use Maintain Database and find the invoices in the BKAPINVT file and make note of the "Invoice Number" which is actually a reference number and then open the BKAPCHKH file and find the payment(s) associated with the invoice (based on vendor code and invoice date) and edit the Invoice number to match the entry in BKAPINVT so the Aging program can match them up. Or, if they are extremely old entries and you don't care about the history that far back, you can delete the entry from BAKPINVT.