The Accounting Game
There's a book that introduces accounting called The Accounting Game by Mullis and Orloff:
ledger-cli file
Here's one approach to implementing the transactions from chapter 1 in ledger-cli:
2024/01/01 original investment
assets:cash 5
liabilities:owners equity:original investment
2024/01/02 loan from parents
assets:cash 10
liabilities:notes payable
2024/01/03 buy materials
assets:inventory 12
assets:cash
2024/01/04 sales
assets:cash 25
assets:inventory -10
liabilities:owners equity:earnings week to date
2024/01/05 expenses
assets:cash -5
liabilities:owners equity:earnings week to date
2024/01/05 pay off loan
liabilities:notes payable 10
assets:cash
Chapter 1 balance sheet
At the end of chapter 1, here's the balance sheet we end up with:
If we run ledger on the file, we get:
$ ledger -f lemonade.ledger balance
15 assets
13 cash
2 inventory
-15 liabilities:owners equity
-10 earnings week to date
-5 original investment
--------------------
0
Which appears to match up with the book's balance sheet.
Question : expenses
At one point in the chapter, some expenses are tracked:
I implemented this transaction as follows:
2024/01/05 expenses
assets:cash -5
liabilities:owners equity:earnings week to date
While this does result in a balanced sheet, the actual expenses (glass rental, advertising, rent) aren't reflected in the balance sheet or in the ledger file.
What's a good way to track this in the ledger file and still end up with a balanced sheet?
Update 1
In a comment below, Hart CO mentions that chapter 2 discusses the income statement. Here's the income statement from chapter 2:
And the ending balance sheet:
Here's a ledger file that incorporates the expenses:
2024/01/01 original investment
assets:cash 5
liabilities:owners equity:original investment
2024/01/02 loan from parents
assets:cash 10
liabilities:notes payable
2024/01/03 buy materials
assets:inventory:lemons 10
assets:inventory:sugar 2
assets:cash
2024/01/04 sales
assets:cash 25
assets:inventory -10
liabilities:owners equity:earnings week to date
2024/01/05 expenses
expenses:glass rental 2
expenses:advertising 1
expenses:rent 2
assets:cash
2024/01/06 pay off loan
liabilities:notes payable 10
assets:cash
I get $15 in the assets, which is correct. However, I'm getting -20 for liabilities:
$ ledger -f lemonade-income-statement.ledger balance
15 assets
13 cash
2 inventory
10 lemons
2 sugar
5 expenses
1 advertising
2 glass rental
2 rent
-20 liabilities:owners equity
-15 earnings week to date
-5 original investment
--------------------
0




