Summary: | Transaction templates with formulae | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | csioulis <csioulis> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | REPORTED --- | ||
Severity: | wishlist | CC: | account-kde, csioulis, george, onet.cristian |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
csioulis
2010-08-19 19:34:38 UTC
One of the variables could be the balance of an account. We received the following via e-mail: I'd like to propose a small functional improvement: in scheduled transactions, allow the user to use data from accounts to fill the amount field. *_Use case_*: _Introduction_: In my country, bank-issued credit cards are a kind of combination between credit card and a debit card in US terms. Every expenditure by the user is going towards the "debt" of the card. At some set point in the month all off the debt is covered (returns to zero) by transferring the debt amount from checking account to the credit card account. The user cannot change the amount being transferred - all debt of the card has to be zeroed. So, once a transaction has been made the money will be transferred from checking at a given date. KMyMoney is the only application (from those I tested) that asks to create a scheduled transaction at the creation of a credit card account (- big thumbs-up for that!). _Desired functionality_: In scheduled transaction creation the user should be able to "say" that he\she want the amount to be "all of the debt in a specific account" (for credit card creation wizard, the only account available will be the account that is being created). _Suggested UI_: Expand the 'Amount' field to be two fields with radio button for each field. Selection of a radio button makes the associated field enabled. Field 1: the regular numeric text box that is present today. Field 2: editable combo box to select an account (for credit card creation wizard, it will be a text block that says "All of the amount in this account"). _Benefits_: Right now, the scheduled transaction is just a necessary burden that the user has to complete once a month for each card: 1. See what is the debt of the card. 2. Fill that amount in the ledger. Totally automatic with no decision to make. When you do this for 10 cards it could get quite annoying. This suggestion will allow to have the transaction fully automated and remove the burden from the user, making KMyMoney even more awesome. Credit Card management is just a sub-case of the template's (with formulae) usability. For formulaes we need to use two kinds of variables (and operations between them): A. Constant variables, which should be defined by the user in a table with a pair of fields (Name vs value) such as commission or tax percentages, and B. Computed (from kmm data) variables, given from some predefined functions (which should accept argues!), such as -Balance(account/category, date/period), -Sum(acount/category,[payee,] date/period), and maybe more ... All these seem to be very complicated to be done either from the view of the appropriate GUI (how do you write operations combined with such functions/variables with arguments in a "amount" field???) also for the implementation in code! The BEST way to accomplish the creation of convenient "user defined variables" (to be used in formulaes) with pretty GUI and with simple code reformation, is to use a sub-part of the existent Report's Wizard constraining it in such way that it should create reports/queries that return only one value as a result! Imagine that the user would be able to define his own variables/queries/reports (with the name of his like, i.e. "My X-Bank-Card Balance Last month" -maybe accompanied with a shortcut of one word to be used in formulaes as variable) which would be defined through a similar (a reduced part) of the current Report Wizard where he could choose/filter accounts, categories, payees, dates/periods, even text filters, to take the exact result for his variable! For example, we should be able to create through this wizard very complicated but only "one-value-return reports"(=variables) such as "Sum of sales of categories X,Y for the payees C,D &E for last year where transaction amount > 500 and in memo exist the name John" named as "John_lastyear_sales" and then we could simply write in the "computed field" of the template a simple expression such as [John_lastyear_sales * Sales_Commission_Const] to automatically compute the consequential commission for John! (I always ask for excuse me for my bad English!) *** Bug 343801 has been marked as a duplicate of this bug. *** This is an awesome request with many parts. So awesome that I fear it will never be complete. I do encourage who ever picks this up to "nibble" at it a feature at a time. "Good code is not created, it evolves." George Anzinger (In reply to george from comment #4) > This is an awesome request with many parts. So awesome that I fear it will > never be complete. I do encourage who ever picks this up to "nibble" at it > a feature at a time. > > "Good code is not created, it evolves." > George Anzinger I agree with that, nevertheless it's good to have the bigger picture in front while thinking about developing something even if if it will be done in small steps. I +1 the Credit Card management part in a first step. Having some kind of formulaes within the scheduled transactions would be great. |