Hi,
The problem is due to this Credit Memo. The return had reverse the delivery already. There is no need for this CR. In order to close this wrong CR, you may create a invoice to reconcile.
Corrected sales order/delivery then invoice could be redo.
Thanks,
Gordon