Greetings, @mark15.
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.
Here’s how:
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.
For reference, please check out this article: Apply a credit memo, credit or refund to a customer.
This should get you pointed in the right direction. Please be sure to let me know what else I can do to help you succeed today. Thanks for reaching out and take care!