<?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>444414</bug_id>
          
          <creation_ts>2021-10-26 07:43:05 +0000</creation_ts>
          <short_desc>Transaction notes are not imported from paypal account</short_desc>
          <delta_ts>2022-06-02 15:08:53 +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>onlinebanking</component>
          <version>5.1.2</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Ralf Habacker">ralf.habacker</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/office/kmymoney/commit/5b5aa00cdb4e4376056b2dddf7c4db932b0e091d</cf_commitlink>
          <cf_versionfixedin>5.1.3</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2072319</commentid>
    <comment_count>0</comment_count>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2021-10-26 07:43:05 +0000</bug_when>
    <thetext>SUMMARY
Sending or receiving money with Paypal allows you to enter a note describing the transaction. This note is not currently imported into kmymoney

STEPS TO REPRODUCE
1. download the portable kmymoney snapshot from https://kmymoney.org/snapshots.php.
2. unzip the archive, launch kmymoney, configure a Paypal account (see https://aquamaniac.de/rdm/projects/aqbanking/wiki/Paypal_einrichten or use the settings menu in kmymoney) and assign it to a kmymoney account.
3. make sure that there are transactions with notes in the Paypal account
4. update the assigned account

OBSERVED RESULT
The imported transactions do not contain the entered notes

EXPECTED RESULT
The imported transactions should contain the entered notes

SOFTWARE/OS VERSIONS
Windows: 10
KDE Frameworks Version: 5.65
Qt Version: 5.11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2072325</commentid>
    <comment_count>1</comment_count>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2021-10-26 08:00:13 +0000</bug_when>
    <thetext>Current versions of aqbanking do not provide the required attribute, therefore bugreport https://www.aquamaniac.de/rdm/issues/246 was submitted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2091724</commentid>
    <comment_count>2</comment_count>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2022-01-10 14:14:33 +0000</bug_when>
    <thetext>aqbanking 6.3.1 got support to fetch transactions notes from a paypal account.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2091725</commentid>
    <comment_count>3</comment_count>
      <attachid>145297</attachid>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2022-01-10 14:16:10 +0000</bug_when>
    <thetext>Created attachment 145297
Patch from 4.8 branch  to fetch transaction note from a paypal account

P</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2091726</commentid>
    <comment_count>4</comment_count>
      <attachid>145298</attachid>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2022-01-10 14:17:11 +0000</bug_when>
    <thetext>Created attachment 145298
Patch from 4.8 branch to update memos on present transactions</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2092162</commentid>
    <comment_count>5</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2022-01-11 17:09:56 +0000</bug_when>
    <thetext>I don&apos;t understand the patch &quot;to update memos on present transactions&quot;. If a transaction is a duplicate, it is already imported once. How could it change when imported a second time? That can&apos;t be. If this is meant only for paypal transactions imported with a prior version of AqBanking, I vote against it, because it might also affect other importers. If you want that, remove the transaction in the ledger and re-import.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2092445</commentid>
    <comment_count>6</comment_count>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2022-01-12 08:15:09 +0000</bug_when>
    <thetext>&gt; If an operation is a duplicate, it has already been imported once. How can it change if it is imported a second time? 

Before aqbanking 6.3.1, (paypal) transactions were imported without memo, although there might be a memo, i.e. Aqbanking now provides more data than before.

Since the duplicate check does not include the memo field, this change is not detected and therefore this commit checks for the detected duplicates if the memo field of the present transaction is empty and imports the memo field only in this case. This is effectively a one-time attribute update of the memo field.

&gt; If this is only for paypal transactions imported with a previous version of AqBanking, I vote against it because it could affect other importers as well.

This functionality can in principle be extended to all aqbanking sources, but requires that the aqbanking backend in question populates the memo field. If the memo field is not filled by aqbanking, nothing happens.

&gt; If you want to do this, remove the transaction in the general ledger and import it again.

That&apos;s what I did at first, but found out that if you have a large number of transactions, this is very time consuming as you have to manually find and delete all the transactions that don&apos;t have a memo in order to re-import those.

To give the user control over this process, an option could be added in the online settings of an account to explicitly enable this feature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2092506</commentid>
    <comment_count>7</comment_count>
    <who name="Thomas Baumgart">thb</who>
    <bug_when>2022-01-12 11:58:29 +0000</bug_when>
    <thetext>Git commit 74ba29e8c0a31a29bb48236f3b01b38968c58485 by Thomas Baumgart.
Committed on 11/01/2022 at 17:14.
Pushed by tbaumgart into branch &apos;master&apos;.

Include user supplied paypal note in memo field

M  +15   -3    kmymoney/plugins/kbanking/kbanking.cpp

https://invent.kde.org/office/kmymoney/commit/74ba29e8c0a31a29bb48236f3b01b38968c58485</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2093028</commentid>
    <comment_count>8</comment_count>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2022-01-13 11:42:58 +0000</bug_when>
    <thetext>In an ideal world, kmymoney could, at the next launch after an update that brings this feature, tell the user that there is now the possibility to apply memos to Paypal accounts and ask the user if this should be done once for all existing transactions. This would require skipping the transactions where the memo text is already included.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2128515</commentid>
    <comment_count>9</comment_count>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2022-06-02 15:08:53 +0000</bug_when>
    <thetext>Git commit 5b5aa00cdb4e4376056b2dddf7c4db932b0e091d by Ralf Habacker, on behalf of Thomas Baumgart.
Committed on 02/06/2022 at 15:04.
Pushed by habacker into branch &apos;5.1&apos;.

Include user supplied paypal note in memo field
FIXED-IN:5.1.3
(cherry picked from commit 74ba29e8c0a31a29bb48236f3b01b38968c58485)

M  +15   -3    kmymoney/plugins/kbanking/kbanking.cpp

https://invent.kde.org/office/kmymoney/commit/5b5aa00cdb4e4376056b2dddf7c4db932b0e091d</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>145297</attachid>
            <date>2022-01-10 14:16:10 +0000</date>
            <delta_ts>2022-01-10 14:16:10 +0000</delta_ts>
            <desc>Patch from 4.8 branch  to fetch transaction note from a paypal account</desc>
            <filename>0001-kbanking-append-content-of-memo-field-from-aqbanking.patch</filename>
            <type>text/plain</type>
            <size>1019</size>
            <attacher name="Ralf Habacker">ralf.habacker</attacher>
            
              <data encoding="base64">RnJvbSAyZTczZGJiOWU4ODY4YTA5Y2I2N2JjYmVhNjk1OTQ1ZmIzMDI0MTY3IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBSYWxmIEhhYmFja2VyIDxyYWxmLmhhYmFja2VyQGZyZWVuZXQu
ZGU+CkRhdGU6IFR1ZSwgMjYgT2N0IDIwMjEgMDE6MTc6MTUgKzAyMDAKU3ViamVjdDogW1BBVENI
IDEvM10ga2Jhbmtpbmc6IGFwcGVuZCBjb250ZW50IG9mIG1lbW8gZmllbGQgZnJvbSBhcWJhbmtp
bmcKIHRyYW5zYWN0aW9uIGlmIG5vdCBlbXB0eQoKLS0tCiBrbXltb25leS9wbHVnaW5zL2tiYW5r
aW5nL215bW9uZXliYW5raW5nLmNwcCB8IDEwICsrKysrKysrKysKIDEgZmlsZSBjaGFuZ2VkLCAx
MCBpbnNlcnRpb25zKCspCgpkaWZmIC0tZ2l0IGEva215bW9uZXkvcGx1Z2lucy9rYmFua2luZy9t
eW1vbmV5YmFua2luZy5jcHAgYi9rbXltb25leS9wbHVnaW5zL2tiYW5raW5nL215bW9uZXliYW5r
aW5nLmNwcAppbmRleCBlNDM3MjkzMDUuLjM2NzIwZDBiMSAxMDA2NDQKLS0tIGEva215bW9uZXkv
cGx1Z2lucy9rYmFua2luZy9teW1vbmV5YmFua2luZy5jcHAKKysrIGIva215bW9uZXkvcGx1Z2lu
cy9rYmFua2luZy9teW1vbmV5YmFua2luZy5jcHAKQEAgLTEyMDcsNiArMTIwNywxNiBAQCB2b2lk
IEtNeU1vbmV5QmFua2luZzo6X3hhVG9TdGF0ZW1lbnQoTXlNb25leVN0YXRlbWVudCAma3MsCiAg
IH0KICNlbmRpZgogCisgIHAgPSBBQl9UcmFuc2FjdGlvbl9HZXRNZW1vKHQpOworICBpZiAocCkg
eworICAgIFFTdHJpbmcgdG1wTWVtbzsKKworICAgIHMgKz0gUVN0cmluZzo6ZnJvbVV0ZjgocCku
dHJpbW1lZCgpOworICAgIHRtcE1lbW89UVN0cmluZzo6ZnJvbVV0ZjgocCkudHJpbW1lZCgpOwor
ICAgIHRtcE1lbW8ucmVwbGFjZSgnXG4nLCAnICcpOworICAgIG1lbW8uYXBwZW5kKHRtcE1lbW8p
OworICB9CisKICAga3QubV9zdHJNZW1vID0gbWVtbzsKIAogICAvLyBjYWxjdWxhdGUgdGhlIGhh
c2ggY29kZSBhbmQgc3RhcnQgd2l0aCB0aGUgcGF5ZWUgaW5mbwotLSAKMi4yNi4yCgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>145298</attachid>
            <date>2022-01-10 14:17:11 +0000</date>
            <delta_ts>2022-01-10 14:17:11 +0000</delta_ts>
            <desc>Patch from 4.8 branch to update memos on present transactions</desc>
            <filename>0002-On-importing-from-online-account-update-memo-if-not-.patch</filename>
            <type>text/plain</type>
            <size>3259</size>
            <attacher name="Ralf Habacker">ralf.habacker</attacher>
            
              <data encoding="base64">RnJvbSAzZjNjNmQxNzE1N2UwZGEwYjNkODYzODUxYzgxNmQxNTIzZTRlMDU2IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBSYWxmIEhhYmFja2VyIDxyYWxmLmhhYmFja2VyQGZyZWVuZXQu
ZGU+CkRhdGU6IFRodSwgMjggT2N0IDIwMjEgMDE6NTM6MzggKzAyMDAKU3ViamVjdDogW1BBVENI
IDIvM10gT24gaW1wb3J0aW5nIGZyb20gb25saW5lIGFjY291bnQgdXBkYXRlIG1lbW8gaWYgbm90
CiBwcmVzZW50IGluIGR1cGxpY2F0ZWQgdHJhbnNhY3Rpb25zCgotLS0KIGtteW1vbmV5L2NvbnZl
cnRlci9teW1vbmV5c3RhdGVtZW50cmVhZGVyLmNwcCB8IDE5ICsrKysrKysrKysrKysrKysrKy0K
IDEgZmlsZSBjaGFuZ2VkLCAxOCBpbnNlcnRpb25zKCspLCAxIGRlbGV0aW9uKC0pCgpkaWZmIC0t
Z2l0IGEva215bW9uZXkvY29udmVydGVyL215bW9uZXlzdGF0ZW1lbnRyZWFkZXIuY3BwIGIva215
bW9uZXkvY29udmVydGVyL215bW9uZXlzdGF0ZW1lbnRyZWFkZXIuY3BwCmluZGV4IGI5NDI0MDZl
Zi4uODRjNjdlMDMxIDEwMDY0NAotLS0gYS9rbXltb25leS9jb252ZXJ0ZXIvbXltb25leXN0YXRl
bWVudHJlYWRlci5jcHAKKysrIGIva215bW9uZXkvY29udmVydGVyL215bW9uZXlzdGF0ZW1lbnRy
ZWFkZXIuY3BwCkBAIC03NCw2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3BsaXRzKClbMF0ubWVtbygpKSk7CisgICAg
ICAgICAgfQorICAgICAgICAgIGQtPnRyYW5zYWN0aW9uc0R1cGxpY2F0ZSsrOworICAgICAgfQog
ICAgICAgcURlYnVnKCJEZXRlY3RlZCB0cmFuc2FjdGlvbiBkdXBsaWNhdGUiKTsKICAgICAgIGJy
ZWFrOwogICAgIGNhc2UgVHJhbnNhY3Rpb25NYXRjaEZpbmRlcjo6TWF0Y2hJbXByZWNpc2U6Ci0t
IAoyLjI2LjIKCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>