You can record a journal voucher for increase in the tax liability, and tax credit when you purchase from unregistered dealers. For this, you need to debit and credit the same tax ledgers by entering the tax values. Report this transaction to the department as a self-invoice.