------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
Mifos-developer mailing list
mifos-d...@lists.sourceforge.net
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer
I agree with Jasmine, that this issue is caused by the fact that we are
using:
<c:out value="${variable}" />
instead of:
<fmt:formatNumber value="${variable}" type="number" />
The only solution is to fix those places in the jsp code. This might be
a lot of work (there is almost 2k invocations of c:out), but this task
is really easy and should be a perfect task for a volunteers.
Do we have a Jira issue for this task?
Regards,
Jakub.
>> <binny.g...@gmail.com <mailto:binny.g...@gmail.com>>
>> <mailto:mifos-d...@lists.sourceforge.net>
>> Unsubscribe or change settings at:
>> https://lists.sourceforge.net/lists/listinfo/mifos-developer
>>
>>
>>
>>
>> -- - Climbed Rainier
>> <http://aimlessplanet.blogspot.com/> to
>> Raise funds for Asha - please sponsor my climb
>>
>> <http://www.ashanet.org/seattle/teamasha/climb/profile_head.php?p=jasmine>-
>>
>>
>> -------------------------------------------------------------------------------------
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> RSA(R) Conference 2012
>> Save $700 by Nov 18
>> Register now
>> http://p.sf.net/sfu/rsa-sfdev2dev1
>> Mifos-developer mailing list
>> mifos-d...@lists.sourceforge.net
>> <mailto:mifos-d...@lists.sourceforge.net>
>> Unsubscribe or change settings at:
>> https://lists.sourceforge.net/lists/listinfo/mifos-developer
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> RSA(R) Conference 2012
>> Save $700 by Nov 18
>> Register now
>> http://p.sf.net/sfu/rsa-sfdev2dev1
>> Mifos-developer mailing list
>> mifos-d...@lists.sourceforge.net
>> <mailto:mifos-d...@lists.sourceforge.net>
>> Unsubscribe or change settings at:
>> https://lists.sourceforge.net/lists/listinfo/mifos-developer
>>
>>
>>
>>
>> --
>> - Climbed Rainier <http://aimlessplanet.blogspot.com/> to Raise funds
>> for Asha - please sponsor my climb
>> <http://www.ashanet.org/seattle/teamasha/climb/profile_head.php?p=jasmine>-
>>
>> -------------------------------------------------------------------------------------
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> RSA(R) Conference 2012
>> Save $700 by Nov 18
>> Register now
>> http://p.sf.net/sfu/rsa-sfdev2dev1
>>
>>
>> Mifos-developer mailing list
>> mifos-d...@lists.sourceforge.net
>> Unsubscribe or change settings at:
>> https://lists.sourceforge.net/lists/listinfo/mifos-developer
>
>
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
>
>
>
> Mifos-developer mailing list
> mifos-d...@lists.sourceforge.net
> Unsubscribe or change settings at:
> https://lists.sourceforge.net/lists/listinfo/mifos-developer
This ticket is for the thousands separator. Is this sufficient or do we need a more specific JIRA describing the change below? It would be good if you or Jasmine could add these comments from this mail thread to the ticket.
- thanks, Binny
+1
Jasmine, if you can log a task with details of how to fix this as discussed in this thread, I will try to find a volunteer.
Ed
+1
Jasmine, if you can log a task with details of how to fix this as discussed in this thread, I will try to find a volunteer.
can you prepare this list of 10-15 most important pages?
Moreover, if someone is working on MIFOS-3670, please assign it to
yourself and after fixing several pages commit those changes/attach a
patch to the issue.
I have changed the fixVersion to 2.2.2 to have this issue on horizon.
Regards,
Jakub.
On 10.11.2011 19:55, bankadmin wrote:
> We have everything: Jira cases (since 08/Sep/10) , group discussions
> (more then week) , recommendations, reasons, funds, computers,
> internet.... shortly everything, but no thousand separator :-)
>
> http://mifosforge.jira.com/browse/MIFOS-2082
> http://mifosforge.jira.com/browse/MIFOS-3670
>
> *P.S. Can any one fix it in about 10-15 most important pages? *
A quick and easy way to do this will be create a jquery event
(key/submit) listener function and include that into head.jsp/ftl.
this is what need to be done in that script. Bind the key press event
listener to any input field, on key press if the value entered in the
input field is purely numbering then parse that value to number in js
and apply client side localization (or parsing) to add thousand
separator, on click submit parse those field again and remove thousand
separator right before they submit.
Here is a live example people using it.
http://www.apnapaisa.com/loan/home-loan-india/comparison.html
This way we isolate this issue in one js function. We should be able
to enable disable this js based on config also.
Udai
great idea - but it will solve only input fields, right?
Regards,
Jakub.
But if that's the case you can put span/div around those numbers in UI
and apply this function onload.
Udai
2011/11/11 Jakub Sławiński <jslaw...@soldevelo.com>:
Regards,
Jakub.
Agree, I probably just misunderstood the problem, assuming it was just
about entering data.
Udai,
Andrew Hagner and a colleague, Jon were going to try and start work in initial approach this weekend. If he should take the second alternate approach, I'll let him discuss that on the list.
Ed
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
Mifos-developer mailing list
mifos-d...@lists.sourceforge.net
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
Mifos-developer mailing list
mifos-d...@lists.sourceforge.net
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer
Theres a database dump of the 'acceptance test data' that can be useful to use:
its called acceptance_test_dump.sql and can be found in mifos-db module.
Typically though I just build up mifos from scratch:
1. create blank mifos schema
2. apply base-schema.sql
3. aply base-data.sql
4. execute the init_mifos_password.sql so can login with mifos/testmifos
5. apply the following which can be found in integration-test-data.sql
-- Entity: Salutation
insert into lookup_value(lookup_id,entity_id,lookup_name) values
(47, 15, 'Salutation-Mr'),
(48, 15, 'Salutation-Mrs'),
(228, 15, 'Salutation-Ms');
insert into lookup_value_locale(lookup_value_id,locale_id,lookup_id,lookup_value)
values
(93,1,47,'Mr'),
(95,1,48,'Mrs'),
(438,1,228,'Ms');
This is the minimal setup for mifos.
Then you can just 'turn the clock back on your computer' and start
creating loan products, center/group/client hierarchys, and loans etc
Clearly it can take a bit of time to build up your own demo instance
but its worth it. as you can take a dump of this and always go back to
your demo instance when need be.
Keith.
On Tue, Nov 15, 2011 at 7:04 PM, George IBERIA <bank...@gmail.com> wrote:
> we will send it tomorrow. But i think you can do it with demo database
> too.
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
Mifos-developer mailing list
mifos-d...@lists.sourceforge.net
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer
A quick way of finding what jsp file represents the page you are
looking at on mifos is to 'inspect' the page using firefox or just
view source and find the span on the page with id="page.id" and
checkout what value is against the 'title' attribute.
In this case its 'BulkEntry'
you can then search eclipse for files of type *.jsp with text 'title="BulkEntry'
Using this approach for all pages should quickly get you to the .jsp
page used in presentation.
Keith.
Whatever approach you use whether its the simple <fmt:formatNumber
value="${variable}" type="number" /> indicated by Jakub or the JQuery
approach indicated by Udai, it has to be able to work for different
'locales', so no hard coding to any praticular number format
(english/american/ etc)
Keith.
I have a dream that one day this nation will rise up and live out
the true meaning of its creed: "Numbers are well formatted with thousand separator
"
I have a dream that one day on the red hills of Georgia will be able to see amounts without magnifiers;
I have a dream that one day even the balance sheet will be displayed with formatted amounts.
I have a dream that my 2 little children will one day live in a nation where they will not be judged by having thousand separators.
I have a dream today!
george with low case and many dreams
why do you need such list? Are you trying to do something more than
changing appropriate c:out tags to fmt:formatNumber ones?
Regards,
Jakub.
> why do you need such list? Are you trying to do something more than
> changing appropriate c:out tags to fmt:formatNumber ones?
It's a good question, the actual formatting of money/numbers is done
based on locale.
Andrew,
We don't support Localization of numbers in Mifos, so the idea would
be just have English numbers with thousand separator based on locale
(or configuration). Apart from backend method to format numbers, you
can create the JS where the JS initialization takes the parameter to
get thousand or tens separator, it would be good if you spend more
time about how you would implement this without actually making to
much changes in the backend.
Code for collectionsheet.
https://github.com/mifos/head/blob/master/application/src/main/java/org/mifos/application/collectionsheet/struts/tags/BulkEntryTag.java
https://github.com/mifos/head/blob/master/application/src/main/java/org/mifos/application/collectionsheet/struts/uihelpers/BulkEntryDisplayHelper.java
https://github.com/mifos/head/blob/master/application/src/main/resources/META-INF/resources/pages/application/collectionsheet/jsp/bulkentry.jsp
(form)
https://github.com/mifos/head/blob/master/application/src/main/resources/META-INF/resources/pages/application/collectionsheet/jsp/bulkentry_preview.jsp
https://github.com/mifos/head/blob/master/application/src/main/resources/META-INF/resources/pages/application/collectionsheet/jsp/bulkentryconfirmation.jsp
Cheers,
Udai
I guess the advantage of the approach that jakub said (using jsp tag
lig) is that you should get that for free.
solving it for display is first step, then you can step on and make
sure it works for input fields (although i never enter commas when
typing out a number!)
keith.
Just to clarify: typical International or English (US or UK does not
matter ) standard will be OK for now.
We just want to see: 123,123,123.12 ( or 123,123,123)
instead of : 123123123.12 ( or 123123123)
George
>>>> Binny& George,
>>>> Unfortunately things are taking me longer than expected so I probably
>>>> won't
>>>> have the chance to get a working patch/page to you today. I'll let you
>>>> know
>>>> as soon as we have something.
>>>> Also a quick question, I noticed that Udai's example
>>>> (http://www.apnapaisa.com/loan/home-loan-india/comparison.html) puts
>>>> commas
>>>> every 2 decimal places, it that how you want it to work? I just want to
>>>> make
>>>> sure, I'm used to doing every 3 decimal places so its just something new
>>>> to
>>>> me.
>>>> Andrew
>>>> On Thu, Nov 17, 2011 at 3:07 PM, Andrew Hagner<andre...@gmail.com>
>>>> wrote:
>>>>> All,
>>>>> If anyone could help me find the jsp page that goes with the
>>>>> collection
>>>>> sheet entry page& the preview page for collection sheet entry that
>>>>>>>> Dear Andrew& Jasmine,
Thanks for the patch.
It applied cleanly and I launched application to inspect changes. As
you have noted the currency in mifos is set in 'configuration' and its
also possible to have 'multiple currencies' where one specific
currency is selected from the 'loan product'. So currency isnt related
to 'user locale' e.g. if i which my preferred locale to spanish, the
currency shouldnt switch to 'euro' etc.
So for now, its enough to just use type="number" for displaying
numbers in mifos.
Thanks again,
Keith.
is anyone looking at the test failures that appeared after applying this
patch?
Regards,
Jakub.
How to do that?
sorry was out 1 week. and just saw your message.
Thanks for your comment.
George
>>>>> still been looking at the .jsp pages and how to fix inputting& displaying
acceptance tests are run in a different job. Please look at:
https://ci.mifos.org/hudson/job/head-g-release-secondary/238/
https://ci.mifos.org/hudson/job/head-g-release-secondary/239/
Regards,
Jakub.
java.lang.AssertionError: expected:<1000.0> but was:<1,000> at org.testng.Assert.fail(Assert.java:89) at org.testng.Assert.failNotEquals(Assert.java:480) at org.testng.Assert.assertEquals(Assert.java:118) at org.testng.Assert.assertEquals(Assert.java:171) at org.testng.Assert.assertEquals(Assert.java:181) at org.mifos.test.acceptance.framework.loanproduct.LoanProductDetailsPage.verifyLoanAmountTableTypeSame(LoanProductDetailsPage.java:110) at org.mifos.test.acceptance.loan.CreateClientLoanAccountTest.verifyCreatingLoanAccountsOnProductWithLoanCycles(CreateClientLoanAccountTest.java:468)I will have to spend some time understanding why it is comparing the formatted string with the floating point value - seems like it should be setup to compare two floating point values; but a quick look at the code online tells me I'll need to spend sometime understanding the implementation. I'll look into it this week - may not get to it till Wed or Friday.
I made changes so acceptance tests would pass after add 'commas' for
number but there are still two failing tests and I am not sure why
they are failing. Maybe it something you could help look at.
Most of the tests fail due to assertions verify 'number' amounts by
string values.
Keith.
On Mon, Dec 5, 2011 at 11:49 PM, Jasmine Sandhu
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
Do you have any ideas how to avoid such situations in the future
(unstable main development branch for 5 days)?
Regards,
Jakub.
We have clear guidelines about how to deal with broken build.
http://mifosforge.jira.com/wiki/display/RES/How+To+Break+The+Build
1) Revert the changes causing broken build if no one is working on
fixing the build. (check that on mailing list and IRC both)
2) Use hudsonBuild* to check patch stability.
Udai
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
I tested Thousands separator on test server:
http://demo.mifos.org/mifos expecting latest version with Jon's fixes.
See attached screenshot with the result (in savings number is without
separator) . Do I missed something?
George
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
Mifos-developer mailing list
mifos-d...@lists.sourceforge.net
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer
Jasmine/Jon/Andrew,Thanks for getting the first patches through and viewable on the test server.Could you update the JIRA issue with the progress that's been made and the remaining work that's left to do.