CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Best way to setup Hierarchical Organization and its fund raising goals
Pages: [1]

Author Topic: Best way to setup Hierarchical Organization and its fund raising goals  (Read 1486 times)

Aahar

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 3
  • CiviCRM version: 3.4 and 4.0
  • CMS version: Drupal 6.17, 6.x and Drupal 7.x
  • PHP version: 5.2
Best way to setup Hierarchical Organization and its fund raising goals
January 24, 2012, 07:57:13 am
Background:

We are trying out civicrm in a non-profit organization. The Orgnization has structure as follows:
a. National Level .This has states in it
b. State Level. This has has districts in it
c. District Level. This has cities or towns in it.
d. City Level . In a city we have members who work together to raise funds or conduct Awareness programs

My approach:
I built Contact Sub-types of Nation, State, District, City. I have used Relationships to relate each City to District and then District to State, States to the Nation.
Question1: Is this a good design? Are there any other ways to do it?

At National level we have fund raising goals for different types. Like Old-age-home fund, Orphan hostel fund, Awareness Fund and some more.
These goals are distributed among 'states' to raise it. States distributes it to City. The Members in the city then raise funds for each type. Whenever a member donates his donation it should be added to the City. Sometimes the group of members donate without identifying individuals.
Sometimes the City or State leaders donates just to meet his Goals.

Question2: How can I set up Fund goals for the Nation, each State and each Citiy. And whenever a donation happens at any level it should add up to the Goals of the higher level of organization. That is, all donations from Cities add up to the achieved goals of States. Same is with States and Nation.

I am also concerned of how the approach will help in Reports

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Best way to setup Hierarchical Organization and its fund raising goals
January 24, 2012, 09:42:28 am

1. can u explain the reasoning behind using contact sub-types? not sure i understand how that helps

2. can u give us an idea of scale. i..e how many cities/districts/statess and approx how many contacts / city?

3. whats the permissioning model? who accesses the db?

I suspect you will need to write a fair number of custom reports and also code to propagage your donations based on your donation model (and/or reports to reflect the same)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Aahar

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 3
  • CiviCRM version: 3.4 and 4.0
  • CMS version: Drupal 6.17, 6.x and Drupal 7.x
  • PHP version: 5.2
Re: Best way to setup Hierarchical Organization and its fund raising goals
January 26, 2012, 07:36:05 am
Thanks for the response Lobo.

You asked:
1. can u explain the reasoning behind using contact sub-types? not sure i understand how that helps

Here is how I think it will help:
1a: Each sub-types City/District/State can have distinct Relationship Types so that they can be linked in the hierarchy. We can have relationships like City1 'is city of' State1.
1b: The office in the City have designations that apply only to City level offices. Similarly with Districts and States. So a Sub-type can help make distinct Relationships for each Level.
1c: Having contact sub-types would help in having options open for custom data. Plus, I think it would help in delegating the Fund Goals from State to District and then to City.
 
2. can u give us an idea of scale. i..e how many cities/districts/statess and approx how many contacts / city?

As of now, there are 700 cities. A City is divided it into smaller cities if it reaches 150 members. A smaller city is  managed as a regular city. We call it East City1, West City1 ... There are Cities with as low as 10 individuals. And there cities that have 140 members. On an average a City has 25 members.
Districts: 80
States: 8
Total members 15000.  Expected to Grow at 15% to 20% in next 5 years.

3. whats the permissioning model? who accesses the db?
I am not sure I understood it right.
As of now only the staff would use civicrm. At some point we would want to open it for Office holders in each City, District and State. Then for all Members.

I am working towards becoming a civicrm developer so that I can do the custom code as required.
I will be contributing back in terms of cash and code as I build them.
The quality of software( and documentation) you and your team has developed and released as open source is great example. I am working to be a part of it.
« Last Edit: January 26, 2012, 07:38:12 am by Aahar »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Best way to setup Hierarchical Organization and its fund raising goals
January 26, 2012, 11:34:45 am

not sure if i agree with the modelling

city/district/state/country are location based. contacts belong to some of those locations

we already model state and country in the DB as separate tables. You can potentially model district as counties which also have a civicrm table and now you have 3 of the 4 entities already modelled in CiviCRM

What groups a contact belongs to, now can be based on the geographic location of the "appropriate" address of that contact

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Aahar

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 3
  • CiviCRM version: 3.4 and 4.0
  • CMS version: Drupal 6.17, 6.x and Drupal 7.x
  • PHP version: 5.2
Re: Best way to setup Hierarchical Organization and its fund raising goals
January 26, 2012, 08:38:43 pm
Thanks again.

This organization has its own structure of States. It does not align with the political States. It is simply a division of the country into East State, West State, South East State...  and so on.  Same is the approach with District and City.

If we use civicrm groups then there would be 700+ groups. And each year another 100 gets added. Having so many groups appears to be too large.
« Last Edit: January 26, 2012, 10:30:08 pm by Aahar »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Best way to setup Hierarchical Organization and its fund raising goals

This forum was archived on 2017-11-26.