2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2012 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 ['Quotes'] =
45 'closeFormBeforeCustomButtons' => true,
48 0 => '{$MOD.PDF_FORMAT} <select name="layout" id="layout">{$LAYOUT_OPTIONS}</select></form>',
57 'customCode' => '<form action="index.php" method="POST" name="Quote2Opp" id="form"><input type="hidden" name="module" value="Quotes"><input type="hidden" name="record" value="{$fields.id.value}"><input type="hidden" name="user_id" value="{$current_user->id}"><input type="hidden" name="team_id" value="{$fields.team_id.value}"><input type="hidden" name="user_name" value="{$current_user->user_name}"><input type="hidden" name="action" value="QuoteToOpportunity"><input type="hidden" name="opportunity_subject" value="{$fields.name.value}"><input type="hidden" name="opportunity_name" value="{$fields.name.value}"><input type="hidden" name="opportunity_id" value="{$fields.billing_account_id.value}"><input type="hidden" name="amount" value="{$fields.total.value}"><input type="hidden" name="valid_until" value="{$fields.date_quote_expected_closed.value}"><input type="hidden" name="currency_id" value="{$fields.currency_id.value}"><input title="{$APP.LBL_QUOTE_TO_OPPORTUNITY_TITLE}" accessKey="{$APP.LBL_QUOTE_TO_OPPORTUNITY_KEY}" class="button" type="submit" name="opp_to_quote_button" value="{$APP.LBL_QUOTE_TO_OPPORTUNITY_LABEL}"></form>',
61 'customCode' => '<form action="index.php" method="{$PDFMETHOD}" name="ViewPDF" id="form"><input type="hidden" name="module" value="Quotes"><input type="hidden" name="record" value="{$fields.id.value}"><input type="hidden" name="action" value="Layouts"><input type="hidden" name="entryPoint" value="pdf"><input type="hidden" name="email_action"><input title="{$APP.LBL_EMAIL_PDF_BUTTON_TITLE}" accessKey="{$APP.LBL_EMAIL_PDF_BUTTON_KEY}" class="button" type="submit" name="button" value="{$APP.LBL_EMAIL_PDF_BUTTON_LABEL}" onclick="this.form.email_action.value=\'EmailLayout\';"> <input title="{$APP.LBL_VIEW_PDF_BUTTON_TITLE}" accessKey="{$APP.LBL_VIEW_PDF_BUTTON_KEY}" class="button" type="submit" name="button" value="{$APP.LBL_VIEW_PDF_BUTTON_LABEL}">',
64 'footerTpl' => 'modules/Quotes/tpls/DetailViewFooter.tpl',
90 'label' => 'LBL_QUOTE_NAME',
94 'name' => 'opportunity_name',
95 'label' => 'LBL_OPPORTUNITY_NAME',
102 'name' => 'quote_num',
103 'label' => 'LBL_QUOTE_NUM',
107 'name' => 'quote_stage',
108 'label' => 'LBL_QUOTE_STAGE',
115 'name' => 'purchase_order_num',
116 'label' => 'LBL_PURCHASE_ORDER_NUM',
120 'name' => 'date_quote_expected_closed',
121 'label' => 'LBL_DATE_QUOTE_EXPECTED_CLOSED',
128 'name' => 'payment_terms',
129 'label' => 'LBL_PAYMENT_TERMS',
133 'name' => 'original_po_date',
134 'label' => 'LBL_ORIGINAL_PO_DATE',
141 'name' => 'team_name',
142 'label' => 'LBL_TEAM',
146 'name' => 'date_entered',
147 'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
148 'label' => 'LBL_DATE_ENTERED',
155 'name' => 'assigned_user_name',
156 'label' => 'LBL_ASSIGNED_TO_NAME',
160 'name' => 'date_modified',
161 'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
162 'label' => 'LBL_DATE_MODIFIED',
169 'name' => 'billing_account_name',
170 'label' => 'LBL_BILLING_ACCOUNT_NAME',
174 'name' => 'shipping_account_name',
175 'label' => 'LBL_SHIPPING_ACCOUNT_NAME',
182 'name' => 'billing_contact_name',
183 'label' => 'LBL_BILLING_CONTACT_NAME',
187 'name' => 'shipping_contact_name',
188 'label' => 'LBL_SHIPPING_CONTACT_NAME',
195 'name' => 'billing_address_street',
196 'label' => 'LBL_BILL_TO',
205 'name' => 'shipping_address_street',
206 'label' => 'LBL_SHIP_TO',
218 'name' => 'description',
219 'label' => 'LBL_DESCRIPTION',
223 'name' => 'contacts_quotes_name',
224 'label' => 'LBL_CONTACTS_QUOTES_FROM_CONTACTS_TITLE',
231 'name' => 'contacts_quotes_1_name',
232 'label' => 'LBL_CONTACTS_QUOTES_1_FROM_CONTACTS_TITLE',
236 'name' => 'contacts_quotes_2_name',