[ 
http://mifosforge.jira.com/browse/MIFOS-2653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57019#action_57019
 ] 

Udai Gupta commented on MIFOS-2653:
-----------------------------------

Some particulars about saving account case above mentioned.
-       Interest calculation period = 1 month
-       Interest posting period = 3 month
-       Minimum balance for interest calculation
-       First three month the client does not have enough balance to get 
interest posted.

According to the implementation of Savings interest posting task the "next date 
for interest posting" will only gets updated in databases when there is some 
amount (i.e. non-zero) to be posted, due to which interest posting date does 
not get updated because of condition.

1. if (interest_to_be_posted > zero) {
2.   post interest;
3.   update next_interest_posting_date;
4.}

When a savings account is created (and then approved) the 
next_interest_posting_date is entered same as the 
next_interest_calculation_date i.e. 30-sept-2009 for the above mentioned case. 
which means that if (interest_to_be_posted > zero) then first interest posting 
will take place in 30-sept-2009 and next_interest_posting_date will be updated 
to 31-dec-2009 (3 months after 30-sept-2009), but there will be no 
interest_to_be_posted as no interest calculation has taken place till 
30-sept-2009, this is how the savings interest posting is smartly avoiding 
interest_posting in same month of account opening.

In this issue the expectation was that the next_interest_posting_date should 
have been updated to 31-Dec-2009 when the batch job for interest posting was 
ran in 30-Sept-2009 for above mentioned case.

There are two ways to solve this issue.

1) Move the "3. Update next_interest_posting_date;" out of the condition so 
that updating can take place correctly.

2) Improve condition to if (interest_to_be_posted >= zero)
  - This will result in 0 as interest being posted for 30-sept-2009
  - next_interest_posting_date will be updated correctly.
  - zero interest posting will help us to understand why there was a zero 
interest posting (whether due to logic or some misbehavior of batch job or 
internal code)

I have decided to go with the 2nd solution as Van suggested and Kay agree that 
showing the zero interest posting on interest posting cycle (i.e. 3 month for 
above care) gives you transparency about what is going on when an interest 
posting amount is zero.


> Interest posting shows the date from the previous interest posting date
> -----------------------------------------------------------------------
>
>                 Key: MIFOS-2653
>                 URL: http://mifosforge.jira.com/browse/MIFOS-2653
>             Project: mifos
>          Issue Type: Bug
>          Components: Savings Account
>    Affects Versions: Release 1.3.1
>            Reporter: Ryan Whitney
>            Assignee: Udai Gupta
>            Priority: Major
>             Fix For: Gazelle C
>
>
> I believe this is closely related to the interest posting bug for SECDEP we 
> thought we fixed and now we're seeing another behavior.  Since its another 
> behavior, I opened up a new bug so we can track whether this issue gets fixed 
> as well.
> REPRO:
> Client Lorna General
> * On 9/30 she didn't have enough in her ICF Fund (savings) for an interest 
> posting
> * On 12/31 she did, but it looks like it was tagged with the 9/30/09 date.
> Date          Activity         Amount RunningBalance
> 06/01/2010    Deposit          20     1531
> 30/09/2009    Interest_Posting 16     1511  <--- Er, what?
> 16/12/2009    Deposit          250    1495
> 16/12/2009    Deposit          20     1245
> 09/12/2009    Deposit          20     1225
> 02/12/2009    Deposit          20     1205

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to