There was a requirement to archive the Sales Order document when it is completely invoiced and before the deletion.