;cln: clarify #1698 test
This commit is contained in:
parent
7f320ebfa9
commit
4504c173fb
@ -328,37 +328,31 @@ $ hledger -f - balancesheet --tree --output-format=csv --drop 1
|
||||
"total"
|
||||
"Net:","$1"
|
||||
|
||||
# 14. When declaring account types, we want boring parents to include their
|
||||
# interesting children, including their historical postings. (#1698)
|
||||
# 14. In compound reports like balancesheet, parent accounts might not have
|
||||
# the appropriate type for a subreport, but in tree reports they should be
|
||||
# displayed anyway, and with the right inclusive amounts and starting
|
||||
# balances. (#1698)
|
||||
<
|
||||
account assets:foobar:reserve ; type: Cash
|
||||
account assets:foobar:current ; type: Cash
|
||||
account assets:receivable:anon ; type: Asset
|
||||
account assets:cash ; type: Cash
|
||||
|
||||
2018-12-06
|
||||
assets:foobar:current 1 A
|
||||
expenses:example
|
||||
account assets:checking ; type: Asset
|
||||
; ^ disables auto-detection of Asset type, "assets" will not be considered an Asset
|
||||
|
||||
2019-01-04
|
||||
assets:foobar:current 1 A
|
||||
expenses:example
|
||||
2019-12-01
|
||||
(assets:cash) 3
|
||||
|
||||
$ hledger -f - balancesheet --tree --no-elide --begin 2019-01-01
|
||||
Balance Sheet 2019-01-04
|
||||
2020-01-01
|
||||
(assets:cash) 2
|
||||
|
||||
|| 2019-01-04
|
||||
$ hledger -f - bs -N -t --no-elide -b 2020
|
||||
Balance Sheet 2020-01-01
|
||||
|
||||
|| 2020-01-01
|
||||
=============++============
|
||||
Assets ||
|
||||
-------------++------------
|
||||
assets || 2 A
|
||||
foobar || 2 A
|
||||
current || 2 A
|
||||
-------------++------------
|
||||
|| 2 A
|
||||
assets || 5
|
||||
cash || 5
|
||||
=============++============
|
||||
Liabilities ||
|
||||
-------------++------------
|
||||
-------------++------------
|
||||
||
|
||||
=============++============
|
||||
Net: || 2 A
|
||||
|
||||
Loading…
Reference in New Issue
Block a user