Skip to content

auto posting rules don't affect sibling files #1212

@simonmichael

Description

@simonmichael

Auto posting rules affect the whole current file and any parent or child file, but not sibling files (as with multiple -f options). The docs at https://hledger.org/hledger.html#auto-postings-transaction-modifiers are not clear on this. Also auto posting rules' and periodic transaction rules' scope should be mentioned in the https://hledger.org/hledger.html#directives reference table, probably.

Workaround for now: instead of multiple -f options, include all files in a single top level file and put auto posting rules there.

Related code: Hledger.Cli.Utils withJournalDo -> journalTransform -> journalAddForecast

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.docsDocumentation-related.journalThe journal file format, and its features.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions