You can't match the direct deposit expense created in QuickBooks Online (QBO) with a bill made after the payment, Camille. I have details on how you can handle it to avoid discrepancies on your account. Let's get into the details.
Beforehand, please know that you don't need to match the direct deposit expense to a bill since it's already considered a cash transaction.
I have two options for you to record it.
You can either void or delete the direct deposit and keep the bill to apply the payment or void/delete the bill and retain the direct deposit expense. You can choose the best option for your needs.
To void/delete the expenses and bills:
- Go to the Expenses menu.
- Locate the bill or expenses in the Expenses tab.
- Click the dropdown beside view/edit.
- Select Void or Delete.

Additionally, you can check out these articles for more details on managing expenses and paying bills in QuickBooks:
Furthermore, visit this article for future reference if you need to run a Transaction List by Vendor report in QuickBooks to keep track of your expenses: Run a report in QuickBooks Online.
Please don't hesitate to respond in the comments below if you require further support with bill payments and vendor management, Camille.