[ 
http://mifosforge.jira.com/browse/MIFOS-2013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kay Chau updated MIFOS-2013:
----------------------------

    Team: Core

> Disbursement date can be set before loan creation date
> ------------------------------------------------------
>
>                 Key: MIFOS-2013
>                 URL: http://mifosforge.jira.com/browse/MIFOS-2013
>             Project: mifos
>          Issue Type: Bug
>          Components: Loan Account
>    Affects Versions: Release 1.1
>         Environment: Platform: All, OS: All
>            Reporter: Keith Pierce
>            Assignee: keithwoodlock
>            Priority: Major
>             Fix For: Release G - Iteration 3, Release G
>
>
> This defect was observed while unit-testing changes to redo-loan functions.
> Scenario: Redo a loan with the following terms:
> 1. Start date Sunday, June 1.
> 2. Associated with a customer meeting that meets every Monday.
> 3. Specify disbursement Sunday, June 7.
> Expected: disbursement date set to next meeting date -- Monday, June 2.
> Actual: system attempted to set disbursement date to the previous Monday, May 
> 26.
> Root cause:
> 1. Default locale is set to GB/EN.
> 2. For this locale, Calendar sets the first day of the week to Monday, not 
> Sunday.
> 3. To determine the disbursement date, the system takes the start date and
> resets the day-of-week to the Monday of the week containing Sunday's start 
> date,
> which is the previous Monday, not the next Monday.
> This is the only scenario that exposes this defect: 
> * Loan start date is the last day of the week (Saturday in the US, Sunday in
> many other countries). 
> * Meeting date set to the first day of the week (Sunday in the US, Monday in
> many other countries)
> This is likely a very rare scenario, but the system should take this into
> account, and is a pretty simple fix.
> Solution:
> Change the logic to set the disbursement date to the next weekly meeting day
> after the start date, not the meeting day that the start date happens to 
> contain.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to