Does anyone know how to control the invoice date and update date to prevent for updating the batch, until both are the same?

Does anyone know how to control the invoice date and update date to prevent for updating the batch, until both are the same? This relates to all modules SO,PO, AR, AP, IM. If anyone knows how to custom script on how to handle this matter? thanks.