Hello there, aruns.
When creating a Bill, the system uses the Accounts Payable account as the credit while it debits to the affected account under the Category details in the Bill window. We can verify that by going into the transaction history.
You can check out these articles that will help you manage your vendor transactions:
Keep me posted if you need more help. Take care!