254 lines
9.7 KiB
PHP
Executable File
254 lines
9.7 KiB
PHP
Executable File
<?php
|
|
if (! defined('sugarEntry') || ! sugarEntry)
|
|
die('Not A Valid Entry Point');
|
|
/**
|
|
* ***************************************************************************
|
|
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
|
|
* Version 1.1 ("License"); You may not use this file except in compliance
|
|
* with the License.
|
|
* You may obtain a copy of the License at
|
|
* http://opensource.org/licenses/rpl.php. Software distributed under the
|
|
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
|
|
* either express or implied.
|
|
*
|
|
* You may:
|
|
* a) Use and distribute this code exactly as you received without payment or
|
|
* a royalty or other fee.
|
|
* b) Create extensions for this code, provided that you make the extensions
|
|
* publicly available and document your modifications clearly.
|
|
* c) Charge for a fee for warranty or support or for accepting liability
|
|
* obligations for your customers.
|
|
*
|
|
* You may NOT:
|
|
* a) Charge for the use of the original code or extensions, including in
|
|
* electronic distribution models, such as ASP (Application Service
|
|
* Provider).
|
|
* b) Charge for the original source code or your extensions other than a
|
|
* nominal fee to cover distribution costs where such distribution
|
|
* involves PHYSICAL media.
|
|
* c) Modify or delete any pre-existing copyright notices, change notices,
|
|
* or License text in the Licensed Software
|
|
* d) Assert any patent claims against the Licensor or Contributors, or
|
|
* which would in any way restrict the ability of any third party to use the
|
|
* Licensed Software.
|
|
*
|
|
* You must:
|
|
* a) Document any modifications you make to this code including the nature of
|
|
* the change, the authors of the change, and the date of the change.
|
|
* b) Make the source code for any extensions you deploy available via an
|
|
* Electronic Distribution Mechanism such as FTP or HTTP download.
|
|
* c) Notify the licensor of the availability of source code to your extensions
|
|
* and include instructions on how to acquire the source code and updates.
|
|
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
|
|
* reproduce, perform, modify, sublicense, and distribute your extensions.
|
|
*
|
|
* The Original Code is: CommuniCore
|
|
* Olavo Farias
|
|
* 2006-04-7 olavo.farias@gmail.com
|
|
*
|
|
* The Initial Developer of the Original Code is CommuniCore.
|
|
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
|
|
* All Rights Reserved.
|
|
* ******************************************************************************
|
|
*/
|
|
$dictionary['EcmServiceNew'] = array(
|
|
'table' => "ecmservicenews",
|
|
'comment' => 'EcmServiceNews',
|
|
'audited' => true,
|
|
'duplicate_merge' => true,
|
|
'unified_search' => true,
|
|
'fields' => array(
|
|
// Status.
|
|
'status' => array(
|
|
'name' => 'status',
|
|
'vname' => 'LBL_STATUS',
|
|
'type' => 'enum',
|
|
'audited' => 'true',
|
|
'options' => 'ecmservicenews_status_list',
|
|
'massupdate' => false,
|
|
),
|
|
'service_type' => array(
|
|
'name' => 'service_type',
|
|
'vname' => 'LBL_TYPE',
|
|
'type' => 'enum',
|
|
'audited' => 'true',
|
|
'options' => 'ecmservicenews_type_list',
|
|
'massupdate' => false,
|
|
),
|
|
'type' => array(
|
|
'name' => 'type',
|
|
'vname' => 'typ',
|
|
'type' => 'varchar',
|
|
),
|
|
'repair_status' => array(
|
|
'name' => 'repair_status',
|
|
'vname' => 'LBL_REPAIR_STATUS',
|
|
'type' => 'enum',
|
|
'size' => '3',
|
|
'audited' => 'true',
|
|
'options' => 'ecmservicenews_repair_status_list',
|
|
'massupdate' => false,
|
|
),
|
|
'parent_name' => array(
|
|
'name' => 'parent_name',
|
|
'parent_type' => 'ecmstockdocouts_parent_dom',
|
|
// 'type_name'=>'parent_type',
|
|
'id_name' => 'parent_id',
|
|
'vname' => 'LBL_PARENT_NAME',
|
|
'type' => 'relate',
|
|
'group' => 'parent_name',
|
|
'dbtype' => 'varchar',
|
|
'len' => '255',
|
|
'audited' => 'true',
|
|
'module' => 'Accounts',
|
|
'massupdate' => false,
|
|
'required' => true
|
|
),
|
|
'parent_id' => array(
|
|
|
|
'name' => 'parent_id',
|
|
'type' => 'id',
|
|
'module' => 'Accounts',
|
|
'vname' => 'LBL_PARENT_ID',
|
|
'group' => 'parent_name',
|
|
'massupdate' => false,
|
|
'reportable' => false,
|
|
'required' => true
|
|
),
|
|
'product_name' => array(
|
|
'name' => 'product_name',
|
|
'audited' => 'true',
|
|
'vname' => 'LBL_PRODUCT_NAME',
|
|
'type' => 'varchar',
|
|
'len' => '255'
|
|
),
|
|
'product_value' => array(
|
|
'name' => 'product_value',
|
|
'audited' => 'true',
|
|
'vname' => 'LBL_PRODUCT_VALUE',
|
|
'type' => 'varchar',
|
|
'required_option' => true,
|
|
'unified_search' => true,
|
|
'len' => '250'
|
|
),
|
|
'product_serial_number' => array(
|
|
'name' => 'product_serial_number',
|
|
'audited' => 'true',
|
|
'vname' => 'LBL_PRODUCT_SERIAL_NUMBER',
|
|
'type' => 'varchar',
|
|
'len' => '255'
|
|
),
|
|
'product_model' => array(
|
|
'name' => 'product_model',
|
|
'audited' => 'true',
|
|
'vname' => 'LBL_PRODUCT_MODEL',
|
|
'type' => 'varchar',
|
|
'len' => '255'
|
|
),
|
|
'product_year' => array(
|
|
'name' => 'product_year',
|
|
'audited' => 'true',
|
|
'vname' => 'LBL_PRODUCT_YEAR',
|
|
'type' => 'varchar',
|
|
'len' => '255'
|
|
),
|
|
'estimated_cost' => array(
|
|
'name' => 'estimated_cost',
|
|
'audited' => 'true',
|
|
'vname' => 'LBL_ESTIMATED_COST',
|
|
'type' => 'varchar',
|
|
'len' => '255'
|
|
),
|
|
'number' => array(
|
|
'name' => 'number',
|
|
'audited' => 'true',
|
|
'vname' => 'LBL_NUMBER',
|
|
'type' => 'varchar',
|
|
'required_option' => true,
|
|
'unified_search' => true,
|
|
'required' => true,
|
|
'len' => '20'
|
|
),
|
|
'document_no' => array(
|
|
'audited' => 'true',
|
|
'name' => 'document_no',
|
|
'vname' => 'LBL_DOCUMENT_NO',
|
|
'type' => 'varchar',
|
|
'required_option' => true,
|
|
'unified_search' => true,
|
|
'required' => true,
|
|
'len' => '30'
|
|
),
|
|
'register_date' => array(
|
|
'audited' => 'true',
|
|
'name' => 'register_date',
|
|
'vname' => 'LBL_REGISTER_DATE',
|
|
'type' => 'date',
|
|
'reportable' => false,
|
|
'showFormats' => true,
|
|
'massupdate' => false,
|
|
'required' => true
|
|
),
|
|
'realization_date' => array(
|
|
'audited' => 'true',
|
|
'name' => 'realization_date',
|
|
'vname' => 'LBL_REALIZATION_DATE',
|
|
'type' => 'date',
|
|
'showFormats' => true,
|
|
),
|
|
'parent_comment' => array(
|
|
'audited' => 'true',
|
|
'type' => 'text',
|
|
'name' => 'parent_comment',
|
|
'vname' => 'LBL_PARENT_COMMENT',
|
|
'comment' => 'Parent comment',
|
|
'unified_search' => true,
|
|
),
|
|
'service_comment' => array(
|
|
'audited' => 'true',
|
|
'type' => 'text',
|
|
'name' => 'service_comment',
|
|
'vname' => 'LBL_SERVICE_COMMENT',
|
|
'comment' => 'Service comment',
|
|
'unified_search' => true,
|
|
),
|
|
'fault_comment' => array(
|
|
'audited' => 'true',
|
|
'type' => 'text',
|
|
'name' => 'fault_comment',
|
|
'vname' => 'LBL_FAULT_COMMENT',
|
|
'comment' => 'Fault comment',
|
|
'unified_search' => true,
|
|
),
|
|
'parent_contact_name' => array(
|
|
'audited' => 'true',
|
|
'name' => 'parent_contact_name',
|
|
'vname' => 'LBL_PARENT_CONTACT_NAME',
|
|
'type' => 'varchar',
|
|
'len' => '255',
|
|
'merge_filter' => 'enabled',
|
|
),
|
|
'parent_contact_phone_fax' => array(
|
|
'audited' => 'true',
|
|
'name' => 'parent_contact_phone_fax',
|
|
'vname' => 'LBL_PARENT_CONTACT_PHONE_FAX',
|
|
'type' => 'varchar',
|
|
'len' => '25',
|
|
'merge_filter' => 'enabled',
|
|
),
|
|
'history' => array(
|
|
'audited' => false,
|
|
'name' => 'history',
|
|
'type' => 'array',
|
|
'source' => 'non-db',
|
|
),
|
|
'items_list' => array(
|
|
'audited' => false,
|
|
'name' => 'items_list',
|
|
'type' => 'array',
|
|
'source' => 'non-db',
|
|
),
|
|
),
|
|
'optimistic_locking' => true
|
|
);
|
|
VardefManager::createVardef('EcmServiceNews','EcmServiceNew', array('default', 'assignable')); |