-
Notifications
You must be signed in to change notification settings - Fork 539
Latest commodities #739
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
Latest commodities #739
Conversation
@@ -82,6 +82,7 @@ public void startElement(String uri, String localName, String qName, Attributes | |||
|
|||
@Override | |||
public void endDocument() throws SAXException { | |||
mCommoditiesDbAdapter.deleteAllRecords(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of this call? Aren't we always importing into a new book anyway? (which means a fresh database)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, an existing book that will have its database "upgraded" means that the table is already populated with commodities, so we need to delete the old ones and populate from the latest xml.
Thanks for the PR @pnemonic78
Cheers, |
Thanks for the PR @pnemonic78
Cheers, |
|
# Conflicts: # app/src/main/res/raw/iso_4217_currencies.xml
ready for approval :-) |
Just to note that I didn't forget this. I will merge it into develop for the release after 2.4.0 (currently in beta) |
fixes #731
Copied the latest currencies XML file from the GnuCash desktop version with correct IRR symbol.
This requires a re-population of the commodities database table.