hledger icon indicating copy to clipboard operation
hledger copied to clipboard

bs etc. don't detect account types as well as bal

Open simonmichael opened this issue 3 years ago • 0 comments

In these tests, balance detects both assets but balancesheet (and all the compound balance commands), using older account type code, does not (ie the second test currently fails):

# Declaring and name-inferring an account type at the same time.
<
2022/01/01
    (assets)  1

2022/01/02
    (other)   1

account other  ; type:A

# 5. bal detects both
$ hledger -f- bal -N type:A
                   1  other
                   1  assets

# 6. bs detects both
$ hledger -f- bs -N
Balance Sheet 2022-01-02

             || 2022-01-02 
=============++============
 Assets      ||            
-------------++------------
 other       ||          1 
 assets       ||         1 
=============++============
 Liabilities ||            
-------------++------------

simonmichael avatar Apr 16 '22 01:04 simonmichael