]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/metadata_files/520/modules/Quotes/metadata/detailviewdefs.php
Added unit tests.
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / metadata_files / 520 / modules / Quotes / metadata / detailviewdefs.php
1 <?php
2 /*********************************************************************************
3  * SugarCRM 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']['DetailView'] = array(
38 'templateMeta' => array('form' =>array('closeFormBeforeCustomButtons' => true,
39                                                 'links'=>array('{$MOD.PDF_FORMAT} <select name="layout" id="layout">{$LAYOUT_OPTIONS}</select></form>'),
40                         'buttons'=>array('EDIT', 'DUPLICATE', 'DELETE',
41                                          array('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>'),
42                                                  array('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}">')),
43                         'footerTpl'=>'modules/Quotes/tpls/DetailViewFooter.tpl'),
44                         'maxColumns' => '2', 
45                         'widths' => array(
46                                         array('label' => '10', 'field' => '30'), 
47                                         array('label' => '10', 'field' => '30')
48                                         ),
49                         ),
50 'panels' => array (
51
52 'default' => array(  
53   array (
54             array (
55               'name' => 'name',
56               'label' => 'LBL_QUOTE_NAME',
57             ),
58             array(
59           'name'=>'opportunity_name', 
60         ),
61   ),
62   
63   array (
64             'quote_num',
65             'quote_stage',
66   ),
67   
68   array (
69             'purchase_order_num',
70             
71             array (
72               'name' => 'date_quote_expected_closed',
73               'label' => 'LBL_DATE_QUOTE_EXPECTED_CLOSED',
74             ),
75   ),
76   
77   array (
78             'payment_terms',
79             'original_po_date',
80   ),
81   
82   array (
83
84                 'team_name', 
85
86             
87             array (
88               'name' => 'date_entered',
89               'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
90               'label' => 'LBL_DATE_ENTERED',
91             ),
92   ),
93   
94   array (
95             'assigned_user_name',
96             
97             array (
98               'name' => 'date_modified',
99               'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
100               'label' => 'LBL_DATE_MODIFIED',
101             ),
102   ),
103
104   array (
105         'billing_account_name',
106         'shipping_account_name',
107   ),
108   
109   array (
110             'billing_contact_name',
111             'shipping_contact_name'
112   ),  
113   
114   array (
115   
116       array (
117               'name' => 'billing_address_street',
118               'label'=> 'LBL_BILL_TO',
119               'type' => 'address',
120               'displayParams'=>array('key'=>'billing'),
121       ),
122       
123       array (
124               'name' => 'shipping_address_street',
125               'label'=> 'LBL_SHIP_TO',
126               'type' => 'address',
127               'displayParams'=>array('key'=>'shipping'),      
128       ),
129     ),
130   
131   array (
132             'description',
133   ),
134 )
135   
136
137 );
138 ?>