How to configure a Loan with 2 specific installments in a Month.
- The first one occurs every 15th oh the Month.
- The Second must occurs the last day of the Month.
We detect two cases:
If the date is before 15th day, then the next is (fixed) to the 15th day of the current month,
Else If the date is after 15th day, then the next date will be end of month (calculated) with the java LocalDate method class.
- In both cases, as Mifos X applies the Business rule for no working days.
Finally we defined a new EnumType called SemiWeeks for that case