Return not corresponding to Gosub on Purchase Receipt screen

My client who is running Sage X3 V12 is having the error below when they try to receipt one of their purchase orders.

How can we resolve such an issues?