Results 1 to 8 of 8

Thread: Creating cases for contacts instead of accounts

  1. #1
    ablair is offline Junior Member
    Join Date
    Jul 2007
    Posts
    2

    Default Creating cases for contacts instead of accounts

    I have a business providing computer services to both business and domestic users. I'm looking for a CRM to tracknotes and jobs that I do for my customers. SugarCRM looks great. However, many of my customers are domsetic and don't belong to a company. Therefore, having to create an "account" for "contacts" before being able to assign a "case" doesn't work for me.

    Is it possible to assign a "case" to a contact rather than a job? Or does anyone have other recommendationd for this?

    Best Regards,
    Alan.

  2. #2
    studiostreet is offline Member
    Join Date
    Jun 2007
    Posts
    7

    Default Re: Creating cases for contacts instead of accounts

    Hello Alan.

    I have the same situation as you. AFAIK theres no way to create case to contact that is not related to any account. I found a workaround by creating one account, 'Private Customers', where all my non-business contacts belong. Now its possible to create a case that is related to contact.

    Hope this helps,

    Marko
    www.studiostreet.fi

  3. #3
    pblag's Avatar
    pblag is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Ukraine (Chernivtsy)
    Posts
    347

    Smile Re: Creating cases for contacts instead of accounts

    Hi All!

    I think that we can develop this functionality for you.
    If you are interested please email me.
    feel free to contact us.
    Petro Blagodir
    petro@blagodir.ua
    http://www.blagodir.com
    Blagodir Ltd.( SugarCRM - Consultations, Development and Support)

  4. #4
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Creating cases for contacts instead of accounts

    With some customization you can alter the EditView to show a contact select instead of an account select for new cases. We had to do this for the same reason. It's been a while so I'll see if I can find the code and post it here.

  5. #5
    mapm's Avatar
    mapm is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Portugal
    Posts
    239

    Default Re: Creating cases for contacts instead of accounts

    It seems a good solution, also for invoicing of cases I use:
    http://www.sugarforge.org/projects/jcrmtimeinvoice/
    For me only works with internet explorer

  6. #6
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Creating cases for contacts instead of accounts

    You have a couple of options:
    1) Just turn off accounts as being required. Save Case. Add Contact after.
    2) Turn off accounts as being required. Add contact field to case edit page only if new case. Save and it adds the contact to the contact list.

    Method 2:
    In config.php set the following to false to turn off accounts as being required:
    'require_accounts' => false,

    Add {CONTACT_POPUP} to EditView.html where you want it to popup. It will replace this variable with the label/input columns:
    PHP Code:

        
    <tr valign="top">
        <
    td class="dataLabel"  valign="top"><slot>&nbsp;</slot></td>
        <
    td class="dataField"><slot>&nbsp;</slot></td>
        {
    CONTACT_POPUP}
        </
    tr
    Add this to your EditView.php:
    PHP Code:

    if( (!isset($focus->id) || $focus->new_with_id )  && !isset($focus->contact_id)) {
        
    //contact popup...show only if new record to more quickly associate a contact to a case
        
    $popup_request_data = array(
            
    'call_back_function' => 'set_return',
            
    'form_name' => 'EditView',
            
    'field_to_name_array' => array(
                
    'id' => 'contact_id',
                
    'name' => 'contact_name',
                ),
            );

        
    $encoded_contact_popup_request_data $json->encode($popup_request_data);

        
    $contact_popup "    <td class='dataLabel'><span sugar='slot90'>Primary Contact:</span sugar='slot'></td> "
                        
    ."    <td class='dataField'><span sugar='slot90b'> "
                        
    ."    <input tabindex='2' readonly id='contact_name' name='contact_name' type='text' value=''> "
                        
    ."    <input id='contact_id' name='contact_id' type='hidden' value='' /> "
                        
    ."    <input title='".$app_strings['LBL_SELECT_BUTTON_TITLE']."' accessKey='".$app_strings['LBL_SELECT_BUTTON_KEY']."' type='button' tabindex='2' class='button' value='".$app_strings['LBL_SELECT_BUTTON_LABEL']."' name=btn1 "
                        
    ."            onclick='open_popup(\"Contacts\", 600, 400, \"\", true, false, ".$encoded_contact_popup_request_data.");' /></span sugar='slot'></td> ";
    } else {
        
    $contact_popup "    <td class='dataLabel'><span sugar='slot98'>&nbsp;</span sugar='slot'></td> "
                        
    ."    <td class='dataField'><span sugar='slot99'>&nbsp;</span sugar='slot'></td> ";
    }
    $xtpl->assign('CONTACT_POPUP'$contact_popup); 
    And Bob's your uncle.

  7. #7
    ablair is offline Junior Member
    Join Date
    Jul 2007
    Posts
    2

    Default Re: Creating cases for contacts instead of accounts

    Wow, Thanks everyone.

    I'm new to this open source stuff. I guess it is guys like you that make it so great.

    I will certainly try the suggestion from "eggsurplus".

    eggsurplus: I have quickly looked at the documentation online. I could only find user and installation guides. I couldn't see where you would find information for such customisation. Do you know where I could get the developer documentation from?

    Best Regards,
    Alan.

  8. #8
    organi is offline Sugar Community Member
    Join Date
    Jun 2005
    Posts
    25

    Default Re: Creating cases for contacts instead of accounts

    Setting
    'require_accounts' => false,
    in config.php
    causes the Opportunities tab to show a blank page.

    Yes, the Opportunities are related to Accounts, not Contacts. is there a way to relate them to Contacts instead of Accounts?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. problem step 7 version SugarOS-4.5.0f
    By lucia in forum Help
    Replies: 1
    Last Post: 2006-12-27, 01:21 PM
  2. problemi step 6 di SugarSuite-Full-4.0.1h
    By lucia in forum Italiano
    Replies: 0
    Last Post: 2006-12-27, 08:50 AM
  3. Replies: 1
    Last Post: 2006-10-12, 12:07 AM
  4. 4.0.1 Installation Problem
    By clawton in forum Help
    Replies: 14
    Last Post: 2006-02-13, 04:17 PM
  5. Fatal error: Max
    By spokes2k4 in forum Help
    Replies: 3
    Last Post: 2006-01-15, 03:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •