2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2011 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 ********************************************************************************/
53 'customCode' => '<input title="{$APP.LBL_DUP_MERGE}" accesskey="M" class="button" onclick="this.form.return_module.value=\'Opportunities\';this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Step1\'; this.form.module.value=\'MergeRecords\';" name="button" value="{$APP.LBL_DUP_MERGE}" type="submit">',
57 'customCode' => '<input title="Close Wizard" accesskey="Z" class="button" onclick="this.form.return_module.value=\'Opportunities\';this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'OpportunityWizard\'; this.form.module.value=\'Opportunities\';" name="button" value="Close Wizard" type="submit">',
85 'label' => 'LBL_OPPORTUNITY_NAME',
90 'label' => '{$MOD.LBL_AMOUNT} ({$CURRENCY})',
97 'name' => 'account_name',
98 'label' => 'LBL_ACCOUNT_NAME',
102 'name' => 'date_closed',
103 'label' => 'LBL_DATE_CLOSED',
117 'name' => 'discount_code_c',
118 'label' => 'LBL_DISCOUNT_CODE',
125 'name' => 'opportunity_type',
126 'label' => 'LBL_TYPE',
131 'label' => 'LBL_USERS_1',
138 'name' => 'email_client',
139 'label' => 'LBL_EMAIL_CLIENT',
143 'name' => 'additional_support_cases_c',
144 'label' => 'Additional_Support_Cases__c',
151 'name' => 'processed_by_moofcart_c',
152 'label' => 'LBL_PROCESSED_BY_MOOFCART',
156 'name' => 'additional_training_credits_c',
157 'label' => 'Learning_Credits__c',
164 'name' => 'trial_name_c',
165 'label' => 'Trial URL',
169 'name' => 'sales_stage',
170 'label' => 'LBL_SALES_STAGE',
177 'name' => 'trial_expiration_c',
178 'label' => 'Trial Expiration',
179 'customCode' => '{php} global $timedate; $this->assign("jmo_trialExpirationDB", $timeDate->to_db($this->_tpl_vars["fields"]["trial_expiration_c"]["value"])); {/php} {$fields.trial_expiration_c.value}{if $fields.trial_extended_c.value eq 0 && !empty($fields.trial_name_c.value) && strtotime("now") < $jmo_trialExpirationDB|date_format:"%s"} <button type="submit" onClick="document.location=\'/scripts/7daytrials/trials.php?opportunity_id={$fields.id.value}\';">Extend Trial</button>{/if}',
183 'name' => 'probability',
184 'label' => 'LBL_PROBABILITY',
191 'name' => 'campaign_name',
192 'label' => 'LBL_CAMPAIGN',
200 'name' => 'lead_source',
201 'label' => 'LBL_LEAD_SOURCE',
209 'name' => 'current_solution',
210 'label' => 'LBL_CURRENT_SOLUTION',
215 'label' => 'Term__c',
222 'name' => 'competitor_1',
223 'label' => 'LBL_COMPETITOR_1',
227 'name' => 'Revenue_Type_c',
228 'label' => 'Revenue_Type__c',
235 'name' => 'competitor_2',
236 'label' => 'LBL_COMPETITOR_2',
240 'name' => 'renewal_date_c',
241 'label' => 'Renewal_Date_c',
248 'name' => 'competitor_3',
249 'label' => 'LBL_COMPETITOR_3',
253 'name' => 'order_number',
254 'label' => 'LBL_ORDER_NUMBER',
255 'customCode' => '<a href="http://www.sugarcrm.com/sugarshop/admin/order.php?orderid={$fields.order_number.value}">{$fields.order_number.value}</a>',
262 'name' => 'competitor_expiration_c',
263 'label' => 'LBL_COMPETITOR_EXPIRATION',
267 'name' => 'order_type_c',
268 'label' => 'LBL_ORDER_TYPE_C',
276 'name' => 'next_step',
277 'label' => 'LBL_NEXT_STEP',
289 'name' => 'next_step_due_date',
290 'label' => 'LBL_NEXT_STEP_DUE_DATE',
297 'name' => 'demo_date_c',
298 'label' => 'Demo Date',
302 'name' => 'top20deal_c',
303 'label' => 'LBL_TOP20DEAL',
310 'name' => 'evaluation',
311 'label' => 'LBL_EVALUATION',
315 'name' => 'closed_lost_reason_c',
316 'label' => 'LBL_CLOSED_LOST_REASON_C',
323 'name' => 'evaluation_start_date',
324 'label' => 'LBL_EVALUATION_START_DATE',
328 'name' => 'closed_lost_reason_detail_c',
329 'label' => 'LBL_CLOSED_LOST_REASON_DETAIL',
336 'name' => 'Evaluation_Close_Date_c',
337 'label' => 'Evaluation_Close_Date__c',
341 'name' => 'primary_reason_competitor_c',
342 'label' => 'LBL_PRIMARY_REASON_COMPETITOR',
352 'name' => 'closed_lost_description',
353 'label' => 'LBL_CLOSED_LOST_DESCRIPTION',
360 'name' => 'partner_assigned_to_c',
361 'label' => 'Partner_Assigned_To_c',
362 'customCode' => '{assign var=partner_assigned_to_key value=$fields.partner_assigned_to_c.value}<a href="index.php?module=Accounts&action=DetailView&record={$partner_assigned_to_key}">{$APP_LIST_STRINGS.partner_assigned_to.$partner_assigned_to_key}</a>',
366 'name' => 'accepted_by_partner_c',
367 'label' => 'LBL_ACCEPTED_BY_PARTNER',
374 'name' => 'team_name',
375 'label' => 'LBL_TEAM',
379 'name' => 'partner_contact_c',
380 'label' => 'LBL_PARTNER_CONTACT',
387 'name' => 'assigned_user_name',
388 'label' => 'LBL_ASSIGNED_TO_NAME',
392 'name' => 'date_modified',
393 'label' => 'LBL_DATE_MODIFIED',
394 'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
401 'name' => 'associated_rep_c',
402 'label' => 'Associated_Rep_c',
406 'name' => 'date_entered',
407 'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
408 'label' => 'LBL_DATE_ENTERED',
415 'name' => 'description',
417 'label' => 'LBL_DESCRIPTION',