If you have posted a sales return order as received, but the item is subsequently rejected, you must invoice the sales return order so as to complete the transaction. The program creates a posted sales credit memo in the process. Then you can issue a corrective sales invoice to re-invoice your customer.
At this point, you have posted the sales return order as received and invoiced.
Create a sales invoice for the customer.
You can use the Copy Sales Document batch job to copy the lines from the incorrectly posted sales credit memo.
Creating Sales Invoices