]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/siupgrade_metadata_files/custom/modules/Opportunities/metadata/editviewdefs.php
Release 6.2.0
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / siupgrade_metadata_files / custom / modules / Opportunities / metadata / editviewdefs.php
1 <?php
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
5  * 
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.
12  * 
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
16  * details.
17  * 
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
21  * 02110-1301 USA.
22  * 
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.
25  * 
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.
29  * 
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  ********************************************************************************/
36
37 $viewdefs ['Opportunities'] = 
38 array (
39   'EditView' => 
40   array (
41     'templateMeta' => 
42     array (
43       'maxColumns' => '2',
44       'widths' => 
45       array (
46         0 => 
47         array (
48           'label' => '10',
49           'field' => '30',
50         ),
51         1 => 
52         array (
53           'label' => '10',
54           'field' => '30',
55         ),
56       ),
57       'javascript' => '{$PROBABILITY_SCRIPT}',
58     ),
59     'panels' => 
60     array (
61       'default' => 
62       array (
63         0 => 
64         array (
65           0 => 
66           array (
67             'name' => 'name',
68             'displayParams' => 
69             array (
70               'required' => true,
71             ),
72             'label' => 'LBL_OPPORTUNITY_NAME',
73           ),
74           1 => 
75           array (
76             'name' => 'currency_id',
77             'label' => 'LBL_CURRENCY',
78           ),
79         ),
80         1 => 
81         array (
82           0 => 
83           array (
84             'name' => 'account_name',
85             'label' => 'LBL_ACCOUNT_NAME',
86           ),
87           1 => 
88           array (
89             'name' => 'amount',
90             'displayParams' => 
91             array (
92               'required' => true,
93             ),
94             'label' => 'LBL_AMOUNT',
95           ),
96         ),
97         // BEGIN jostrow MoofCart customization
98         // See ITRequest #9622
99
100         '1.5' => array(
101                 NULL,
102                 array(
103                         'name' => 'discount_code_c',
104                         'label' => 'LBL_DISCOUNT_CODE',
105                 ),
106         ),
107
108         // END jostrow MoofCart customization
109
110         2 => 
111         array (
112           0 => 
113           array (
114             'name' => 'opportunity_type',
115             'label' => 'LBL_TYPE',
116           ),
117           1 => 
118           array (
119             'name' => 'date_closed',
120             'displayParams' => 
121             array (
122               'required' => true,
123             ),
124             'label' => 'LBL_DATE_CLOSED',
125           ),
126         ),
127         3 => 
128         array (
129           0 => 
130           array (
131             'name' => 'operating_system',
132             'label' => 'LBL_OPERATING_SYSTEM',
133           ),
134           1 => 
135           array (
136             'name' => 'users',
137             'label' => 'LBL_USERS_1',
138           ),
139         ),
140         4 => 
141         array (
142           0 => 
143           array (
144             'name' => 'campaign_name',
145             'label' => 'LBL_CAMPAIGN',
146           ),
147           1 => 
148           array (
149             'name' => 'additional_support_cases_c',
150             'label' => 'Additional_Support_Cases__c',
151           ),
152         ),
153         5 => 
154         array (
155           1 => 
156           array (
157             'name' => 'additional_training_credits_c',
158             'label' => 'Learning_Credits__c',
159           ),
160         ),
161         6 => 
162         array (
163           0 => 
164           array (
165             'name' => 'email_client',
166             'label' => 'LBL_EMAIL_CLIENT',
167           ),
168           1 => 
169           array (
170             'name' => 'sales_stage',
171             'displayParams' => 
172             array (
173               'required' => true,
174             ),
175             'label' => 'LBL_SALES_STAGE',
176             'customCode' => '
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()\'}
179             ',
180           ),
181         ),
182         7 => 
183         array (
184           1 => 
185           array (
186             'name' => 'probability',
187             'label' => 'LBL_PROBABILITY',
188           ),
189         ),
190         8 => 
191         array (
192         ),
193         9 => 
194         array (
195           1 => 
196           array (
197             'name' => 'Term_c',
198             'label' => 'Term__c',
199           ),
200         ),
201         10 => 
202         array (
203           0 => 
204           array (
205             'name' => 'lead_source',
206             'label' => 'LBL_LEAD_SOURCE',
207           ),
208           1 => 
209           array (
210             'name' => 'Revenue_Type_c',
211             'label' => 'Revenue_Type__c',
212           ),
213         ),
214         11 => 
215         array (
216           0 => 
217           array (
218             'name' => 'partner_name',
219             'label' => 'LBL_PARTNER_NAME',
220           ),
221           1 => 
222           array (
223             'name' => 'renewal_date_c',
224             'label' => 'Renewal_Date_c',
225           ),
226         ),
227         12 => 
228         array (
229           0 => 
230           array (
231             'name' => 'current_solution',
232             'label' => 'LBL_CURRENT_SOLUTION',
233           ),
234           1 => 
235           array (
236             'name' => 'order_number',
237             'label' => 'LBL_ORDER_NUMBER',
238           ),
239         ),
240         13 => 
241         array (
242           1 => 
243           array (
244             'name' => 'order_type_c',
245             'label' => 'LBL_ORDER_TYPE_C',
246           ),
247         ),
248         14 => 
249         array (
250           0 => 
251           array (
252             'name' => 'competitor_1',
253             'label' => 'LBL_COMPETITOR_1',
254           ),
255           1 => 
256           array (
257             'name' => 'true_up_c',
258             'label' => 'LBL_TRUE_UP',
259           ),
260         ),
261         15 => 
262         array (
263           0 => 
264           array (
265             'name' => 'competitor_2',
266             'label' => 'LBL_COMPETITOR_2',
267           ),
268           1 => 
269           array (
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>',
273           ),
274         ),
275         16 => 
276         array (
277           0 => 
278           array (
279             'name' => 'competitor_3',
280             'label' => 'LBL_COMPETITOR_3',
281           ),
282           1 => 
283           array (
284             'name' => 'next_step_due_date',
285             'label' => 'LBL_NEXT_STEP_DUE_DATE',
286           ),
287         ),
288         17 => 
289         array (
290           0 => 
291           array (
292             'name' => 'competitor_expiration_c',
293             'label' => 'LBL_COMPETITOR_EXPIRATION',
294           ),
295         ),
296         18 => 
297         array (
298           0 => 
299           array (
300             'name' => 'demo_c',
301             'label' => 'Demo_1',
302           ),
303           1 => 
304           array (
305             'name' => 'top20deal_c',
306             'label' => 'LBL_TOP20DEAL',
307           ),
308         ),
309         19 => 
310         array (
311           0 => 
312           array (
313             'name' => 'demo_date_c',
314             'label' => 'Demo Date',
315           ),
316         ),
317         20 => 
318         array (
319           0 => 
320           array (
321             'name' => 'evaluation',
322             'label' => 'LBL_EVALUATION',
323           ),
324           1 => 
325           array (
326             'name' => 'closed_lost_reason_c',
327             'label' => 'LBL_CLOSED_LOST_REASON_C',
328 //** BEGIN  CUSTOMIZATION EDDY :: ITTix 13077
329             'customCode' => '
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)\' }
332 ',
333 //** END  CUSTOMIZATION EDDY :: ITTix 13077
334           ),
335         ),
336         21 => 
337         array (
338           0 => 
339           array (
340             'name' => 'evaluation_start_date',
341             'label' => 'LBL_EVALUATION_START_DATE',
342           ),
343           1 => 
344           array (
345             'name' => 'closed_lost_reason_detail_c',
346             'label' => 'LBL_CLOSED_LOST_REASON_DETAIL',
347
348           ),
349         ),
350         22 => 
351         array (
352           0 => 
353           array (
354             'name' => 'Evaluation_Close_Date_c',
355             'label' => 'Evaluation_Close_Date__c',
356           ),
357           1 =>
358           array (
359             'name' => 'primary_reason_competitor_c',
360             'label' => 'LBL_PRIMARY_REASON_COMPETITOR',
361           ),
362         ),
363         23 =>
364         array (
365           0 => array(),
366           1 =>
367           array (
368             'name' => 'closed_lost_description',
369             'label' => 'LBL_CLOSED_LOST_DESCRIPTION',
370 //** BEGIN  CUSTOMIZATION EDDY :: ITTix 13077
371            'customCode' => '
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>
373 <script>
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
376 </script>
377         ',
378 //** END  CUSTOMIZATION EDDY :: ITTix 13077
379
380           ),
381         ),
382         24 => 
383         array (
384           0 => 
385           array(
386             'name' => 'partner_assigned_to_c',
387             'label' => 'Partner_Assigned_To_c',
388           ),
389           1 => 
390           array (
391             'name' => 'accepted_by_partner_c',
392             'label' => 'LBL_ACCEPTED_BY_PARTNER',
393           ),
394         ),
395         25 => 
396         array (
397           0 => 
398           array (
399             'name' => 'team_name',
400             'displayParams' => 
401             array (
402               'required' => true,
403             ),
404             'label' => 'LBL_TEAM',
405           ),
406           1 =>
407           array (
408             'name' => 'partner_contact_c',
409             'label' => 'LBL_PARTNER_CONTACT',
410           ),
411         ),
412         26 => 
413         array (
414           0 => 
415           array (
416             'name' => 'assigned_user_name',
417             'label' => 'LBL_ASSIGNED_TO_NAME',
418           ),
419           1 => 
420           array (
421             'name' => 'associated_rep_c',
422             'label' => 'Associated_Rep_c',
423           ),
424         ),
425         27 => 
426         array (
427           0 => 
428           array (
429             'name' => 'description',
430             'label' => 'LBL_DESCRIPTION',
431           ),
432         ),
433       ),
434     ),
435   ),
436 );
437 ?>