When you return a product from a delivery order and do a refund in the process. The "INVOICED" / Invoice Received check box is unchecked in Purchase Order. However, the purchase order is still in "DONE" state.
I have not tried to assign the credit note/refund to the same PO just to see if it will mark it as received.