If the expense transaction you entered has not yet reconciled, you can delete the transaction and create a vendor credit. But make sure that before deleting that expense transaction, you take note of all the expense details.
To enter a vendor credit, here’s how:
Click the plus + New icon and select Vendor credit.
Select the vendor who issued the credit.
Enter the Date and Amount of the credit.
In the Category Details section, select the account used on the original bill.