Open htmfilho opened 5 years ago
We have to see the case when the standing instructions have different values for each transaction. For instance, the payment of the cellphone is ‘monthly ‘ but the value may change each month.
We need the option to show the scheduled transaction to the user and let them change the value for this transaction.
This just happened this month because of the trip to the USA, the cellphone value changed.
To simplify things, we could define a default amount and let the user change it when necessary.
Standing instructions are rules to automatically generate transactions according to recurring payments and receivables. This ways, most of the work of recording transactions is actually automatically done by the application, reducing the effort of the user.
Depends on #23
Frequency
Calculate the Next Payment Date
Given:
we can calculate the next payment date. When the previous payment date is not informed then the next payment day is the same as the start date. The next payment date is between the start date or the previous payment date and the stop date. If the calculated next payment date falls in the weekend or in a holiday then it is recalculated to the next working day.
The following table shows how the frequency is used in the calculation of the next payment date.
We already mentioned the case when the next payment date falls in a weekend or in a holiday. An extra special case is when the day of the month is not valid for some of the months, like February 30th or June 31th.