How do I link between invoice sales has been paid and an old sales order?

How do I link between invoice sales has been paid and an old sales order ? or change status of sales order from “deliver and bill” to “deliver”