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

102 lines
3.4 KiB
PHP
Executable File

<?php
global $app_list_strings;
$viewdefs['EcmInventorys']['DetailView'] = array(
'templateMeta' => array(
'form' => array(
'buttons' => array(
'CANCEL_DOC',
array(
'customCode' => '{include file="modules/EcmInventorys/tpl/DetailView_edit_button.tpl"}'
),
array(
'customCode' => "{include_php file='include/ECM/EcmCreatePdfButton.php'}"
),
array(
'customCode' => '{include file="modules/EcmInventorys/tpl/DetailView_create_ks_button.tpl"}'
),
),
'hidden' => array(
'<input type="hidden" name="vats_summary" id="vats_summary" value=\'{$fields.vats_summary.value}\'>',
'<input type="hidden" id="doc_total" value=\'{$fields.total.value}\'>',
'<input type="hidden" id="total_netto" name="total_netto" value=\'{$fields.total.value}\'>',
'<input type="hidden" id="operations_out" value=\'{$OP_OUT}\'>',
'<input type="hidden" id="operations_in" value=\'{$OP_IN}\'>'
)
),
'maxColumns' => '2',
'widths' => array(
array(
'label' => '10',
'field' => '30'
),
array(
'label' => '10',
'field' => '30'
)
),
'includes' => array(
array(
'file' => 'include/JSON.js'
),
array(
'file' => 'modules/EcmInventorys/javascript/EcmInventorysDetail.js'
),
)
),
'panels' => array(
'LBL_DETAILS_TAB' => array(
array(
'document_no',
'assigned_user_name'
),
array(
'name',
'stock_name'
),
array(
'register_date',
'ecmproductstockindex_name'
),
array(
'status',
array (
'name' => 'ecmstockdoccorrects_id_plus',
'label' => 'LBL_ECMSTOCKDOCCORRECTS_ID_PLUS',
'allCols' => false,
'hideLabel' => false,
'customCode' => '<a href="index.php?module=EcmStockDocCorrects&action=DetailView&record={$fields.ecmstockdoccorrects_id_plus.value}">{$fields.ecmstockdoccorrects_name_plus.value}</a>',
),
),
array(
'',
array (
'name' => 'ecmstockdoccorrects_id_minus',
'label' => 'LBL_ECMSTOCKDOCCORRECTS_ID_MINUS',
'allCols' => false,
'hideLabel' => false,
'customCode' => '<a href="index.php?module=EcmStockDocCorrects&action=DetailView&record={$fields.ecmstockdoccorrects_id_minus.value}">{$fields.ecmstockdoccorrects_name_minus.value}</a>',
),
),
array(
'pdf_text'
),
array(
array(
'name' => 'date_entered',
'customCode' => '{$fields.date_entered.value}'
)
)
),
'LBL_ITEMS_TAB' => array(
array(
array(
'name' => 'items_list_panel',
'allCols' => true,
'hideLabel' => true,
'customCode' => '{include file="modules/EcmInventorys/tpl/DetailView_product_list.tpl"}'
)
)
)
)
);
?>