Possible bug with payee aliases or am I missing something?

9 views
Skip to first unread message

Felipe Mica

unread,
Sep 11, 2021, 8:25:55 PMSep 11
to Ledger
In the example bellow, if I use the options
--strict --check-payees
it results in the following warnings:

line 15: Unknown payee 'BBB'
line 23: Unknown payee 'DDD'
line 31: Unknown payee 'FFF'

Why aren't the aliases working in this case?

payee AAA
    alias BBB

payee CCC
    alias DDD

payee EEE
    alias FFF


2021-09-06 AAA
    Assets:Checking
    Expenses:Food:Groceries                        1 USD

2021-09-06 BBB
    Assets:Checking
    Expenses:Food:Groceries                        1 USD

2021-09-06 CCC
    Assets:Checking
    Expenses:Food:Groceries                        1 USD

2021-09-06 DDD
    Assets:Checking
    Expenses:Food:Groceries                        1 USD

2021-09-06 EEE
    Assets:Checking
    Expenses:Food:Groceries                        1 USD

2021-09-06 FFF
    Assets:Checking
    Expenses:Food:Groceries                        1 USD

Martin Michlmayr

unread,
Sep 11, 2021, 8:47:47 PMSep 11
to ledge...@googlegroups.com
* Felipe Mica <mica...@gmail.com> [2021-09-11 17:25]:
> line 15: Unknown payee 'BBB'
> line 23: Unknown payee 'DDD'
> line 31: Unknown payee 'FFF'
>
> Why aren't the aliases working in this case?

They are working. Run "ledger reg" and you'll see that it's working
as expected.

The "Unknown payee" warnings are wrong. It's fixed already but we
have to make a new release.

https://github.com/ledger/ledger/commit/5560b0c40f3986704df25095fcc485bcc1de9e5b

--
Martin Michlmayr
https://www.cyrius.com/
Reply all
Reply to author
Forward
0 new messages