About [[Mifos:TypeMismatch.loanProduct.loanAmountByLastLoanAmount.theDefault/en]]

I am having trouble understanding what the last part of this message means. There are 3 more messages with exactly the same content.

Please specify valid Default amount. Default amount should be between the Min and Max Loan Amounts, inclusive of the two for by last loan at row {0}.

Siebrand16:25, 4 April 2011

These messages are used to define a new loan product that is being offered. The product will have a minimum loan amount, a maximum loan amount and a default loan amount. The default amount should be between the Min and the Max inclusive of the two, meaning that: Min <= Default <= Max. There are 3 choices for the Loan Amount:

1) Same for all loans: There is only one choice for the Min, Max and default for the loan product being offered.

2) by last loan amount: Depending on the last loan amount of the client, the loan product offers a different Min, Max and default. The last loan amount is defined as a range and you can enter up to 6 ranges and the associated Min, Max and default amounts. So depending on the last loan amount of the client, they will qualify for a different Min, Max and default loan amount for this product.

3) by last loan cycle: Similar to above, you can define the Min, Max and default loan amount for this product for up to 6 possible loan cycles. I don't quite know what a loan cycle is, but will inquire.

In all these cases, the default loan amount should be between the Min and Max inclusive of these two for the "by last loan" amount option or the "by last loan cycle" option or the "same for all loans" option, (so, Min <= Default <= Max). For 2) and 3) above, the parameter {0} simply refers to the row number, 1 thru 6 where the type mismatch error is found. An example of this is found at (http://ci.mifos.org:8085/mifos/defineLoanProducts.ftl). Note that the parameter is not correctly resolved to the row number at present - we're working on this.

Jasmine06:05, 5 April 2011