Bug 249005 - A button which removes all currently unused payees
Summary: A button which removes all currently unused payees
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-25 16:29 UTC by Mike Wolfe
Modified: 2010-11-21 16:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Wolfe 2010-08-25 16:29:32 UTC
Version:           unspecified (using KDE 4.4.5) 
OS:                Linux

Payee Cleaner: A button / menu item accessible from the Payees page which removes all currently unused payees. This is useful for the removal of payees that are added automatically by OFX direct download, like MARATHON FUEL AN0987837ROCKFORD, which I always rename to something more readable.

Reproducible: Didn't try
Comment 1 Alvaro Soliverez 2010-08-26 01:41:15 UTC
Thomas, do you think the list of unused payees could be provided by the engine?
Something similar to:
select payeeId from payees where payeeId not in (select distinct payeeId from transactions)
Comment 2 Thomas Baumgart 2010-08-26 08:44:51 UTC
Hmm, it's not only the transactions. The reference is also in scheduled transactions and reports (maybe elsewhere).

One could get the list of all payees and then iterate over it while using the return code of

  MyMoneyFile::instance()->isReferenced(payee)

to check if it is still in use or not. http://kmymoney2.sourceforge.net/kmymoney2-api/html/classMyMoneyFile.html#422700dc3c2bf3df54819ee32c968f9a has the details.
Comment 3 Alvaro Soliverez 2010-08-29 04:33:34 UTC
Ok. The feature I will add is a combobox to filter by used or unused payees. By default, it will show all payees.

From there, you can select all unused payees and delete them quickly.
Adding a specific button only to remove unused payee is an overkill, IMHO. I prefer to add the filter, and with 2 clicks you can remove any one you want.
Comment 4 Alvaro Soliverez 2010-08-29 05:42:25 UTC
SVN commit 1169309 by asoliverez:

Added filter to payee view to search for unused payees

BUG:249005

 M  +25 -6     kpayeesview.cpp  
 M  +9 -0      kpayeesview.h  
 M  +9 -1      kpayeesviewdecl.ui  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1169309
Comment 5 Brendan 2010-08-29 06:20:07 UTC
I just compile from SVN and deleted all of my unused Payees. It seems to
have worked perfectly.

Thanks,

----
Brendan


On Sat, Aug 28, 2010 at 8:42 PM, Alvaro Soliverez <asoliverez@kde.org>wrote:

> https://bugs.kde.org/show_bug.cgi?id=249005
>
>
> Alvaro Soliverez <asoliverez@kde.org> changed:
>
>           What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>             Status|UNCONFIRMED                 |RESOLVED
>         Resolution|                            |FIXED
>
>
>
>
> --- Comment #4 from Alvaro Soliverez <asoliverez kde org>  2010-08-29
> 05:42:25 ---
> SVN commit 1169309 by asoliverez:
>
> Added filter to payee view to search for unused payees
>
> BUG:249005
>
>  M  +25 -6     kpayeesview.cpp
>  M  +9 -0      kpayeesview.h
>  M  +9 -1      kpayeesviewdecl.ui
>
>
> WebSVN link: http://websvn.kde.org/?view=rev&revision=1169309
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are the assignee for the bug.
> _______________________________________________
> KMyMoney-devel mailing list
> KMyMoney-devel@kde.org
> https://mail.kde.org/mailman/listinfo/kmymoney-devel
>
Comment 6 Mike Wolfe 2010-08-30 05:46:07 UTC
Works great for me, thanks!
Comment 7 bubuche.pub 2010-11-21 11:51:59 UTC
Hello,

Is this fix supposed to be in 4.5.1?
I do not see any filter in the Payees view.

Thanks,
Gaëtan
Comment 8 Alvaro Soliverez 2010-11-21 16:23:08 UTC
It is not in 4.5.1, because it is a new feature, and 4.5.1 is a bugfix release.