Hey y'all
In the below, I'm tracking 3 different balance sheets in a single ledger:
person_a
person_b
corp
corp is going to issue 10 shares of CORP.
person_a buys the 10 shares at a price of 1 each.
person_b buys the 10 shares from person_a at a price of 2 each.
Example 1 : sale to person_b not using symbol notation:
2020-01-01 dig for gold
corp:assets:gold 100
corp:equity:gold
2020-01-01 dig for gold
person_a:assets:gold 100
person_a:equity:gold
2020-01-02 IPO
corp:assets:gold 10
person_a:assets:gold -10
person_a:assets:common_stock 10 CORP @ 1
corp:equity:common_stock -10
2020-02-01 dig for gold
person_b:assets:gold 20
person_b:equity:gold
2020-02-01
person_b:assets:gold -20
person_b:assets:common_stock 20
;
person_a:assets:common_stock -10
person_a:assets:gold 20
person_a:income:stock_gains -10
Before sale to person_b:
$ ledger -f stock-ipo-2-persons-000-reddit-non-symbol.ledger balance --market --end 2020-01-10
0 corp
110 assets:gold
-110 equity
-10 common_stock
-100 gold
0 person_a
100 assets
10 common_stock
90 gold
-100 equity:gold
--------------------
0
After sale to person_b (person_a's assets to up by 10):
$ ledger -f stock-ipo-2-persons-000-reddit-non-symbol.ledger balance --market
0 corp
110 assets:gold
-110 equity
-10 common_stock
-100 gold
0 person_a
110 assets:gold
-100 equity:gold
-10 income:stock_gains
0 person_b
20 assets:common_stock
-20 equity:gold
--------------------
0
OK, all the sheets are balanced.
Example 2 : sale to person_b using symbol notation
Now, in the above, when person_a sells the 10 shares to person_b, here's the transaction for that:
2020-02-01
person_b:assets:gold -20
person_b:assets:common_stock 20
;
person_a:assets:common_stock -10
person_a:assets:gold 20
person_a:income:stock_gains -10
I'd prefer to show that transaction using symbol notation. I.e. something like this:
2020-02-01
person_b:assets:gold -20
person_b:assets:common_stock 10 CORP @ 2
;
person_a:assets:common_stock -10 CORP @ 1
person_a:assets:gold 20
person_a:income:stock_gains -10
The issue is, when I take this approach, person_b is unbalanced:
$ ledger -f stock-ipo-2-persons-001-reddit-symbol.ledger balance --market
0 corp
110 assets:gold
-110 equity
-10 common_stock
-100 gold
0 person_a
110 assets:gold
-100 equity:gold
-10 income:stock_gains
-10 person_b
10 assets:common_stock
-20 equity:gold
--------------------
-10
Here's the entire example for this second variation:
2020-01-01 dig for gold
corp:assets:gold 100
corp:equity:gold
2020-01-01 dig for gold
person_a:assets:gold 100
person_a:equity:gold
2020-01-02 IPO
corp:assets:gold 10
person_a:assets:gold -10
person_a:assets:common_stock 10 CORP @ 1
corp:equity:common_stock -10
2020-02-01 dig for gold
person_b:assets:gold 20
person_b:equity:gold
2020-02-01
person_b:assets:gold -20
person_b:assets:common_stock 10 CORP @ 2
;
person_a:assets:common_stock -10 CORP @ 1
person_a:assets:gold 20
person_a:income:stock_gains -10
Question
Is there a way to get the sheets balanced using symbol notation for the sale to person_b?
I'm using ledger-cli in the above, but I'm open to other systems if this can be more easily expressed there.
Thanks!
P.S.
Thanks to theaccountingnerd01
on reddit who helped me with the first part of this.