2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
6 * This program is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Affero General Public License version 3 as published by the
8 * Free Software Foundation with the addition of the following permission added
9 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
18 * You should have received a copy of the GNU Affero General Public License along with
19 * this program; if not, see http://www.gnu.org/licenses or write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
26 * The interactive user interfaces in modified source and object code versions
27 * of this program must display Appropriate Legal Notices, as required under
28 * Section 5 of the GNU Affero General Public License version 3.
30 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31 * these Appropriate Legal Notices must retain the display of the "Powered by
32 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33 * technical reasons, the Appropriate Legal Notices must display the words
34 * "Powered by SugarCRM".
35 ********************************************************************************/
37 $viewdefs ['Opportunities'] =
57 'javascript' => '{$PROBABILITY_SCRIPT}',
72 'label' => 'LBL_OPPORTUNITY_NAME',
76 'name' => 'currency_id',
77 'label' => 'LBL_CURRENCY',
84 'name' => 'account_name',
85 'label' => 'LBL_ACCOUNT_NAME',
94 'label' => 'LBL_AMOUNT',
97 // BEGIN jostrow MoofCart customization
98 // See ITRequest #9622
103 'name' => 'discount_code_c',
104 'label' => 'LBL_DISCOUNT_CODE',
108 // END jostrow MoofCart customization
114 'name' => 'opportunity_type',
115 'label' => 'LBL_TYPE',
119 'name' => 'date_closed',
124 'label' => 'LBL_DATE_CLOSED',
131 'name' => 'operating_system',
132 'label' => 'LBL_OPERATING_SYSTEM',
137 'label' => 'LBL_USERS_1',
144 'name' => 'campaign_name',
145 'label' => 'LBL_CAMPAIGN',
149 'name' => 'additional_support_cases_c',
150 'label' => 'Additional_Support_Cases__c',
157 'name' => 'additional_training_credits_c',
158 'label' => 'Learning_Credits__c',
165 'name' => 'email_client',
166 'label' => 'LBL_EMAIL_CLIENT',
170 'name' => 'sales_stage',
175 'label' => 'LBL_SALES_STAGE',
177 <script src=\'custom/include/javascript/custom_javascript.js\'></script>
178 {html_options id="sales_stage" name="sales_stage" options=$fields.sales_stage.options selected=$fields.sales_stage.value onChange=\'checkOpportunitySalesStage()\'}
186 'name' => 'probability',
187 'label' => 'LBL_PROBABILITY',
198 'label' => 'Term__c',
205 'name' => 'lead_source',
206 'label' => 'LBL_LEAD_SOURCE',
210 'name' => 'Revenue_Type_c',
211 'label' => 'Revenue_Type__c',
218 'name' => 'partner_name',
219 'label' => 'LBL_PARTNER_NAME',
223 'name' => 'renewal_date_c',
224 'label' => 'Renewal_Date_c',
231 'name' => 'current_solution',
232 'label' => 'LBL_CURRENT_SOLUTION',
236 'name' => 'order_number',
237 'label' => 'LBL_ORDER_NUMBER',
244 'name' => 'order_type_c',
245 'label' => 'LBL_ORDER_TYPE_C',
252 'name' => 'competitor_1',
253 'label' => 'LBL_COMPETITOR_1',
257 'name' => 'true_up_c',
258 'label' => 'LBL_TRUE_UP',
265 'name' => 'competitor_2',
266 'label' => 'LBL_COMPETITOR_2',
270 'name' => 'next_step',
271 'label' => 'LBL_NEXT_STEP',
272 'customCode' => '<textarea id="{$fields.next_step.name}" name="{$fields.next_step.name}" rows="4" cols="60" title=\'\' tabindex="1">{$fields.next_step.value}</textarea>',
279 'name' => 'competitor_3',
280 'label' => 'LBL_COMPETITOR_3',
284 'name' => 'next_step_due_date',
285 'label' => 'LBL_NEXT_STEP_DUE_DATE',
292 'name' => 'competitor_expiration_c',
293 'label' => 'LBL_COMPETITOR_EXPIRATION',
305 'name' => 'top20deal_c',
306 'label' => 'LBL_TOP20DEAL',
313 'name' => 'demo_date_c',
314 'label' => 'Demo Date',
321 'name' => 'evaluation',
322 'label' => 'LBL_EVALUATION',
326 'name' => 'closed_lost_reason_c',
327 'label' => 'LBL_CLOSED_LOST_REASON_C',
328 //** BEGIN CUSTOMIZATION EDDY :: ITTix 13077
330 <script src=\'custom/include/javascript/custom_javascript.js\'></script>
331 {html_options id="closed_lost_reason_c" name="closed_lost_reason_c" options=$fields.closed_lost_reason_c.options selected=$fields.closed_lost_reason_c.value onChange=\'checkOppClosedReasonDependentDropdown("closed_lost_reason_detail_c", true)\' }
333 //** END CUSTOMIZATION EDDY :: ITTix 13077
340 'name' => 'evaluation_start_date',
341 'label' => 'LBL_EVALUATION_START_DATE',
345 'name' => 'closed_lost_reason_detail_c',
346 'label' => 'LBL_CLOSED_LOST_REASON_DETAIL',
354 'name' => 'Evaluation_Close_Date_c',
355 'label' => 'Evaluation_Close_Date__c',
359 'name' => 'primary_reason_competitor_c',
360 'label' => 'LBL_PRIMARY_REASON_COMPETITOR',
368 'name' => 'closed_lost_description',
369 'label' => 'LBL_CLOSED_LOST_DESCRIPTION',
370 //** BEGIN CUSTOMIZATION EDDY :: ITTix 13077
372 <textarea id="{$fields.closed_lost_description.name}" onChange=\'checkOppClosedReasonDependentDropdown("closed_lost_reason_detail_c", true)\' cols="60" rows="4" name="{$fields.closed_lost_description.name}">{$fields.closed_lost_description.value}</textarea>
374 detail2val = \'{$fields.closed_lost_reason_detail_c.value}\';
375 checkOppClosedReasonDependentDropdown("{$fields.closed_lost_reason_detail_c.name}", false,detail2val);//call initial drop down rendering
378 //** END CUSTOMIZATION EDDY :: ITTix 13077
386 'name' => 'partner_assigned_to_c',
387 'label' => 'Partner_Assigned_To_c',
391 'name' => 'accepted_by_partner_c',
392 'label' => 'LBL_ACCEPTED_BY_PARTNER',
399 'name' => 'team_name',
404 'label' => 'LBL_TEAM',
408 'name' => 'partner_contact_c',
409 'label' => 'LBL_PARTNER_CONTACT',
416 'name' => 'assigned_user_name',
417 'label' => 'LBL_ASSIGNED_TO_NAME',
421 'name' => 'associated_rep_c',
422 'label' => 'Associated_Rep_c',
429 'name' => 'description',
430 'label' => 'LBL_DESCRIPTION',