mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2024-11-21 23:47:57 +00:00
328 lines
8.4 KiB
PHP
Executable File
328 lines
8.4 KiB
PHP
Executable File
<?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\');return false;" 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' => true,
|
|
'tabDefs' =>
|
|
array(
|
|
'LBL_PANEL_OVERVIEW' =>
|
|
array(
|
|
'newTab' => true,
|
|
'panelDefault' => 'expanded',
|
|
),
|
|
'LBL_QUOTE_TO' =>
|
|
array(
|
|
'newTab' => true,
|
|
'panelDefault' => 'expanded',
|
|
),
|
|
'LBL_LINE_ITEMS' =>
|
|
array(
|
|
'newTab' => true,
|
|
'panelDefault' => 'expanded',
|
|
),
|
|
'LBL_PANEL_ASSIGNMENT' =>
|
|
array(
|
|
'newTab' => true,
|
|
'panelDefault' => 'expanded',
|
|
),
|
|
),
|
|
),
|
|
'panels' =>
|
|
array(
|
|
'LBL_PANEL_OVERVIEW' =>
|
|
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',
|
|
),
|
|
),
|
|
),
|
|
'LBL_QUOTE_TO' =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
'name' => 'billing_account',
|
|
'label' => 'LBL_BILLING_ACCOUNT',
|
|
),
|
|
1 =>
|
|
array(
|
|
'name' => 'billing_contact',
|
|
'label' => 'LBL_BILLING_CONTACT',
|
|
),
|
|
),
|
|
1 =>
|
|
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',
|
|
),
|
|
),
|
|
),
|
|
),
|
|
'lbl_line_items' =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
'name' => 'currency_id',
|
|
'studio' => 'visible',
|
|
'label' => 'LBL_CURRENCY',
|
|
),
|
|
1 => '',
|
|
),
|
|
1 =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
'name' => 'line_items',
|
|
'label' => 'LBL_LINE_ITEMS',
|
|
),
|
|
),
|
|
2 =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
'name' => 'total_amt',
|
|
'label' => 'LBL_TOTAL_AMT',
|
|
),
|
|
),
|
|
3 =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
'name' => 'discount_amount',
|
|
'label' => 'LBL_DISCOUNT_AMOUNT',
|
|
),
|
|
),
|
|
4 =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
'name' => 'subtotal_amount',
|
|
'label' => 'LBL_SUBTOTAL_AMOUNT',
|
|
),
|
|
),
|
|
5 =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
'name' => 'shipping_amount',
|
|
'label' => 'LBL_SHIPPING_AMOUNT',
|
|
),
|
|
),
|
|
6 =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
'name' => 'shipping_tax_amt',
|
|
'label' => 'LBL_SHIPPING_TAX_AMT',
|
|
),
|
|
),
|
|
7 =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
'name' => 'tax_amount',
|
|
'label' => 'LBL_TAX_AMOUNT',
|
|
),
|
|
),
|
|
8 =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
'name' => 'total_amount',
|
|
'label' => 'LBL_GRAND_TOTAL',
|
|
),
|
|
),
|
|
),
|
|
'LBL_PANEL_ASSIGNMENT' =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
'name' => 'date_entered',
|
|
'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
|
|
),
|
|
1 =>
|
|
array(
|
|
'name' => 'date_modified',
|
|
'label' => 'LBL_DATE_MODIFIED',
|
|
'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|