Files
crm.twinpol.com/modules/EcmSyntheticAccounts/metadata/editviewdefs.php
2025-05-12 15:44:39 +00:00

106 lines
2.7 KiB
PHP
Executable File

<?php
$module_name = 'EcmSyntheticAccounts';
$viewdefs [$module_name] = array(
'EditView' => array(
'templateMeta' => array(
'form' => array(
'enctype' => 'multipart/form-data',
),
'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_EDITVIEW_PANEL1' => array(
'newTab' => false,
'panelDefault' => 'expanded'
)
),
'javascript' => '
<script type="text/javascript" src="include/javascript/popup_parent_helper.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
<script type="text/javascript" src="include/jsolait/init.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
<script type="text/javascript" src="include/jsolait/lib/urllib.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
<script type="text/javascript" src="include/javascript/jsclass_base.js"></script>
<script type="text/javascript" src="include/javascript/jsclass_async.js"></script>
<script type="text/javascript" src="include/JSON.js?s={$SUGAR_VERSION}"></script>',
'includes' => array(
0 => array(
'file' => 'include/JSON.js'
),
1 => array(
'file' => 'modules/EcmSyntheticAccounts/js/EditViewDocumentReady.js'
),
)
),
'panels' => array(
'default' => array(
array(
array(
'name' => 'account_code',
'label' => 'LBL_ACCOUNT_CODE',
'displayParams' => array(
'size' => 3
)
),
),
array(
array(
'name' => 'name',
'label' => 'LBL_NAME',
'tabIndex' => '100',
'displayParams' => array(
'size' => 60
)
),
),
array(
array(
'name' => 'account_type',
'label' => 'LBL_ACCOUNT_TYPE',
'tabIndex' => '101',
)
),
array(
array(
'name' => 'accounts_balance',
'label' => 'LBL_ACCOUNTS_BALANCE',
'tabIndex' => '102',
)
),
array(
array(
'name' => 'structureanalyticalpart',
'hideLabel' => false,
'label' => 'LBL_STRUCTURE_ANALYTICAL_PART',
'customCode' => "{include file='modules/EcmSyntheticAccounts/tpl/EditViewStructureAnalyticalPart.tpl'}",
),
),
),
'LBL_ANALYTICAL_ACCOUNTS' => array(
array(
array(
'name' => 'structureanalyticalpart',
'hideLabel' => true,
// 'label' => 'LBL_STRUCTURE_ANALYTICAL_PART',
'customCode' => "{include file='modules/EcmSyntheticAccounts/tpl/EditViewTableAnalyticalAccounts.tpl'}",
),
),
),
),
),
);
?>