https://bugs.kde.org/show_bug.cgi?id=369852

            Bug ID: 369852
           Summary: xea2kmt does not import account flags
           Product: kmymoney4
           Version: 4.8.0
          Platform: Other
                OS: All
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: kmymoney-de...@kde.org
          Reporter: ralf.habac...@freenet.de

gnucash template files from which kmymoney template files are currently
generated provide account flags (from
https://github.com/Gnucash/gnucash/blob/master/accounts/de_DE/acctchrt_skr03.gnucash-xea)
for example: 
   <act:slots>
      <slot>
    <slot:key>placeholder</slot:key>
        <slot:value type="string">true</slot:value>
      </slot>
      <slot>
    <slot:key>tax-related</slot:key>
        <slot:value type="integer">1</slot:value>
      </slot>
</act:slots>

A collected list of keywords follows: 
<slot:key>account-id</slot:key>
<slot:key>bank-code</slot:key>
<slot:key>code</slot:key>
<slot:key>color</slot:key>
<slot:key>country-code</slot:key>
<slot:key>hbci</slot:key>
<slot:key>hidden</slot:key>
<slot:key>last-num</slot:key>
<slot:key>notes</slot:key>
<slot:key>placeholder</slot:key>
<slot:key>reconcile-info</slot:key>
<slot:key>tax-related</slot:key>
<slot:key>tax-US</slot:key>

While some flags may be unrelated, other may be for interest like notes,
tax-related, placeholder also for kmymoney.

xea2kmt, which is used to import those templates into kmymoney template file
format currently does not import those flags and should be extended to support
this. 

KMymoney template file format provides a tag named <flag> to specify account
options
(https://github.com/KDE/kmymoney/blob/master/kmymoney/templates/kmt.dtd) in the
form 

<account type="9" name="account name">
    <flag name="aname">avalue></flag>
</account>

or 

<account type="9" name="account name">
    <flag name="aname" />
</account>

which could be used to map gnucash flags to kmymoney flags. 


Reproducible: Always

Steps to Reproduce:
1.  run xea2kmt on the mentioned gnucash account template file


Actual Results:  
The KMymoney template file does not include any of the mentioned flags.


Expected Results:  
The KMymoney template file should include the mentioned flags.

KMymoney source code shows that currently the 'Tax' flag is import from an
account template, but is not specified in any account template.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to