]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/metadata_files/custom/modules/Quotes/metadata/detailviewdefs.php
Release 6.2.0
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / metadata_files / custom / modules / Quotes / metadata / detailviewdefs.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 ['Quotes'] = 
38 array (
39   'DetailView' => 
40   array (
41     'templateMeta' => 
42     array (
43       'form' => 
44       array (
45         'closeFormBeforeCustomButtons' => true,
46         'links' => 
47         array (
48           0 => '{$MOD.PDF_FORMAT} <select name="layout" id="layout">{$LAYOUT_OPTIONS}</select></form>',
49         ),
50         'buttons' => 
51         array (
52           0 => 'EDIT',
53           1 => 'DUPLICATE',
54           2 => 'DELETE',
55           3 => 
56           array (
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>',
58           ),
59           4 => 
60           array (
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}">',
62           ),
63         ),
64         'footerTpl' => 'modules/Quotes/tpls/DetailViewFooter.tpl',
65       ),
66       'maxColumns' => '2',
67       'widths' => 
68       array (
69         0 => 
70         array (
71           'label' => '10',
72           'field' => '30',
73         ),
74         1 => 
75         array (
76           'label' => '10',
77           'field' => '30',
78         ),
79       ),
80     ),
81     'panels' => 
82     array (
83       'default' => 
84       array (
85         0 => 
86         array (
87           0 => 
88           array (
89             'name' => 'name',
90             'label' => 'LBL_QUOTE_NAME',
91           ),
92           1 => 
93           array (
94             'name' => 'opportunity_name',
95             'label' => 'LBL_OPPORTUNITY_NAME',
96           ),
97         ),
98         1 => 
99         array (
100           0 => 
101           array (
102             'name' => 'quote_num',
103             'label' => 'LBL_QUOTE_NUM',
104           ),
105           1 => 
106           array (
107             'name' => 'quote_stage',
108             'label' => 'LBL_QUOTE_STAGE',
109           ),
110         ),
111         2 => 
112         array (
113           0 => 
114           array (
115             'name' => 'purchase_order_num',
116             'label' => 'LBL_PURCHASE_ORDER_NUM',
117           ),
118           1 => 
119           array (
120             'name' => 'date_quote_expected_closed',
121             'label' => 'LBL_DATE_QUOTE_EXPECTED_CLOSED',
122           ),
123         ),
124         3 => 
125         array (
126           0 => 
127           array (
128             'name' => 'payment_terms',
129             'label' => 'LBL_PAYMENT_TERMS',
130           ),
131           1 => 
132           array (
133             'name' => 'original_po_date',
134             'label' => 'LBL_ORIGINAL_PO_DATE',
135           ),
136         ),
137         4 => 
138         array (
139           0 => 
140           array (
141             'name' => 'team_name',
142             'label' => 'LBL_TEAM',
143           ),
144           1 => 
145           array (
146             'name' => 'date_entered',
147             'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
148             'label' => 'LBL_DATE_ENTERED',
149           ),
150         ),
151         5 => 
152         array (
153           0 => 
154           array (
155             'name' => 'assigned_user_name',
156             'label' => 'LBL_ASSIGNED_TO_NAME',
157           ),
158           1 => 
159           array (
160             'name' => 'date_modified',
161             'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
162             'label' => 'LBL_DATE_MODIFIED',
163           ),
164         ),
165         6 => 
166         array (
167           0 => 
168           array (
169             'name' => 'billing_account_name',
170             'label' => 'LBL_BILLING_ACCOUNT_NAME',
171           ),
172           1 => 
173           array (
174             'name' => 'shipping_account_name',
175             'label' => 'LBL_SHIPPING_ACCOUNT_NAME',
176           ),
177         ),
178         7 => 
179         array (
180           0 => 
181           array (
182             'name' => 'billing_contact_name',
183             'label' => 'LBL_BILLING_CONTACT_NAME',
184           ),
185           1 => 
186           array (
187             'name' => 'shipping_contact_name',
188             'label' => 'LBL_SHIPPING_CONTACT_NAME',
189           ),
190         ),
191         8 => 
192         array (
193           0 => 
194           array (
195             'name' => 'billing_address_street',
196             'label' => 'LBL_BILL_TO',
197             'type' => 'address',
198             'displayParams' => 
199             array (
200               'key' => 'billing',
201             ),
202           ),
203           1 => 
204           array (
205             'name' => 'shipping_address_street',
206             'label' => 'LBL_SHIP_TO',
207             'type' => 'address',
208             'displayParams' => 
209             array (
210               'key' => 'shipping',
211             ),
212           ),
213         ),
214         9 => 
215         array (
216           0 => 
217           array (
218             'name' => 'description',
219             'label' => 'LBL_DESCRIPTION',
220           ),
221           1 => 
222           array (
223             'name' => 'contacts_quotes_name',
224             'label' => 'LBL_CONTACTS_QUOTES_FROM_CONTACTS_TITLE',
225           ),
226         ),
227         10 => 
228         array (
229           0 => 
230           array (
231             'name' => 'contacts_quotes_1_name',
232             'label' => 'LBL_CONTACTS_QUOTES_1_FROM_CONTACTS_TITLE',
233           ),
234           1 => 
235           array (
236             'name' => 'contacts_quotes_2_name',
237           ),
238         ),
239       ),
240     ),
241   ),
242 );
243 ?>