When goods are purchased on credit, stock increases which is an asset and creditors increase, which is a liability.
To record a journal voucher, go to Accounting -> Journal Entries. Every journal entry should contain minimum 2 rows - one for debit and another for credit. Let's see some of the important transactions that require a journal entry.