-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
simpler conversion account with --infer-equity #2262
Conversation
This drops the :COMM1-COMM2:COMMN subaccounts, so there's just a single conversion account, equity:conversion by default. This reduces noise, and removes complications for `check accounts` and beancount export.
I don't have a strong personal opinion on whether these currency tags should be included, but originally added them because they were requested and the person who requested presented a sufficiently convincing case for why they were beneficial. I can't remember exactly who, and have looked around github for a record. I think it may have been @the-solipsist. Perhaps the conversation occurred in the #hledger chat. It would be good to dig up the reasons for this so we can weigh them against the benefits of simplification. |
The discussions happened in December 2021: I prefer This technique works across all PTA software, regardless of whether they have functions like I don't think "noise" is a good enough reason to get rid of this. Automated conversion to Beancount is a better reason. Beancount requires all account names to start with a capital Latin letter:
So if a commodity starts with a number or a symbol (which none of my commodities do), then a seamless conversion won't work. I'd suggest flagging this to users and allowing them to just use Having said that, I won't personally be affected by this change. |
Thank you both! (And chatters.) I see that the commodity pair subaccount, at least, that --infer-equity generates, can be quite useful. So I'm going to withdraw this PR. What then should change about --infer-equity's account names, if anything ? I had two followup questions in chat:
sol agreed with this, though he likes to keep one commodity per leaf account (as I do, usually).
Currently,
This is complicated, eg for sol uses "equity:trading" (plus a bunch of custom subaccounts), but didn't feel strongly. I am currently re-reading the excellent Tutorial on multiple currency accounting (Selinger 2005); he calls them "currency trading accounts". If starting today I would probably call it equity:trade. But equity:conversion is also fine and it's probably not worth changing unless other related things are changing too. If you care, let me know. What to do for What to do for |
Closing this in favour of #2267. |
This implements today's proposal on
mail list& chat:[Actually, it never reached the mail list; never mind.]