codinguser/gnucash-android

Error exporting CSVT file, division by zero

d687r02j8g opened this issue · 3 comments

Steps to reproduce the behaviour

  1. Export > transactions since all time > press export

Expected behaviour

Transactions get exported to desired format

Actual behaviour

Get a message saying

Error exporting CSVT file
Division by zero

Software specifications

  • GnuCash Android version: 2.4.1 beta 2
  • System Android version: Android 10
  • Device type: OnePlus 6t

It may be related to

writer.writeEndToken(split.getQuantity().divide(split.getValue()).toLocaleString());

This issue doesn't occur when you export to qif or XML (with XML there is another error as per #846 (comment))

Error still actual on v2.4.1-beta3

Error still actual on v2.4.1-beta3

I get this error too in the same version. My device is a OnePlus 7T running Android 10 (Oxygen OS 10.0.11.HD65AA).