Results 1 to 8 of 8

Thread: Add opportunity close to calendar.

  1. #1
    Iggby's Avatar
    Iggby is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    Huntingtonton Beach, Ca
    Posts
    101

    Default Add opportunity close to calendar.

    Is there a way to add the close date of an opportunity to the calendar?

    I would also like to add some custom dates to the calendar, i.e. when the date is selected it gets automatically added to the calendar so when a user views the calendar you get an instant view of when opportunities are going to close and when other custom dates field items are happening.

  2. #2
    vbondoux is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    50

    Default Re: Add opportunity close to calendar.

    Same question it coulb be very usefull !
    up !

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Add opportunity close to calendar.

    Hi all.

    It can be done but not in a upgrade safe way.
    It requires modify several core files.

    SugarCRM 6.0 will have some good improvements in the Calendar. Perhaps one of these are your needs.
    SugarCRM 6.0 probably will be released next year, first semester.

    But if you really need it right now you can contact us.


    Lampada Global Services can help you implement SugarCRM. Since 2005, we have done 100+ SugarCRM projects for customers around the world. We are a SugarCRM Silver Partner.

    Based in Sao Paulo, Brazil, we offer American customer service at Brazilian prices. We work and deliver over the Internet.

    Our programming team develops custom modules, integrates SugarCRM with other systems and modifies the core functionality according to our clients' specifications. Lampada has also made important contributions to the SugarCRM community, notably Teams OS and the Brazilian Portuguese Language Pack.
    Please feel free to contact us via Skype (dtokeefe) or email so we can arrange a convenient time to discuss your project.

    Looking forward to speaking with you.
    André
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  4. #4
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Add opportunity close to calendar.

    All you need is a logic_hook for opportunities at events before_save and after_delete.

    At event before_save you insert or update a task(or call or meeting) entry with name 'close opportunity...', date_due = close_date & " 09:00:00", deleted=0 , parent_type ='Opportunities' and parent_id = id of the closing opportunity.

    The hook will change the task on every change of the opportunity.

    At event after_delete, the task entry must be updated to deleted too.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  5. #5
    vbondoux is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    50

    Default Re: Add opportunity close to calendar.

    kuske you just made me happy in this day, but a little question more, where can I add this logic_hook, in which file of opportunity ? I really don't see before_save event in those files

    Thanks a lot

  6. #6
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Add opportunity close to calendar.

    ok, give me 12 hours and then come back to this dark corner.

  7. #7
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Add opportunity close to calendar.

    Back again, and needed only 1 hiur to write such a hook.

    You can find it in the attached zip file.
    Unpack the two contained files to directory <sugar-root>/custom/modules/Opportunities/

    Please read the code.

    Greetings from Germany
    Attached Files Attached Files
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  8. #8
    vbondoux is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    50

    Default Re: Add opportunity close to calendar.

    Thanks a lot !
    And it works ... automaticly ?
    You're the best today !

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Trying to add contact opportunity relationship
    By rutfield in forum Developer Help
    Replies: 6
    Last Post: 2012-03-27, 06:10 AM
  2. Replies: 1
    Last Post: 2007-05-26, 06:15 PM
  3. Modifying the Quick Add Opportunity
    By juanwang in forum Help
    Replies: 1
    Last Post: 2007-05-19, 12:18 AM
  4. Replies: 5
    Last Post: 2006-09-13, 08:34 AM
  5. Can't add multiday even to the Calendar
    By bjs3 in forum General Discussion
    Replies: 2
    Last Post: 2005-07-12, 04:31 AM

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
  •