Welcome to the Community. I can help you apply the payment to your newly created invoice in QuickBooks Online (QBO).
Since you’ve deleted the original transaction, the payment will show as an available credit to your customer. You can proceed in linking the unapplied payment to the new invoice.
1. Go to Sales from the left navigation bar and select the Customers tab.
2. Select the name of the customer.
3. Locate the invoice you want to apply the credit to and click Receive Payment.
4. In the Receive Payment window, enter the necessary information.
5. Scroll down to the Credits section and select the Unapplied Payment to link it to the new invoice.
6. Hit Save and close.