Skip to content

apply account does not apply for aliases #2733

Description

@jokesper

Thanks for helping to make hledger better! Here's how to make a good bug report:

The following works fine:

commodity 1.000,00€

alias Baz = Bar

account Foo
account Bar

2026-01-01 transaction1
	Foo  -1,00€
	Baz   1,00€

If we now want to include the journal from somewhere else but in a scope with apply account hledger check --strict would fail, since the alias renaming no longer happens:

The following fails:

apply account Namespace

commodity 1.000,00€

alias Baz = Bar

account Foo
account Bar

2026-01-01 transaction1
	Foo  -1,00€
	Baz   1,00€

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions