-
Notifications
You must be signed in to change notification settings - Fork 3
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
commodities report parameter #8
Comments
Have a look at the file https://github.com/sdementen/gnucash-utilities/blob/develop/piecash_utilities/report/options.py where report options are defined. |
You can also look at the section The Options-Generator in https://wiki.gnucash.org/wiki/Custom_Reports for the options to use |
Yep, I saw the options.py earlier. Thanks for the confirmation that a new type needs to be added. Great hint! There is a A reference for how to use the option in Scheme (link), line 401. |
:'( Reading Scheme code makes me wanna cry. |
Below is the relevant code. Now I just need to learn more about Scheme and see what exactly needs to be output from Python.
|
Oh, didn't notice this one before. Could be a better option. It seems more concrete and exactly what I'm after. |
It is a bit sad that it takes less time to write the full portfolio balance report in Python than to figure out how to pass a list of securities to a report. :S |
For (what is to become) the security analysis report (current file), there is a need for the user to select a commodity (stock/fund) value in the parameters.
Is there a way to display the commodities in the report parameters and automatically limit the selection to available commodities (securities)?
Example: in the investment.gnucash database, the user should be able to see and select VEUR fund from the list of available commodities.
I saw in GnuCash reports the account selector that displays all the accounts. I'd hope for a similar selector which would apply only to commodities. This would be similar (or same) as the price update window.
If there is no such option available, would it be possible to fill a dropdown menu with the commodities retrieved via piecash?
Any suggestions?
The text was updated successfully, but these errors were encountered: