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