Return not corresponding to Gosub on Purchase Invoice Post

SOLVED

We have upgraded the  client data from PU9 to Version 12.

When we try to post Purchase Invoices we get the errors below