Bug 429237 - xea2kmt fails to parse gnucash templates
Summary: xea2kmt fails to parse gnucash templates
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.0
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-17 12:15 UTC by Ralf Habacker
Modified: 2020-11-18 09:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.5,5.1.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2020-11-17 12:15:17 UTC
xea2kmt is a command line tool located in the kmymoney sources to convert gnucash account template files to kmymoney template files. With the version from the 5.1 branch large parts of the template files cannot be converted.

STEPS TO REPRODUCE
1. checkout gnucash sources from git@github.com:Gnucash/gnucash.git
1. checkout kmymoney source from git@invent.kde.org:office/kmymoney.git
2. build kmymoney
3. from build dir run 
    bin/xea2kmt --with-tax-related --no-level1-names --in-dir <gnucash-source-dir>/data/accounts --out-dir <kmymoney-source-dir>/kmymoney/templates
4. inspect the generated template files

OBSERVED RESULT
The generated files only include very few accounts

EXPECTED RESULT
The generated files should only show very few changes as shown at https://invent.kde.org/office/kmymoney/-/commit/48b9f54d104a5c65a59b28fc4a3a4ec21c051eda

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Leap_15.1
KDE Frameworks Version: 5.55
Qt Version: 5.9.7
Comment 1 Bug Janitor Service 2020-11-17 12:57:33 UTC
A possibly relevant merge request was started @ https://invent.kde.org/office/kmymoney/-/merge_requests/38
Comment 2 Dawid Wróbel 2020-11-17 14:26:37 UTC
Would it maybe be worth adding these instructions to invent wiki?
Comment 3 Ralf Habacker 2020-11-17 14:47:59 UTC
(In reply to Dawid Wróbel from comment #2)
> Would it maybe be worth adding these instructions to invent wiki?

You are refering to something like "3rdparty data import" ?
Comment 4 Dawid Wróbel 2020-11-17 15:09:50 UTC
I am thinking rather about some sort of release preparation steps, which this could be one of them, since I think it would be worth doing this regularly.
Comment 5 Ralf Habacker 2020-11-18 08:48:45 UTC
Git commit eb3998b3f0be79cab6811112d20b95cf75a33eed by Ralf Habacker.
Committed on 18/11/2020 at 08:48.
Pushed by habacker into branch '5.1'.

tools/xea2kmt: Fix parsing gnucash account templates
FIXED-IN:5.1.1

M  +1    -0    tools/xea2kmt.cpp

https://invent.kde.org/office/kmymoney/commit/eb3998b3f0be79cab6811112d20b95cf75a33eed
Comment 6 Ralf Habacker 2020-11-18 09:31:36 UTC
Git commit e17efc7c254ecfa5185b017fb3122459cc3a788c by Ralf Habacker.
Committed on 18/11/2020 at 09:25.
Pushed by habacker into branch 'master'.

tools/xea2kmt: Fix parsing gnucash account templates
(cherry picked from commit eb3998b3f0be79cab6811112d20b95cf75a33eed)

M  +1    -0    tools/xea2kmt.cpp

https://invent.kde.org/office/kmymoney/commit/e17efc7c254ecfa5185b017fb3122459cc3a788c