What is Ledger?

Ledger is a collection of different accounts like sales, purchase, income, expense etc. Every transaction should be placed in their respective ledger.
Ledger includes few accounts like assets, liabilities, income and expense, account receivable, accounts payable etc.

Here is an example: