Giter Site home page Giter Site logo

mifos-import's Introduction

Mifos Import

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

Usage Instructions

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

Importing Offices

To import offices, create a CSV with the office details having the following columns:

  1. Office Name
  2. Short Name
  3. Parent Office
  4. Address Line1
  5. Address Line2
  6. Address Line3
  7. Office City
  8. Office State
  9. Office Country
  10. Office Zip
  11. Office Phone Number

Then run the following command:

perl create-offices.pl officelevel(1-5) offices.csv

Importing Centers

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:

  1. Branch
  2. Center Name
  3. Loan Officer
  4. Meeting Schedule (e.g Weekly:DayOfWeek:Location)
  5. MFI Joining Date (dd/mm/YYYY)
  6. Address 1
  7. Address 2
  8. Address 3
  9. District
  10. State
  11. Country
  12. Postal Code (PIN/ZIP)
  13. Telephone
  14. Fee 1 Type
  15. Fee 1 Amount
  16. Fee 2 Type
  17. Fee 2 Amount
  18. Fee 3 Type
  19. Fee 3 Amount

Import the centers by running the script:

perl create-centers.pl centers.csv

Importing Groups

As with centers, this requires the Selenium standalone server running. Create a CSV with the group details having the following columns:

  1. Center
  2. Group Name
  3. Recruited by (loan officer name)
  4. Training Date (dd/mm/YYYY)
  5. Address 1
  6. Address 2
  7. Address 3
  8. District/City
  9. State
  10. Country
  11. Postal Code (PIN/ZIP)
  12. Telephone
  13. Fee 1 Type
  14. Fee 1 Amount
  15. Fee 2 Type
  16. Fee 2 Amount
  17. Fee 3 Type
  18. Fee 3 Amount

Import the groups by running the script:

perl create-groups.pl groups.csv

mifos-import's People

Watchers

 avatar

mifos-import's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.