How to cancel customer invoice before making payment

Step 1: To cancel a customer invoice you need to go to Accounting-> Customers-> Invoices and choose a customer invoice with an open status

Step 2: Click on the Cancel button on the toolbar. At this time, inventory quantity,  journal entries will be removed

If you still want to use this customer invoice or change something, you can click on Reset to draft and Validate. The journal entries and inventory valuation will be posted again