-
-
Notifications
You must be signed in to change notification settings - Fork 383
auto posting rules don't affect sibling files #1212
Copy link
Copy link
Closed
Labels
A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.Something wrong, confusing or sub-standard in the software, docs, or user experience.docsDocumentation-related.Documentation-related.journalThe journal file format, and its features.The journal file format, and its features.
Metadata
Metadata
Assignees
Labels
A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.Something wrong, confusing or sub-standard in the software, docs, or user experience.docsDocumentation-related.Documentation-related.journalThe journal file format, and its features.The journal file format, and its features.
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