A pending invoice cannot be displayed because it is in use. If nobody else is working with the invoice, you can delete the unconfirmed changes to the invoice, and then you can modify the invoice. Use the Invoice history and matching details form or the Approval journal history and matching details form to delete the unconfirmed changes.