question about "account_rounding"

150 views
Skip to first unread message

llpa...@gmail.com

unread,
Oct 25, 2018, 6:35:30 PM10/25/18
to Beancount
The way I understand the documentation, a test.beancount file with content:

plugin "beancount.plugins.auto_accounts"
option
"account_rounding" "Equity:Rounding-Errors"
option
"inferred_tolerance_default" "USD:0.01"
2018-01-01 * "buy one apple"
 
Assets:Account:APPLE 1 APPLE {1.0 USD}
 
Assets:Account:Cash -0.99 USD


Should translate by "bean-query test.beancount print" to:

plugin "beancount.plugins.auto_accounts"
option
"account_rounding" "Equity:Rounding-Errors"
option
"inferred_tolerance_default" "USD:0.01"
2018-01-01 * "buy one apple"
 
Assets:Account:APPLE 1 APPLE {1.0 USD}
 
Assets:Account:Cash -0.99 USD
 
Equity:Rounding-Errors -0.01 USD

However, it doesn't work. What am I missing?

Martin Blais

unread,
Oct 25, 2018, 10:25:48 PM10/25/18
to bean...@googlegroups.com
A couple of things:

1.
You have to specify the subaccount  name only:

2.
About the feature: it looks like I must have stripped it accidentally when removing the old version of the booking code.
Surprised it's not coming up before your reporting of it because I know some people are using it.
I'm not using the feature myself, and somehow I didn't put a unit test for it (beyond that of Ledger conversion, which is the context in which it came about).
They must be using it through its hardcoded conversion to Ledger (which requires it):

Follow this ticket:




--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/d3de9a98-0a7f-44a0-9257-2724a6fc1516%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jonathan Salles

unread,
Nov 28, 2018, 8:28:23 PM11/28/18
to Beancount
I am also finally working on entering my mutual funds, and finding out the numbers from my mutual fund don't add up and cause "Transaction does not Balance" errors.  I found the Saving Rounding Error entry in the Precision and Tolerances docs, and thought the automatically adding the makeup posting was a neat feature.  Aside from enabling the feature with "option "account_rounding" "Equity:RoundingError"", I didn't see how to "automatically add" the posting. I didn't find the docs where llpa (name on post above) mentions the auto_accounts plugin needs to be added, and bean-query adds the postings. I did find another posting here Beancount Updates - 2015-12-13) that mentions the "Equity:" does not need to be used. I look forward to trying out the featuer when it is added back in.

Jonathan
Reply all
Reply to author
Forward
0 new messages