CSV export does not consider full hierarchy of categories
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Financisto |
Fix Released
|
Medium
|
tlnd |
Bug Description
In case of hierarchical categories, only the actual category and its parent are exported, instead of the full hierarchy of the categories. Consider an entry with a multi-level category like expenses/car/gas. The CSV export has a filed for 'category' and one for 'parent'. In this example the following values are exported: category=gas, parent=car. The information that 'car' is a subcategory of 'expenses' is lost.
In my opinion, there should only be one field that reflects the full hierarchy, like category=
However, the current structure of the exported CSV file changes when discarding the parent field. To avoid this, I'd suggest the following compromise: Export the actual category in the field category but consider the hierarchy of the categories in the parent field. Thus the upper examples results in: category=gas, parent=
Would it be OK to change the structure of the CSV file or should it be preserved. I'd appreciate any comments on this and would do the coding.
Related branches
- Denis Solonenko: Approve
-
Diff: 344 lines (+136/-40)8 files modifiedassets/credits.htm (+1/-1)
res/layout/csv_export.xml (+38/-25)
res/values-de/strings.xml (+5/-3)
res/values/common.xml (+5/-0)
res/values/strings.xml (+2/-0)
src/ru/orangesoftware/financisto/activity/CsvExportActivity.java (+55/-2)
src/ru/orangesoftware/financisto/activity/MainActivity.java (+12/-5)
src/ru/orangesoftware/financisto/export/CSVExport.java (+18/-4)
Changed in financisto: | |
status: | Confirmed → Fix Released |
Great catch! I suggest to follow your proposal to put full category path into 'parent' and the leaf into 'category'.