-
-
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
CSV output if using more than 1 currency not very useful #238
Comments
Could you paste an example or two ? I made such graphs not too long ago, pasting balance csv output into a spreadsheet. I probably used (You can also see this graph in hledger-web's register view). |
Closing, reopen with more details if needed. |
I came here from Google and I'm not sure if I should open another issue for this.
I'd prefer columns "amount", "currency" separately, or something like that. |
Hi @MatthiasKauer, I guess continuing on this issue is good. Can you come up with a specification for how we should handle multi-commodity balances, which can arise with the register command ? |
I don't have a good idea for the multi-currency situation right now. There could be several running totals, I suppose. I am not sure if that's what I would expect, however. If time permits I should run into that issue in practice within this month. Let's see. |
@simonmichael For a change that won't break many existing hledger csv importers I would suggest keeping the If you are adding new columns to the csv output it would be also be very nice to add a @MarkusTeufelberger , @MatthiasKauer If you install r-ledger (disclaimer an R package I wrote) it might be able to give you your desired csv output for your hledger file:
|
Nice @trevorld. I'd welcome pull requests adding mark, payee, and separated amount/commodity columns (but I think we should probably keep the combined commodity & amount column as well). The other columns might be useful later, not sure. As for the posting amount being a multi-commodity amount, it's currently not possible but @ag-eitilt is working on changing that, which will complicate all our lives.. #934 |
I agree that the additional market value and historical cost columns my R package produces should be out of scope for the csv output of |
Even though #934 would allow multiple-commodity amounts in a single line for |
@trevorld It's already doing that with the terminal output, though I the CSV output still has them combined (comma-separated within the quoted string, like the "total" column). I can probably change that in the PR if y'all agree it would be best, though it might take a bit for me to get the time. |
@ag-eitilt Not putting those "separate-currency" transactions as separate lines in the CSV output (even after "conversion" to the same currency) will break the current CSV import of In particular it isn't clear to me how I'd ever be able to accurately split such a row's market value and historical cost between its implicit "sub-transactions" even if I go through all the toil of splitting the original amount into different commodities as separate lines in the "spreadsheet". However I suspect the number of users who will mix commodities in a single line to be a really small fraction of total hledger users so probably not a big deal if their hledger files aren't supported by my (or other people's) |
Issues with how to encode the various levels of accounts aside, there are all kinds of spaces, newlines etc. when querying for a CSV formatted balance sheet.
Also I'd like to have "currency" and "amount" as seperate filed, it is not easily possible to add the strings "5.00 USD + 5.00 USD" in Excel...
Thanks for the feature though, I hope to be able to use it in the future to be one day draw a line graph of my daily net worth - this is a step in this direction.
The text was updated successfully, but these errors were encountered: