<?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>418334</bug_id>
          
          <creation_ts>2020-02-29 19:17:34 +0000</creation_ts>
          <short_desc>Request: Use latest values to fill in transaction</short_desc>
          <delta_ts>2020-06-05 04:09: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>general</component>
          <version>5.0.7</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</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="Michael Eager">eager</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          <cc>me</cc>
          
          <cf_commitlink>https://commits.kde.org/kmymoney/029de47016d17a9d6d01a6a79f4a92bf8e7af97a</cf_commitlink>
          <cf_versionfixedin>5.1.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1913803</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Eager">eager</who>
    <bug_when>2020-02-29 19:17:34 +0000</bug_when>
    <thetext>SUMMARY
When entering a new transaction, entering the Receiver name brings up a list of past Receivers with similar names.  If one is selected, the new transaction is initialized with values for category, price, and maybe others, from a memorized past transaction.  This makes it easy to enter a repeating transaction.

The data used to initialize values appears to come from the oldest transaction to the Receiver.  When there are changes to a repeated transaction, say an increase in payment on a repeated bill, this means that this field needs to be updated each time a new transaction for  is entered.  It would be better and more user-friendly, to use information from the most recent transaction to a payer.

STEPS TO REPRODUCE
1. Open a ledger which has existing entries.
2. Add a new transaction to a past Receiver, changing one of the fields.
3. Add a new transaction to the same Receiver.

OBSERVED RESULT
Oldest transaction is used to set defaults in a memorized transaction.

DESIRED RESULT
Newest transaction is used to set defaults in a memorized transaction.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 31
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913843</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2020-02-29 23:38:17 +0000</bug_when>
    <thetext>What is the setting of your autofill option? Can you check if the problem persits with version 5.0.8? Use the AppImage version if you don&apos;t have access to a newer version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913847</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Eager">eager</who>
    <bug_when>2020-03-01 00:37:38 +0000</bug_when>
    <thetext>Autofill: &quot;With previously most often used transaction for the payee&quot;.

Best case, this means that a different amount will have to be entered overriding the autofilled amount the same number of times as the previous amount.  But this doesn&apos;t seem to be happening.  If I have a bill or payment which I enter, it is the first value which is used to prefill the amount field, not the value from the subsequent several transactions.

I&apos;ll try 5.0.8, but it may be a couple days.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916296</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Eager">eager</who>
    <bug_when>2020-03-14 23:21:41 +0000</bug_when>
    <thetext>I can verify that this happens with the 5.0.8 Appimage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1917036</commentid>
    <comment_count>4</comment_count>
    <who name="Thomas Baumgart">thb</who>
    <bug_when>2020-03-19 20:15:34 +0000</bug_when>
    <thetext>Git commit 029de47016d17a9d6d01a6a79f4a92bf8e7af97a by Thomas Baumgart.
Committed on 19/03/2020 at 20:15.
Pushed by tbaumgart into branch &apos;5.0&apos;.

Fix autofill to use latest transaction not earliest

The logic to auto fill a transaction with data from a previous
transaction to the same payee was using the first transaction when the
option &quot;With previously most often used transaction for the payee&quot; was
selected.

This change will instruct KMyMoney to use the latest transaction
instead.
FIXED-IN: 5.0.9

M  +1    -0    kmymoney/dialogs/stdtransactioneditor.cpp

https://commits.kde.org/kmymoney/029de47016d17a9d6d01a6a79f4a92bf8e7af97a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>