2010-01-01 * "initialize"
Assets:Parent:Child 20 CHF
Assets:Parent 1 CHF
Equity:Opening-Balance -21 CHF // makes total sense
2010-01-02 pad Assets:Parent:Child Expenses:Expenses
2010-01-02 P "(Padding inserted for Balance of 0 CHF for difference -20 CHF)"
Assets:Parent:Child -20 CHF
Expenses:Expenses 20 CHF
2010-01-03 balance Assets:Parent:Child 0 CHF // makes total sense
2010-01-04 pad Assets:Parent Expenses:Expenses
2010-01-04 P "(Padding inserted for Balance of 0 CHF for difference -21 CHF)"
Assets:Parent -21 CHF // makes zero sense, should be -1 (one for the parent plus zero for the child), not -21. This account has a balance of 1, not 21
Expenses:Expenses 21 CHF
2010-01-05 balance Assets:Parent 0 CHF ; Diff: -20 CHF // continues to make zero sense
> To unsubscribe from this group and stop receiving emails from it, send an email to bean...@googlegroups.com.
What would be the clean way of balancing both accounts other than hardcoding a transaction and changing it everytime some historic transactions pops up?
$bean-query test3.bean print
test3.bean:11: Non-leaf account 'Assets:MYSTOCK' has postings on it
1970-01-01 open Assets:MYSTOCK MYSTOCK
1970-01-01 open Assets:USD USD
1970-01-01 open Assets:MYSTOCK MYSTOCK
1970-01-01 commodity MYSTOCK
name: "MYSTOCK"
2015-11-09 price MYSTOCK 1 USD
2017-08-04 open Assets:MYSTOCK:PnL
2017-08-04 open Income:MYSTOCK:PnL
2017-08-04 * "MYSTOCK" "buy MYSTOCK"
Assets:MYSTOCK 1 MYSTOCK {1 USD, 2017-08-04}
Assets:USD -1 USD
2017-08-04 U "Unrealized loss for 1 units of MYSTOCK (price: 1.0000 USD as of 2015-11-09, average cost: 1.0000 USD)"
Assets:MYSTOCK:PnL 0 USD
Income:MYSTOCK:PnL 0 USD