How to confirm Purchase Return if following error ‘reason is not available in detail’ or ‘Reason code can not be null’occurs on confirm button click?

Cause:
System will not allow to confirm the Purchase return if reason field is blank. System will show error msg ‘ reason is not available in detail’.
Remedies:
User should check the detail part if reason is entered correctly.