HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: nexper (1054)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nexper/public_html/crm/modules/AOS_Quotes/metadata/detailviewdefs.php
<?php
$module_name = 'AOS_Quotes';
$_object_name = 'aos_quotes';
$viewdefs [$module_name] =
    array (
        'DetailView' =>
        array (
            'templateMeta' =>
            array (
                'form' =>
                array (
                    'buttons' =>
                    array (
                        0 => 'EDIT',
                        1 => 'DUPLICATE',
                        2 => 'DELETE',
                        3 => 'FIND_DUPLICATES',
                        4 =>
                        array (
                            'customCode' => '<input type="button" class="button" onClick="showPopup(\'pdf\');" value="{$MOD.LBL_PRINT_AS_PDF}">',
                        ),
                        5 =>
                        array (
                            'customCode' => '<input type="button" class="button" onClick="showPopup(\'emailpdf\');" value="{$MOD.LBL_EMAIL_PDF}">',
                        ),
                        6 =>
                        array (
                            'customCode' => '<input type="button" class="button" onClick="showPopup(\'email\');" value="{$MOD.LBL_EMAIL_QUOTE}">',
                        ),
                        7 =>
                        array (
                            'customCode' => '<input type="submit" class="button" onClick="this.form.action.value=\'createOpportunity\';" value="{$MOD.LBL_CREATE_OPPORTUNITY}">',
                            'sugar_html' =>
                            array (
                                'type' => 'submit',
                                'value' => '{$MOD.LBL_CREATE_OPPORTUNITY}',
                                'htmlOptions' =>
                                array (
                                    'class' => 'button',
                                    'id' => 'create_contract_button',
                                    'title' => '{$MOD.LBL_CREATE_OPPORTUNITY}',
                                    'onclick' => 'this.form.action.value=\'createOpportunity\';',
                                    'name' => 'Create Opportunity',
                                ),
                            ),
                        ),
                        8 =>
                        array (
                            'customCode' => '<input type="submit" class="button" onClick="this.form.action.value=\'createContract\';" value="{$MOD.LBL_CREATE_CONTRACT}">',
                            'sugar_html' =>
                            array (
                                'type' => 'submit',
                                'value' => '{$MOD.LBL_CREATE_CONTRACT}',
                                'htmlOptions' =>
                                array (
                                    'class' => 'button',
                                    'id' => 'create_contract_button',
                                    'title' => '{$MOD.LBL_CREATE_CONTRACT}',
                                    'onclick' => 'this.form.action.value=\'createContract\';',
                                    'name' => 'Create Contract',
                                ),
                            ),
                        ),
                        9 =>
                        array (
                            'customCode' => '<input type="submit" class="button" onClick="this.form.action.value=\'converToInvoice\';" value="{$MOD.LBL_CONVERT_TO_INVOICE}">',
                            'sugar_html' =>
                            array (
                                'type' => 'submit',
                                'value' => '{$MOD.LBL_CONVERT_TO_INVOICE}',
                                'htmlOptions' =>
                                array (
                                    'class' => 'button',
                                    'id' => 'convert_to_invoice_button',
                                    'title' => '{$MOD.LBL_CONVERT_TO_INVOICE}',
                                    'onclick' => 'this.form.action.value=\'converToInvoice\';',
                                    'name' => 'Convert to Invoice',
                                ),
                            ),
                        ),
                    ),
                ),
                'maxColumns' => '2',
                'widths' =>
                array (
                    0 =>
                    array (
                        'label' => '10',
                        'field' => '30',
                    ),
                    1 =>
                    array (
                        'label' => '10',
                        'field' => '30',
                    ),
                ),
                'useTabs' => false,
                'tabDefs' =>
                array (
                    'DEFAULT' =>
                    array (
                        'newTab' => false,
                        'panelDefault' => 'expanded',
                    ),
                    'LBL_LINE_ITEMS' =>
                    array (
                        'newTab' => false,
                        'panelDefault' => 'expanded',
                    ),
                ),
            ),
            'panels' =>
            array (
                'default' =>
                array (
                    0 =>
                    array (
                        0 =>
                        array (
                            'name' => 'name',
                            'label' => 'LBL_NAME',
                        ),
                        1 =>
                        array (
                            'name' => 'opportunity',
                            'label' => 'LBL_OPPORTUNITY',
                        ),
                    ),
                    1 =>
                    array (
                        0 =>
                        array (
                            'name' => 'number',
                            'label' => 'LBL_QUOTE_NUMBER',
                        ),
                        1 =>
                        array (
                            'name' => 'stage',
                            'label' => 'LBL_STAGE',
                        ),
                    ),
                    2 =>
                    array (
                        0 =>
                        array (
                            'name' => 'expiration',
                            'label' => 'LBL_EXPIRATION',
                        ),
                        1 =>
                        array (
                            'name' => 'invoice_status',
                            'label' => 'LBL_INVOICE_STATUS',
                        ),
                    ),
                    3 =>
                    array (
                        0 =>
                        array (
                            'name' => 'assigned_user_name',
                            'label' => 'LBL_ASSIGNED_TO',
                        ),
                        1 =>
                        array (
                            'name' => 'term',
                            'label' => 'LBL_TERM',
                        ),
                    ),
                    4 =>
                    array (
                        0 =>
                        array (
                            'name' => 'approval_status',
                            'label' => 'LBL_APPROVAL_STATUS',
                        ),
                        1 =>
                        array (
                            'name' => 'approval_issue',
                            'label' => 'LBL_APPROVAL_ISSUE',
                        ),
                    ),
                    5 =>
                    array (
                        0 => '',
                        1 => '',
                    ),
                    6 =>
                    array (
                        0 =>
                        array (
                            'name' => 'billing_account',
                            'label' => 'LBL_BILLING_ACCOUNT',
                        ),
                        1 =>
                        array (
                            'name' => 'billing_contact',
                            'label' => 'LBL_BILLING_CONTACT',
                        ),
                    ),
                    7 =>
                    array (
                        0 =>
                        array (
                            'name' => 'billing_address_street',
                            'label' => 'LBL_BILLING_ADDRESS',
                            'type' => 'address',
                            'displayParams' =>
                            array (
                                'key' => 'billing',
                            ),
                        ),
                        1 =>
                        array (
                            'name' => 'shipping_address_street',
                            'label' => 'LBL_SHIPPING_ADDRESS',
                            'type' => 'address',
                            'displayParams' =>
                            array (
                                'key' => 'shipping',
                            ),
                        ),
                    ),
                    8 =>
                    array (
                        0 => '',
                        1 => '',
                    ),
                ),
                'lbl_line_items' =>
                array (
                    0 =>
                    array (
                        0 =>
                        array (
                            'name' => 'line_items',
                            'label' => 'LBL_LINE_ITEMS',
                        ),
                    ),
                    1 =>
                    array (
                        0 =>
                        array (
                            'name' => 'total_amt',
                            'label' => 'LBL_TOTAL_AMT',
                        ),
                        1 => '',
                    ),
                    2 =>
                    array (
                        0 =>
                        array (
                            'name' => 'discount_amount',
                            'label' => 'LBL_DISCOUNT_AMOUNT',
                        ),
                    ),
                    3 =>
                    array (
                        0 =>
                        array (
                            'name' => 'subtotal_amount',
                            'label' => 'LBL_SUBTOTAL_AMOUNT',
                        ),
                    ),
                    4 =>
                    array (
                        0 =>
                        array (
                            'name' => 'shipping_amount',
                            'label' => 'LBL_SHIPPING_AMOUNT',
                        ),
                    ),
                    5 =>
                    array (
                        0 =>
                        array (
                            'name' => 'shipping_tax_amt',
                            'label' => 'LBL_SHIPPING_TAX_AMT',
                        ),
                    ),
                    6 =>
                    array (
                        0 =>
                        array (
                            'name' => 'tax_amount',
                            'label' => 'LBL_TAX_AMOUNT',
                        ),
                    ),
                    7 =>
                    array (
                        0 =>
                        array (
                            'name' => 'total_amount',
                            'label' => 'LBL_GRAND_TOTAL',
                        ),
                    ),
                ),
            ),
        ),
    );
?>