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