You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once more thanks for these plugins. I've been using them all over my ledgers and really enjoy them!
However, I've found a problem with the autobean.share.include - though I am not completely sure if I'm using this wrong.
The docs in advanced.md say
autobean.share.include is different from the builtin include directive in that it is hierarchical:
Plugins are evaluated inside the included ledgers.
Share policies are scoped inside the included ledger.
Receivable account name and viewpoint are determined by the outermost ledger.
I cannot get this to work.
I have the following test setup:
note: I need to include "accounts.beancount" in every ledger, because including it in main.beancount will in fact complain that the accounts are undefined.
What happens is that the policy with the more recent date takes effect for every transaction starting from that date in every ledger. So the policy defined in shared.beancount will also apply to all transactions in jan.beancount.
This is not affected by the include order or their dates in main.beancount.
I assumed from the docs that I can specify policies in each file and they will be only evaluated within that file if I use autobean.share.include. Did I misunderstand this or am I using this wrong?
If I don't use default or wildcard policies, but attach the a policy to every posting instead, everything works as expected.
The text was updated successfully, but these errors were encountered:
Once more thanks for these plugins. I've been using them all over my ledgers and really enjoy them!
However, I've found a problem with the
autobean.share.include
- though I am not completely sure if I'm using this wrong.The docs in
advanced.md
sayI cannot get this to work.
I have the following test setup:
What happens is that the policy with the more recent date takes effect for every transaction starting from that date in every ledger. So the policy defined in
shared.beancount
will also apply to all transactions injan.beancount
.This is not affected by the include order or their dates in
main.beancount
.I assumed from the docs that I can specify policies in each file and they will be only evaluated within that file if I use
autobean.share.include
. Did I misunderstand this or am I using this wrong?If I don't use default or wildcard policies, but attach the a policy to every posting instead, everything works as expected.
The text was updated successfully, but these errors were encountered: