/tests/modules/UpgradeWizard/SugarMerge/siupgrade_metadata_files/custom/modules/Opportunities/metadata/editviewdefs.php
https://github.com/bkilgore/sugarcrm_dev · PHP · 402 lines · 390 code · 5 blank · 7 comment · 0 complexity · 3cbbc287b0799fc238f380126543a670 MD5 · raw file
- <?php
- $viewdefs ['Opportunities'] =
- array (
- 'EditView' =>
- array (
- 'templateMeta' =>
- array (
- 'maxColumns' => '2',
- 'widths' =>
- array (
- 0 =>
- array (
- 'label' => '10',
- 'field' => '30',
- ),
- 1 =>
- array (
- 'label' => '10',
- 'field' => '30',
- ),
- ),
- 'javascript' => '{$PROBABILITY_SCRIPT}',
- ),
- 'panels' =>
- array (
- 'default' =>
- array (
- 0 =>
- array (
- 0 =>
- array (
- 'name' => 'name',
- 'displayParams' =>
- array (
- 'required' => true,
- ),
- 'label' => 'LBL_OPPORTUNITY_NAME',
- ),
- 1 =>
- array (
- 'name' => 'currency_id',
- 'label' => 'LBL_CURRENCY',
- ),
- ),
- 1 =>
- array (
- 0 =>
- array (
- 'name' => 'account_name',
- 'label' => 'LBL_ACCOUNT_NAME',
- ),
- 1 =>
- array (
- 'name' => 'amount',
- 'displayParams' =>
- array (
- 'required' => true,
- ),
- 'label' => 'LBL_AMOUNT',
- ),
- ),
- // BEGIN jostrow MoofCart customization
- // See ITRequest #9622
- '1.5' => array(
- NULL,
- array(
- 'name' => 'discount_code_c',
- 'label' => 'LBL_DISCOUNT_CODE',
- ),
- ),
- // END jostrow MoofCart customization
- 2 =>
- array (
- 0 =>
- array (
- 'name' => 'opportunity_type',
- 'label' => 'LBL_TYPE',
- ),
- 1 =>
- array (
- 'name' => 'date_closed',
- 'displayParams' =>
- array (
- 'required' => true,
- ),
- 'label' => 'LBL_DATE_CLOSED',
- ),
- ),
- 3 =>
- array (
- 0 =>
- array (
- 'name' => 'operating_system',
- 'label' => 'LBL_OPERATING_SYSTEM',
- ),
- 1 =>
- array (
- 'name' => 'users',
- 'label' => 'LBL_USERS_1',
- ),
- ),
- 4 =>
- array (
- 0 =>
- array (
- 'name' => 'campaign_name',
- 'label' => 'LBL_CAMPAIGN',
- ),
- 1 =>
- array (
- 'name' => 'additional_support_cases_c',
- 'label' => 'Additional_Support_Cases__c',
- ),
- ),
- 5 =>
- array (
- 1 =>
- array (
- 'name' => 'additional_training_credits_c',
- 'label' => 'Learning_Credits__c',
- ),
- ),
- 6 =>
- array (
- 0 =>
- array (
- 'name' => 'email_client',
- 'label' => 'LBL_EMAIL_CLIENT',
- ),
- 1 =>
- array (
- 'name' => 'sales_stage',
- 'displayParams' =>
- array (
- 'required' => true,
- ),
- 'label' => 'LBL_SALES_STAGE',
- 'customCode' => '
- <script src=\'custom/include/javascript/custom_javascript.js\'></script>
- {html_options id="sales_stage" name="sales_stage" options=$fields.sales_stage.options selected=$fields.sales_stage.value onChange=\'checkOpportunitySalesStage()\'}
- ',
- ),
- ),
- 7 =>
- array (
- 1 =>
- array (
- 'name' => 'probability',
- 'label' => 'LBL_PROBABILITY',
- ),
- ),
- 8 =>
- array (
- ),
- 9 =>
- array (
- 1 =>
- array (
- 'name' => 'Term_c',
- 'label' => 'Term__c',
- ),
- ),
- 10 =>
- array (
- 0 =>
- array (
- 'name' => 'lead_source',
- 'label' => 'LBL_LEAD_SOURCE',
- ),
- 1 =>
- array (
- 'name' => 'Revenue_Type_c',
- 'label' => 'Revenue_Type__c',
- ),
- ),
- 11 =>
- array (
- 0 =>
- array (
- 'name' => 'partner_name',
- 'label' => 'LBL_PARTNER_NAME',
- ),
- 1 =>
- array (
- 'name' => 'renewal_date_c',
- 'label' => 'Renewal_Date_c',
- ),
- ),
- 12 =>
- array (
- 0 =>
- array (
- 'name' => 'current_solution',
- 'label' => 'LBL_CURRENT_SOLUTION',
- ),
- 1 =>
- array (
- 'name' => 'order_number',
- 'label' => 'LBL_ORDER_NUMBER',
- ),
- ),
- 13 =>
- array (
- 1 =>
- array (
- 'name' => 'order_type_c',
- 'label' => 'LBL_ORDER_TYPE_C',
- ),
- ),
- 14 =>
- array (
- 0 =>
- array (
- 'name' => 'competitor_1',
- 'label' => 'LBL_COMPETITOR_1',
- ),
- 1 =>
- array (
- 'name' => 'true_up_c',
- 'label' => 'LBL_TRUE_UP',
- ),
- ),
- 15 =>
- array (
- 0 =>
- array (
- 'name' => 'competitor_2',
- 'label' => 'LBL_COMPETITOR_2',
- ),
- 1 =>
- array (
- 'name' => 'next_step',
- 'label' => 'LBL_NEXT_STEP',
- 'customCode' => '<textarea id="{$fields.next_step.name}" name="{$fields.next_step.name}" rows="4" cols="60" title=\'\' tabindex="1">{$fields.next_step.value}</textarea>',
- ),
- ),
- 16 =>
- array (
- 0 =>
- array (
- 'name' => 'competitor_3',
- 'label' => 'LBL_COMPETITOR_3',
- ),
- 1 =>
- array (
- 'name' => 'next_step_due_date',
- 'label' => 'LBL_NEXT_STEP_DUE_DATE',
- ),
- ),
- 17 =>
- array (
- 0 =>
- array (
- 'name' => 'competitor_expiration_c',
- 'label' => 'LBL_COMPETITOR_EXPIRATION',
- ),
- ),
- 18 =>
- array (
- 0 =>
- array (
- 'name' => 'demo_c',
- 'label' => 'Demo_1',
- ),
- 1 =>
- array (
- 'name' => 'top20deal_c',
- 'label' => 'LBL_TOP20DEAL',
- ),
- ),
- 19 =>
- array (
- 0 =>
- array (
- 'name' => 'demo_date_c',
- 'label' => 'Demo Date',
- ),
- ),
- 20 =>
- array (
- 0 =>
- array (
- 'name' => 'evaluation',
- 'label' => 'LBL_EVALUATION',
- ),
- 1 =>
- array (
- 'name' => 'closed_lost_reason_c',
- 'label' => 'LBL_CLOSED_LOST_REASON_C',
- //** BEGIN CUSTOMIZATION EDDY :: ITTix 13077
- 'customCode' => '
- <script src=\'custom/include/javascript/custom_javascript.js\'></script>
- {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)\' }
- ',
- //** END CUSTOMIZATION EDDY :: ITTix 13077
- ),
- ),
- 21 =>
- array (
- 0 =>
- array (
- 'name' => 'evaluation_start_date',
- 'label' => 'LBL_EVALUATION_START_DATE',
- ),
- 1 =>
- array (
- 'name' => 'closed_lost_reason_detail_c',
- 'label' => 'LBL_CLOSED_LOST_REASON_DETAIL',
- ),
- ),
- 22 =>
- array (
- 0 =>
- array (
- 'name' => 'Evaluation_Close_Date_c',
- 'label' => 'Evaluation_Close_Date__c',
- ),
- 1 =>
- array (
- 'name' => 'primary_reason_competitor_c',
- 'label' => 'LBL_PRIMARY_REASON_COMPETITOR',
- ),
- ),
- 23 =>
- array (
- 0 => array(),
- 1 =>
- array (
- 'name' => 'closed_lost_description',
- 'label' => 'LBL_CLOSED_LOST_DESCRIPTION',
- //** BEGIN CUSTOMIZATION EDDY :: ITTix 13077
- 'customCode' => '
- <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>
- <script>
- detail2val = \'{$fields.closed_lost_reason_detail_c.value}\';
- checkOppClosedReasonDependentDropdown("{$fields.closed_lost_reason_detail_c.name}", false,detail2val);//call initial drop down rendering
- </script>
- ',
- //** END CUSTOMIZATION EDDY :: ITTix 13077
- ),
- ),
- 24 =>
- array (
- 0 =>
- array(
- 'name' => 'partner_assigned_to_c',
- 'label' => 'Partner_Assigned_To_c',
- ),
- 1 =>
- array (
- 'name' => 'accepted_by_partner_c',
- 'label' => 'LBL_ACCEPTED_BY_PARTNER',
- ),
- ),
- 25 =>
- array (
- 0 =>
- array (
- 'name' => 'team_name',
- 'displayParams' =>
- array (
- 'required' => true,
- ),
- 'label' => 'LBL_TEAM',
- ),
- 1 =>
- array (
- 'name' => 'partner_contact_c',
- 'label' => 'LBL_PARTNER_CONTACT',
- ),
- ),
- 26 =>
- array (
- 0 =>
- array (
- 'name' => 'assigned_user_name',
- 'label' => 'LBL_ASSIGNED_TO_NAME',
- ),
- 1 =>
- array (
- 'name' => 'associated_rep_c',
- 'label' => 'Associated_Rep_c',
- ),
- ),
- 27 =>
- array (
- 0 =>
- array (
- 'name' => 'description',
- 'label' => 'LBL_DESCRIPTION',
- ),
- ),
- ),
- ),
- ),
- );
- ?>