How could i add more start date intervals to the calls module?

I would like to know how could i add more intervals of minutes to the start date of the calls, i know how to add more duration intervals, but what i would like to do is to be able to register start dates for the call by minute or by 5 minutes. Also would like to know how could i make the calendar display more intervals of time per hour.

Not easy. I edited the following files:

./custom/include/SugarFields/Fields/Datetimecombo/EditView.tpl
./custom/include/SugarFields/Fields/Datetimecombo/Datetimecombo.js
./custom/include/SugarFields/Fields/Time/EditView.tpl
./custom/include/SugarFields/Fields/Time/Time.js

and got as far as being able to add whatever increments I wanted into the start time and duration of meetings, but not calls.

Around line 53 of Datetimecombo.js (which is an unformatted mess…), change the

<option>

values:


for(i=h1;i<=h2;i++){val=i<10?"0"+i:i;text+='<option value="'+val+'" '+(i==this.hrs?"SELECTED":"")+'>'+val+'</option>';}
text+='\n</select>&nbsp;';text+=this.timeseparator;text+='\n&nbsp;<select class="datetimecombo_time" size="1" id="'+this.fieldname+'_minutes" tabindex="'+this.tabindex+'" o
text+='\n<option value="00" '+(this.mins==0?"SELECTED":"")+'>00</option>';
text+='\n<option value="05" '+(this.mins==5?"SELECTED":"")+'>05</option>';
text+='\n<option value="10" '+(this.mins==10?"SELECTED":"")+'>10</option>';
text+='\n<option value="15" '+(this.mins==15?"SELECTED":"")+'>15</option>';
text+='\n<option value="20" '+(this.mins==20?"SELECTED":"")+'>20</option>';
text+='\n<option value="25" '+(this.mins==25?"SELECTED":"")+'>25</option>';
text+='\n<option value="30" '+(this.mins==30?"SELECTED":"")+'>30</option>';
text+='\n<option value="35" '+(this.mins==35?"SELECTED":"")+'>35</option>';
text+='\n<option value="40" '+(this.mins==40?"SELECTED":"")+'>40</option>';
text+='\n<option value="42" '+(this.mins==42?"SELECTED":"")+'>42</option>';
text+='\n<option value="45" '+(this.mins==45?"SELECTED":"")+'>45</option>';
text+='\n<option value="50" '+(this.mins==50?"SELECTED":"")+'>50</option>';
text+='\n<option value="55" '+(this.mins==55?"SELECTED":"")+'>55</option>';
text+='\n</select>';

and similarly around like 20 of Time.js:


Time.prototype.html=function(callback){var text='<select class="datetimecombo_time" size="1" id="'+this.fieldname+'_hours" tabindex="'+this.tabindex+'" onchange="combo_'+th

text+='\n</select>&nbsp;';text+=this.timeseparator;text+='\n&nbsp;<select class="datetimecombo_time" size="1" id="'+this.fieldname+'_minutes" tabindex="'+this.tabindex+'" o
text+='\n<option value="00" '+(this.mins==0?"SELECTED":"")+'>00</option>';
text+='\n<option value="05" '+(this.mins==5?"SELECTED":"")+'>05</option>';
text+='\n<option value="10" '+(this.mins==10?"SELECTED":"")+'>10</option>';
text+='\n<option value="15" '+(this.mins==15?"SELECTED":"")+'>15</option>';
text+='\n<option value="20" '+(this.mins==20?"SELECTED":"")+'>20</option>';
text+='\n<option value="25" '+(this.mins==25?"SELECTED":"")+'>25</option>';
text+='\n<option value="30" '+(this.mins==30?"SELECTED":"")+'>30</option>';
text+='\n<option value="35" '+(this.mins==35?"SELECTED":"")+'>35</option>';
text+='\n<option value="40" '+(this.mins==40?"SELECTED":"")+'>40</option>';
text+='\n<option value="42" '+(this.mins==42?"SELECTED":"")+'>42</option>';
text+='\n<option value="45" '+(this.mins==45?"SELECTED":"")+'>45</option>';
text+='\n<option value="50" '+(this.mins==50?"SELECTED":"")+'>50</option>';
text+='\n<option value="55" '+(this.mins==55?"SELECTED":"")+'>55</option>';
text+='\n</select>'

…but in the end, I just told my staff “It doesn’t matter” and let them use 15 minute increments!!

If you’ve figured out how to add increments to the duration of calls, as you mentioned, I’d love to learn from you!