Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto posting rules don't affect sibling files #1212

Open
simonmichael opened this issue Mar 18, 2020 · 0 comments
Open

auto posting rules don't affect sibling files #1212

simonmichael opened this issue Mar 18, 2020 · 0 comments
Labels

Comments

@simonmichael
Copy link
Owner

@simonmichael simonmichael commented Mar 18, 2020

Auto posting rules affect the whole current file and any parent or child file, but not sibling files (with multiple -f options). The docs at https://hledger.org/journal.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/journal.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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.