How to clear account payable with manual journal

How to clear account payable with manual journal

Hi.... i using zoho books for 6 months so I'm having a problem with account payable.
I'm using a free version so i can't add bills whenever i owe someone money so i decided to use manual journal. (Eg: i got a product for 500$ i need to pay that money later) so i created journal entry product purchase 500$ debit/account payable 500$ credit and when i need to clear this i created another entry account payable 500$ debit/ petty cash credit.

it show up on vendors as payable 500$ and unused credit 500$.

can someone pls help me with this