ledger icon indicating copy to clipboard operation
ledger copied to clipboard

Automated transactions not shown with "--related"

Open chrpinedo opened this issue 5 years ago • 2 comments

It seems that automated transactions are not shown with "--related" option. Example file:

= /^Income:Interests/
    Income:Interests      0.2346
    Expenses:Taxes       -0.2346

2019/11/9 Interests
    Assets:Checking    $20
    Income:Interests

Automatic transaction works right:

$ ledger -f example.ldg reg income
19-Nov-09 Interests             Income:Interests                 $-20               $-20
                                Income:Interests                 $-5                $-25
$ ledger -f example.ldg reg expenses
19-Nov-09 Interests             Expenses:Taxes                   $5                 $5

However, if i try to find the related transactions, the automated transaction to "Expenses:Taxes" is lost:

$ ledger -f example.ldg reg income -r
19-Nov-09 Interests             Assets:Checking                  $20                $20

chrpinedo avatar Nov 09 '19 19:11 chrpinedo

I don't know if this bug is related to https://github.com/ledger/ledger/issues/1186 (ledger print doesn't show automated transactions)

chrpinedo avatar Nov 09 '19 19:11 chrpinedo

A duplicated issue #1995 has been reported

chrpinedo avatar Feb 28 '21 09:02 chrpinedo