0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-11-22 07:52:36 +00:00
salesagility_SuiteCRM/modules/AOS_Contracts/metadata/detailviewdefs.php

258 lines
5.6 KiB
PHP
Executable File

<?php
$module_name = 'AOS_Contracts';
$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}">',
),
),
),
'maxColumns' => '2',
'widths' =>
array(
0 =>
array(
'label' => '10',
'field' => '30',
),
1 =>
array(
'label' => '10',
'field' => '30',
),
),
'useTabs' => true,
'syncDetailEditViews' => true,
'tabDefs' =>
array(
'DEFAULT' =>
array(
'newTab' => true,
'panelDefault' => 'expanded',
),
'LBL_LINE_ITEMS' =>
array(
'newTab' => true,
'panelDefault' => 'expanded',
),
'LBL_PANEL_ASSIGNMENT' =>
array(
'newTab' => true,
'panelDefault' => 'expanded',
),
),
),
'panels' =>
array(
'default' =>
array(
0 =>
array(
0 => 'name',
1 =>
array(
'name' => 'status',
'studio' => 'visible',
'label' => 'LBL_STATUS',
),
),
1 =>
array(
0 =>
array(
'name' => 'total_contract_value',
'label' => 'LBL_TOTAL_CONTRACT_VALUE',
),
1 =>
array(
'name' => 'assigned_user_name',
'label' => 'LBL_ASSIGNED_TO_NAME',
),
),
2 =>
array(
0 =>
array(
'name' => 'start_date',
'label' => 'LBL_START_DATE',
),
1 =>
array(
'name' => 'contract_account',
'label' => 'LBL_CONTRACT_ACCOUNT',
),
),
3 =>
array(
0 =>
array(
'name' => 'end_date',
'label' => 'LBL_END_DATE',
),
1 =>
array(
'name' => 'contact',
'studio' => 'visible',
'label' => 'LBL_CONTACT',
),
),
4 =>
array(
0 =>
array(
'name' => 'renewal_reminder_date',
'label' => 'LBL_RENEWAL_REMINDER_DATE',
),
1 =>
array(
'name' => 'opportunity',
'label' => 'LBL_OPPORTUNITY',
),
),
5 =>
array(
0 =>
array(
'name' => 'customer_signed_date',
'label' => 'LBL_CUSTOMER_SIGNED_DATE',
),
1 =>
array(
'name' => 'contract_type',
'studio' => 'visible',
'label' => 'LBL_CONTRACT_TYPE',
),
),
6 =>
array(
0 =>
array(
'name' => 'company_signed_date',
'label' => 'LBL_COMPANY_SIGNED_DATE',
),
1 => '',
),
7 =>
array(
0 => 'description',
),
),
'lbl_line_items' =>
array(
0 =>
array(
0 =>
array(
'name' => 'currency_id',
'studio' => 'visible',
'label' => 'LBL_CURRENCY',
),
),
1 =>
array(
0 =>
array(
'name' => 'line_items',
'label' => 'LBL_LINE_ITEMS',
),
),
2 =>
array(
0 => '',
1 => '',
),
3 =>
array(
0 =>
array(
'name' => 'total_amt',
'label' => 'LBL_TOTAL_AMT',
),
),
4 =>
array(
0 =>
array(
'name' => 'discount_amount',
'label' => 'LBL_DISCOUNT_AMOUNT',
),
),
5 =>
array(
0 =>
array(
'name' => 'subtotal_amount',
'label' => 'LBL_SUBTOTAL_AMOUNT',
),
),
6 =>
array(
0 =>
array(
'name' => 'shipping_amount',
'label' => 'LBL_SHIPPING_AMOUNT',
),
),
7 =>
array(
0 =>
array(
'name' => 'shipping_tax_amt',
'label' => 'LBL_SHIPPING_TAX_AMT',
),
),
8 =>
array(
0 =>
array(
'name' => 'tax_amount',
'label' => 'LBL_TAX_AMOUNT',
),
),
9 =>
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}',
),
),
),
),
),
);