Results 1 to 8 of 8

Thread: Default values for call duration

  1. #1
    lanx is offline Sugar Community Member
    Join Date
    Dec 2006
    Posts
    37

    Default Default values for call duration

    SugarCRM Open Source version 4.5.0d (build 1168)

    Basically I have found that there is a lot of time wasted in the day because the average value for "Duration" when doing a scheduled call is "1" and then "00" for the drop down box. I would like to change the default value to "0" and then "15" from the drop down box.

    Suggestions?

  2. #2
    lanx is offline Sugar Community Member
    Join Date
    Dec 2006
    Posts
    37

    Default Re: Default values for call duration

    bump, anyone have a solution?

  3. #3
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Default values for call duration

    I am not sure I understand the question, but I think what you might be asking is how would one go about editing the Duration values for calls.

    Assuming my interpretation is correct, you'll need edit the Call.php file directly:

    You'll want to look for this line:

    Code:
    var $minutes_values = array('0'=>'00','15'=>'15','30'=>'30','45'=>'45');
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

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

    Default Re: Default values for call duration

    It seems to be the old dropdown problem:

    if you change the above lines in call.php to

    var $minutes_value_default = '0015';
    var $minutes_values = array('0000'=>'00','0015'=>'15','0030'=>'30','0045 '=>'45');

    it works. In any mystical way the leading zeros are needed.

    regards
    hk

  5. #5
    lanx is offline Sugar Community Member
    Join Date
    Dec 2006
    Posts
    37

    Default Re: Default values for call duration

    Quote Originally Posted by kuske
    It seems to be the old dropdown problem:

    if you change the above lines in call.php to

    var $minutes_value_default = '0015';
    var $minutes_values = array('0000'=>'00','0015'=>'15','0030'=>'30','0045 '=>'45');

    it works. In any mystical way the leading zeros are needed.

    regards
    hk
    I changed this in /modules/Calls/Call.php and it didn't do anything. Basically, I am not sure if I explained it well enough. In a nut-shell this is what happens NOW:

    You click on "Schedule Call" within the Leads and a little form comes up and the call "Duration" shows 1 and then a drop down with 00, basically meaning 1 hour and 00 minutes because the 00 drop down will become 00/15/30/45. By default, a scheduled call shouldn't be more than a hour.

    So this is what I want it to do:

    You click on "Schedule Call" within the Leads and a little form comes up and the call "Duration" shows 0 and then a drop down with 15, basically meaning 0 hours and 15 minutes.

  6. #6
    SamuelAugy is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Paris (France)
    Posts
    238

    Default Re: Default values for call duration

    Hello,

    You can change the value of this line $focus->duration_hours = "1"; to $focus->duration_hours = "0"; in modules\calls\CallsQuickCreate.php.

  7. #7
    lanx is offline Sugar Community Member
    Join Date
    Dec 2006
    Posts
    37

    Default Re: Default values for call duration

    Quote Originally Posted by SamuelAugy
    Hello,

    You can change the value of this line $focus->duration_hours = "1"; to $focus->duration_hours = "0"; in modules\calls\CallsQuickCreate.php.
    That worked but I couldn't find in there about the minutes. Currently now the default says "0" hours and "00" minutes. I would like it to be "15" minutes by default.

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

    Default Re: Default values for call duration

    Simply add the missing assignment in modules/Calls/CallsQuickCreate.php:

    PHP Code:
            if (!isset ($focus->duration_hours))
                
    $focus->duration_hours "0";
            if (!isset (
    $focus->duration_minutes))
                
    $focus->duration_minutes "15"
    hk

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Add/Modify DB
    By russel2x2 in forum Developer Help
    Replies: 4
    Last Post: 2007-12-11, 10:19 AM
  2. Replies: 3
    Last Post: 2006-10-18, 12:47 AM
  3. SugarCrm 4.0 Patch
    By mgamboa in forum General Discussion
    Replies: 0
    Last Post: 2005-12-21, 04:14 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
  •