-
Notifications
You must be signed in to change notification settings - Fork 75
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
Where/How do I add this kvp for factories.create_stock_accounts #207
Comments
I would say |
Thank you for the reply. Yes, But, it throws off
which I don't understand. When this first happened, because I thought I might be doing it wrong, I started looking at other options. Now that you've guided me back to the approach, I suspect the above error is the real issue? Again, I appreciate your help. Being able to process the import of investment transaction is my last major hurdle to get my app working. |
Hi @sdementen, Do you have any thoughts on the above error? Thanks. |
You can adapt the dictionnary
https://github.com/sdementen/piecash/blob/master/piecash/kvp.py#L327
…On Mon, 10 Apr 2023, 15:13 Tim Rohrer, ***@***.***> wrote:
Hi @sdementen <https://github.com/sdementen>,
Do you have any thoughts on the above error?
Thanks.
—
Reply to this email directly, view it on GitHub
<#207 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ6S5RZEULCHVGWTUPKIP3XAP2OFANCNFSM6AAAAAAWN5BZXE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I create a commodity:
But when I try to use it in the subject factory
print(factories.create_stock_accounts(xyz, brokerage, income))
I get:
piecash._common.GnucashException: The commodity 'XYZ' has no information about its base currency. Add a kvp item named 'quoted_currency' with the mnemonic of the currency to have proper behavior
I've tried various ways to add the kvp, but is isn't clear where or how I should do it?
The text was updated successfully, but these errors were encountered: