Journal entry for Machinery purchased for Rs. 1 lakh?

debit machinery account 100000
credit cash 100000

If purchased in cash..

machinery A/C......................Dr

To cash A/C

If purchased on credit..

Machinery A/C.......................Dr

To Suppliers A/C