You have 2 options depending on whether the invoice is pending or posted.
- If posted, you need to do a Sales Return. Then change the unit of measure in the Sales Order and repeat the delivery/invoice process
- If Pending, use the Cancel invoice function, and it will put the goods back to released to logistics in the delivery and allow you to step backwards to make the unit of measure changes on the Sales Order, then repeat the delivery/invoice process