If you have posted an erroneous invoice, you can correct it by issuing a credit memo.
Create a new credit memo.
Place a check mark in the Correction field.
Fill in the necessary lines with the items and corrective quantities.
Post the credit memo.
Printing Test Reports before Posting Sales Credit Memos
Correction of Incorrect Posted Documents