mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2024-11-22 07:52:36 +00:00
229 lines
4.8 KiB
PHP
Executable File
229 lines
4.8 KiB
PHP
Executable File
<?php
|
|
$module_name = 'AOS_Contracts';
|
|
$viewdefs [$module_name] =
|
|
array(
|
|
'EditView' =>
|
|
array(
|
|
'templateMeta' =>
|
|
array(
|
|
'maxColumns' => '2',
|
|
'widths' =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
'label' => '10',
|
|
'field' => '30',
|
|
),
|
|
1 =>
|
|
array(
|
|
'label' => '10',
|
|
'field' => '30',
|
|
),
|
|
),
|
|
'useTabs' => false,
|
|
'syncDetailEditViews' => false,
|
|
'tabDefs' =>
|
|
array(
|
|
'DEFAULT' =>
|
|
array(
|
|
'newTab' => false,
|
|
'panelDefault' => 'expanded',
|
|
),
|
|
'LBL_LINE_ITEMS' =>
|
|
array(
|
|
'newTab' => false,
|
|
'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',
|
|
'displayParams' =>
|
|
array(
|
|
'initial_filter' => '&account_name="+this.form.{$fields.contract_account.name}.value+"',
|
|
),
|
|
),
|
|
),
|
|
4 =>
|
|
array(
|
|
0 =>
|
|
array(
|
|
'name' => 'renewal_reminder_date',
|
|
'label' => 'LBL_RENEWAL_REMINDER_DATE',
|
|
'type' => 'datetimecombo',
|
|
),
|
|
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 => '',
|
|
),
|
|
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',
|
|
'displayParams' =>
|
|
array(
|
|
'field' =>
|
|
array(
|
|
'onblur' => 'calculateTotal(\'lineItems\');',
|
|
),
|
|
),
|
|
),
|
|
),
|
|
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',
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|