What is the best way to correct the wrong invoice

Thanks Mr . Erik,

Sorry i have written some thing wrong about the word Reserve .

Actaul word is REVERSE.

I dont want to REVERSE the item ledger entries. Just i want to reserve the Vendor ledger entries.

If it reverse the Item ledger entries then what is the use of the credit memo.

Because just want to caluclate the Vat amount only , because item is correct and cost is also correct so i dont want to reverse item ledger entries.

Please let me know what is the use of Credit memo