Mifos Import is a set of Perl scripts to import data into Mifos. Currenty, the following data can be imported:
- Offices (all levels) - Regional, Divisional, Area, Branch Offices
- Centers
- Groups
Download the source scripts, and run the following command:
perl Makefile.PL
This may require you to install the recent version of Test::WWW::Mechanize and Test::WWW::Selenium from CPAN if you don't already have them. Next, create a file settings.conf with your mifos login configuration, like:
mifos_url http://mifos-domain.com
username mifos
password testmifos
To import offices, create a CSV with the office details having the following columns:
- Office Name
- Short Name
- Parent Office
- Address Line1
- Address Line2
- Address Line3
- Office City
- Office State
- Office Country
- Office Zip
- Office Phone Number
Then run the following command:
perl create-offices.pl officelevel(1-5) offices.csv
This requires the Selenium standalone server running. Download it from http://seleniumhq.org/download/ and run it as follows:
$ java -jar selenium-server-standalone-<version>.jar
Then, create a CSV with the office details having the following columns:
- Branch
- Center Name
- Loan Officer
- Meeting Schedule (e.g Weekly:DayOfWeek:Location)
- MFI Joining Date (dd/mm/YYYY)
- Address 1
- Address 2
- Address 3
- District
- State
- Country
- Postal Code (PIN/ZIP)
- Telephone
- Fee 1 Type
- Fee 1 Amount
- Fee 2 Type
- Fee 2 Amount
- Fee 3 Type
- Fee 3 Amount
Import the centers by running the script:
perl create-centers.pl centers.csv
As with centers, this requires the Selenium standalone server running. Create a CSV with the group details having the following columns:
- Center
- Group Name
- Recruited by (loan officer name)
- Training Date (dd/mm/YYYY)
- Address 1
- Address 2
- Address 3
- District/City
- State
- Country
- Postal Code (PIN/ZIP)
- Telephone
- Fee 1 Type
- Fee 1 Amount
- Fee 2 Type
- Fee 2 Amount
- Fee 3 Type
- Fee 3 Amount
Import the groups by running the script:
perl create-groups.pl groups.csv