Either you should follow the happy case or you should do the invoice of 80 pcs (with a new invoice).
Out of this if you will consider (or you need to accept) the 100 pcs invoice, then you can post the invoice for 100 pcs, then immediately you need to do credit memo of 20 pcs as because you are returning the material immediately.