Ok, I created it as improvement :) I think we can work on this issue and create a PR for you to check it. Just to be sure, if we make the fix it would apply to every loan... or do you want it to be configurable somehow?
Anyway, I think the configuration is via the two properties Grace on Penalty posting and penalty-wait-period, so it would be ok if the fix applies to all loans. I mean, if penalty-wait-period = 2, I would expect to see penalties up to 3 days before the date the job was run, but right now I see up to N-4 Thanks again, Lionel 2017-03-09 11:08 GMT-03:00 Santosh Math <sant...@confluxtechnologies.com>: > *Delays in applying penalties .. little correction in above mail. :) > > On Mar 9, 2017 7:35 PM, "Santosh Math" <sant...@confluxtechnologies.com> > wrote: > > > Hi Lionel, > > In my opinion, I don't like to consider it's bug (but still it is) as I > > would like to be bit soft-corner when it comes to penalties in MFIs. :) . > > It must be fixed, nonetheless. > > > > Regards > > Santosh > > > > > > On Mar 9, 2017 7:03 PM, "Lionel Raymundi - Poincenot" < > > lio...@poincenot.com> wrote: > > > >> Hi Santosh! > >> > >> Ok, thanks for your answer. > >> I have created https://issues.apache.org/jira/browse/FINERACT-418. When > >> you > >> said "enhancement" did you mean i should create the ticket on JIRA as > >> "Improvement"? > >> or is it a bug? > >> > >> > >> > >> El 8 mar. 2017 11:45 p. m., "Santosh Math" > <santosh@confluxtechnologies.c > >> om> > >> escribió: > >> > >> > Hi Lionel, > >> > Sorry for delayed reply. I reproduced your issue. You can rise Jira as > >> > enhancement. > >> > > >> > Thanks > >> > Santosh > >> > > >> > On Mar 7, 2017 1:55 AM, "Lionel Raymundi - Poincenot" < > >> > lio...@poincenot.com> > >> > wrote: > >> > > >> > > Hi guys, > >> > > > >> > > We have noticed that penalty charges are being generated one day > late > >> for > >> > > some cases. For example: > >> > > .- Lets suppose the due date of an installment is on march the 5th. > >> > > .- Overdue penalty is configured as 1% of installment interest, > >> charged > >> > > daily. > >> > > .- System configuration has Grace on Penalty posting = 0 and > >> > > penalty-wait-period = 0 > >> > > .- Run the Apply penalties to Overdued Loans job. > >> > > .- Today is march the 7th, so I would expect to see penalties on > that > >> > > installment on the repayment schedule considering the following: > >> > > a) Client didn't pay On march 5th. One penalty charge should be > >> > generated. > >> > > b) Client didn't pay On march 6th. Two penalty charges should be > >> > generated. > >> > > > >> > > .- I would also expect to see the charge generated with due as of > >> date 05 > >> > > and 06 March 2017 under "Charges" tab. But I only see one penalty, > as > >> of > >> > > 05. > >> > > > >> > > https://demo.openmf.org/#/viewloanaccount/748 > >> > > > >> > > A shorter version of this would be: If I run the job on the N day, y > >> > would > >> > > expect to see charges until N-1 (the day before N). But I see only > >> > charges > >> > > generated until N-2 (Two days before). > >> > > > >> > > I know that maybe the tenant timezone and the computer where > fineract > >> is > >> > > running the demo version can be different, but I tested it on my > local > >> > > environment with all timezones set correctly and noticed this > >> behaviour. > >> > Is > >> > > this a bug or is it working as expected? > >> > > > >> > > Let me know if I was not clear enough... > >> > > > >> > > Thanks > >> > > > >> > > Lionel > >> > > > >> > > >> > > >