htmfilho / minimily

Use Minimily to organize your minimalist life.
https://www.hildeberto.com/minimily/
GNU General Public License v3.0
8 stars 0 forks source link

Define an optional limit of credit or debit of a transaction category #21

Open htmfilho opened 5 years ago

htmfilho commented 5 years ago

The limit of credit of a category is the minimal amount of money its transactions can register in a given period of time. The limit of debit is the maximum amount of money its transactions can register in a given period of time. They are stored in the same field, but the meaning changes according to the type of category (debit or credit).

The limit of the category is compared with the sum of its registered transactions:

Changes of the limit amount are conserved historically according to its period of time. For example, if the limit is annual and it was defined for 2018 then any change for 2019 are saved as a separated record and it doesn't replace the value defined for 2018, preserving it indefinitely. If the limit didn't change from a period to another, then the most recent limit is considered.

A different limit can be defined per currency in use. For example, if all accounts are configured in Canadian dollars only, then the limits can only be defined in Canadian dollars. If at least one account is configured in a different currency, like American dollars, then the limits can be defined for Canadian dollars and American dollars separately.

keniasousa commented 5 years ago

For the part that says it is in the same field: for the TFSA, I can state a limit credit because I will deposit a minimum of 200 per month; but I can also state a limit debit because I can extract a maximum of 5000 per year , example in the year we go to Brazil and another small trip. I think we need two fields then.

Sent from my iPhone

On 15 Jan 2019, at 14:01, Hildeberto Mendonça notifications@github.com wrote:

Assigned #21 to @keniasousa.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or mute the thread.

htmfilho commented 5 years ago

How Minimily would address this case:

keniasousa commented 5 years ago

To complement, 5000 is a limit of debit for transactions of type “transportation” per year.

We need an example for limit of credit.

htmfilho commented 5 years ago

Take a pay cheque, for example. In a steady job, we know how much we earn every month. That's the minimal limit. Anything else is extra.

If your life cost is a minimal of 3000 per month, then consider that the sum of the limits of all your incomes should be greater than or equal to 3000, otherwise it won't be possible to pay the bills.

Therefore, if the sum of all income transactions doesn't cross the minimal limit, then a red flag should be raised.