Editing or deleting an invoice will make a difference in the way your books are organised in QuickBooks Online.
If your going to delete the invoice, it will be permanently removed from your company file. However, editing an invoice shows new values in your accounts.