Skip to content

Allow denominators up to 1000000 in QIF export#775

Merged
codinguser merged 1 commit intocodinguser:developfrom
gregwalters:develop
May 2, 2018
Merged

Allow denominators up to 1000000 in QIF export#775
codinguser merged 1 commit intocodinguser:developfrom
gregwalters:develop

Conversation

@gregwalters
Copy link
Copy Markdown

@gregwalters gregwalters commented Apr 25, 2018

Fixes #771

I was able to reproduce this issue using the current Play store version:

04-25 12:54:36.439 7645 8914 E ExportAsyncTask: Error exporting: Failed to generate export with parameters: Export all transactions created since 1970-01-01 00:00:00.000 UTC as QIF to URI (content:/ /com.android.externalstorage.documents/document/primary%3ASync%2F20180425_125428_gnucash_export_finances.gnucash.qif.zip) - split quantity has illegal denominator: 1000000

04-25 12:54:36.439 7645 8914 W System.err: org.gnucash.android.export.Exporter$ExporterException: Failed to generate export with parameters: Export all transactions created since 1970-01-01 00:00:00 .000 UTC as QIF to URI (content://com.android.externalstorage.documents/document/primary%3ASync%2F20180425_125428_gnucash_export_finances.gnucash.qif.zip) - split quantity has illegal denominator: 100 0000

I fixed the switch statement mentioned in #771 by adding a couple cases to it for higher precision numbers and installed the dev version to my phone. Using the dev version I'm able to successfully export transactions and import to gnucash 3.0 on mac.

I've ran gradlew test and all tests pass:

BUILD SUCCESSFUL in 4m 1s
140 actionable tasks: 62 executed, 78 up-to-date

@gregwalters gregwalters changed the title Fixing error in #771 Allow denominators up to 1000000 in QIF export Apr 25, 2018
@codinguser codinguser merged commit a55ec29 into codinguser:develop May 2, 2018
@codinguser
Copy link
Copy Markdown
Owner

Thanks @gregwalters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants