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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Using Employees address as mailing address for Individual...
Pages: 1 2 [3]

Author Topic: Using Employees address as mailing address for Individual...  (Read 19451 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Was it working for labels at a time ?
January 25, 2010, 12:31:51 am
Hi,

One told me that in 2.2, when you where printing labels, the address of the org was used if the individual didn't have address. Was it the behaviour or are we day dreaming ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

JoopSJ

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 2
Re: Using Employees address as mailing address for Individual...
January 25, 2010, 01:25:35 am
Quote from: JoopSJ on January 24, 2010, 04:41:24 am
Hello Xavier,
I have implemented the the sollution as posted by you on post 24.
It works fine.
But the shared address is static. If I change the org address, the contacts address is not changed.
Is this intended bevavior?
Thanks for your time.
Joop

Hello Xavier, any chance to have a look on this one?
If I know your sollution only makes a copy of the hh address, I know how to proceed further. Thanx

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Using Employees address as mailing address for Individual...
January 25, 2010, 02:49:43 am
Hi,

The solution is to properly implement it in civicrm and for that, the solution is that we all contribute to cover the cost. Do you think you could pay part of the dev ?

Xavier
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

JoopSJ

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 2
Re: Using Employees address as mailing address for Individual...
January 25, 2010, 05:51:35 am
Hello Xavier,
Thanks for your time.
Yes, we would definitally be interested to contribute.
The only problem is time-constraint: We are running a heavilly customized installation because we needed the sub-type functionallity.
Once 3.1 is stable we have to de-customize our install and data.
Only then we can start looking at 3.2.
But we need a sollution now, or better said yesterday :)
So, Yes we can contribute but in the mean time we need a work-around.
Regards Joop

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: Was it working for labels at a time ?
January 25, 2010, 08:51:47 am
Quote from: xavier on January 25, 2010, 12:31:51 am
One told me that in 2.2, when you where printing labels, the address of the org was used if the individual didn't have address. Was it the behaviour or are we day dreaming ?

dont think so :(

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

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: Using Employees address as mailing address for Individual...
May 31, 2010, 08:34:27 am
I've noticed that the related issue in JIRA is marked 3.3 but it seemed it is not funded. Any luck, Michael, on getting some funding for this?
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: Using Employees address as mailing address for Individual...
June 25, 2010, 10:53:20 am
If one is willing to work around this issue by copying organizational address for employer into the work address of each employee, and deal with updating the same address in multiple locations, then I have a MySQL query that can help you. Note that employer addresses tend not to be as volatile as residential ones (eg up to 40 percent of apartment dwellers in Canada move every year). Still it is inelegant to have multiple copies of the same information.

The following query creates work addresses for individuals who do not have them if they have an employer and the employer has an address.

HTH someone.

INSERT INTO civicrm_address (contact_id, location_type_id, street_address, street_number, street_number_suffix, street_number_predirectional, street_name, street_type, street_number_postdirectional, street_unit,
supplemental_address_1,
supplemental_address_2,
supplemental_address_3,
city, county_id, state_province_id, postal_code_suffix, postal_code, usps_adc, country_id, geo_code_1, geo_code_2, timezone, name)
SELECT c.id AS 'Contact ID', 2 AS 'Work Location Type ID', caceM.street_address, caceM.street_number, caceM.street_number_suffix, caceM.street_number_predirectional, caceM.street_name, caceM.street_type, caceM.street_number_postdirectional, caceM.street_unit,
caceM.supplemental_address_1,
caceM.supplemental_address_2,
caceM.supplemental_address_3,
caceM.city, caceM.county_id, caceM.state_province_id, caceM.postal_code_suffix, caceM.postal_code, caceM.usps_adc, caceM.country_id, caceM.geo_code_1, caceM.geo_code_2, caceM.timezone, caceM.name

FROM civicrm_contact c
INNER JOIN civicrm_contact ce ON c.employer_id=ce.id
LEFT JOIN civicrm_address cacW ON c.id=cacW.contact_id
LEFT JOIN civicrm_address caceM ON ce.id=caceM.contact_id

WHERE c.contact_type="Individual" AND c.employer_id IS NOT NULL AND
caceM.contact_id IS NOT NULL AND
(cacW.contact_id IS NULL OR cacW.location_type_id<>2);
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Using Employees address as mailing address for Individual...
August 25, 2010, 03:11:20 pm
Quote from: michaelmcandrew on January 24, 2010, 06:05:18 am
* integrating this with the 'current employer is' workflow: when you select current employer is, you should be prompted to say whether you want to use the organisation address.  Otherwise, you create the individual, then say they are an employee, then say that they should use the address.  IMCO (in my client's opinion :)) what should happen is you select the current employer is, and the a work address is automatically populated (which would be the expected behaviour).  You can then un-tick to override to create a different work address, and / or create a home address for this contact.

Michael

Item one on the list definitely fits in with the scheduled 3.3 address inheritance work - but is beyond the current scope. I've added it to the "Projects that are looking for funding that are requested often by the community" on the wiki with a tentative description of how we think the UI should work, and a size / cost estimate. Hopefully someone will step up (soon) and sponsor this.

http://wiki.civicrm.org/confluence/display/CRM/CiviCRM+v3.3
Protect your investment in CiviCRM by  becoming a Member!

joemaine

  • I post occasionally
  • **
  • Posts: 114
  • Karma: 3
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.14
  • MySQL version: 5.1
  • PHP version: 5.2
Re: Using Employees address as mailing address for Individual...
October 11, 2010, 08:50:35 am
For all the folks mentioning support for this initiative...now's your chance.

http://civicrm.org/contribute

Integrate "Address Inheritance from Organization to an Individual" work with "Current Employer" field on Contact Edit form - This will automatically link a contact's work address with their employer's address off the contact summary (and potentially extendable to the on-behalf-of form)

I'm in.

--
Joe

Pages: 1 2 [3]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Using Employees address as mailing address for Individual...

This forum was archived on 2017-11-26.