<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>440844</bug_id>
          
          <creation_ts>2021-08-10 17:55:27 +0000</creation_ts>
          <short_desc>It should be possible to assign more than one StatementKey to an account</short_desc>
          <delta_ts>2021-09-12 17:57:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmymoney</product>
          <component>importer</component>
          <version>5.1.2</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=428156</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Dawid Wróbel">me</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2052577</commentid>
    <comment_count>0</comment_count>
    <who name="Dawid Wróbel">me</who>
    <bug_when>2021-08-10 17:55:27 +0000</bug_when>
    <thetext>SUMMARY
When importing a statement, KMM checks if the account key, as provided by the importer, matches any account number or any account&apos;s StatementKey property. If none is matching, it then asks user to choose one by hand and sets the StatementKey value, so that in the future it can find the account automatically. 

However, the same account can be referenced by different IDs, depending for example on whether the statement was generated for a Checking Account or a Credit Card. Another use case is using different format, e.g. OFX and CSV.

STEPS TO REPRODUCE
1. Import a statement that references an account A formatted as A&apos;
2. Assign A&apos; to an existing account A
3. Import another statement that references account A formatted as A&quot;
4. Assign A&quot; to the same existing account A
5. Import another statement that references an account A formatted as A&apos;

OBSERVED RESULT
KMM will ask again to manually find the A&apos; on the list of account, despite having previously done so.

EXPECTED RESULT
KMM should remember both A&apos; and A&quot; as valid StatementKeys for the account A and not bother user anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2052578</commentid>
    <comment_count>1</comment_count>
    <who name="Dawid Wróbel">me</who>
    <bug_when>2021-08-10 17:57:45 +0000</bug_when>
    <thetext>Additionally, the previously stored account keys should be listed on account&apos;s properties and be editable.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>