MIFOSX-1032

I will pull request to mifosx repository in a moments.
https://mifosforge.jira.com/browse/MIFOSX-1032