458 lines
14 KiB
PHP
Executable File
458 lines
14 KiB
PHP
Executable File
<?php
|
|
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
|
/*********************************************************************************
|
|
* SugarCRM is a customer relationship management program developed by
|
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it under
|
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
|
* Free Software Foundation with the addition of the following permission added
|
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
* details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
* 02110-1301 USA.
|
|
*
|
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
|
*
|
|
* The interactive user interfaces in modified source and object code versions
|
|
* of this program must display Appropriate Legal Notices, as required under
|
|
* Section 5 of the GNU Affero General Public License version 3.
|
|
*
|
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
|
* technical reasons, the Appropriate Legal Notices must display the words
|
|
* "Powered by SugarCRM".
|
|
********************************************************************************/
|
|
$dictionary['EcmKpkw'] = array('table' => 'ecmkpkw'
|
|
,'fields' => array (
|
|
'id' => array(
|
|
'name' => 'id',
|
|
'vname' => 'LBL_ID',
|
|
'type' => 'id',
|
|
'required' => true,
|
|
'reportable' => true,
|
|
'comment' => 'Unique identifier',
|
|
),
|
|
'created_by' => array(
|
|
'name' => 'created_by',
|
|
'rname' => 'user_name',
|
|
'id_name' => 'modified_user_id',
|
|
'vname' => 'LBL_CREATED_ID',
|
|
'type' => 'assigned_user_name',
|
|
'table' => 'users',
|
|
'isnull' => 'false',
|
|
'dbType' => 'id',
|
|
'group' => 'created_by_name',
|
|
'comment' => 'User who created record',
|
|
),
|
|
'assigned_user_name' =>
|
|
array (
|
|
'name' => 'assigned_user_name',
|
|
'vname' => 'LBL_ASSIGNED_TO',
|
|
'type' => 'relate',
|
|
'reportable' => false,
|
|
'source' => 'non-db',
|
|
'table' => 'users',
|
|
'id_name' => 'assigned_user_id',
|
|
'module' => 'Users',
|
|
'duplicate_merge' => 'disabled',
|
|
'massupdate' => false,
|
|
),
|
|
'created_by_name' => array(
|
|
'name' => 'created_by_name',
|
|
'vname' => 'LBL_CREATED',
|
|
'type' => 'relate',
|
|
'reportable' => false,
|
|
'link' => 'created_by_link',
|
|
'rname' => 'user_name',
|
|
'source' => 'non-db',
|
|
'table' => 'users',
|
|
'id_name' => 'created_by',
|
|
'module' => 'Users',
|
|
'duplicate_merge' => 'disabled',
|
|
'importable' => 'false',
|
|
),
|
|
'modified_by_name' => array(
|
|
'name' => 'modified_by_name',
|
|
'vname' => 'LBL_MODIFIED_USER',
|
|
'type' => 'relate',
|
|
'reportable' => false,
|
|
'source' => 'non-db',
|
|
'rname' => 'first_name',
|
|
'table' => 'users',
|
|
'id_name' => 'modified_user_id',
|
|
'module' => 'Users',
|
|
'link' => 'modified_user_link',
|
|
'duplicate_merge' => 'disabled',
|
|
),
|
|
'modified_by_surname' => array(
|
|
'name' => 'modified_by_surname',
|
|
'vname' => 'LBL_MODIFIED_USER',
|
|
'type' => 'relate',
|
|
'reportable' => false,
|
|
'source' => 'non-db',
|
|
'rname' => 'last_name',
|
|
'table' => 'users',
|
|
'id_name' => 'modified_user_id',
|
|
'module' => 'Users',
|
|
'link' => 'modified_user_link',
|
|
'duplicate_merge' => 'disabled',
|
|
),
|
|
'modified_user_fullname' =>
|
|
array (
|
|
'name' => 'modified_user_fullname',
|
|
'vname' => 'LBL_MODIFIED_USER',
|
|
'type' => 'relate',
|
|
'reportable' => false,
|
|
'source' => 'non-db',
|
|
'table' => 'users',
|
|
'id_name' => 'modified_user_id',
|
|
'module' => 'Users',
|
|
'duplicate_merge' => 'disabled',
|
|
'massupdate' => false,
|
|
),
|
|
'created_by_fullname' =>
|
|
array (
|
|
'name' => 'created_by_fullname',
|
|
'vname' => 'LBL_CREATED',
|
|
'type' => 'relate',
|
|
'reportable' => false,
|
|
'source' => 'non-db',
|
|
'table' => 'users',
|
|
'id_name' => 'created_by',
|
|
'module' => 'Users',
|
|
'duplicate_merge' => 'disabled',
|
|
'massupdate' => false,
|
|
),
|
|
'date_entered' => array(
|
|
'name' => 'date_entered',
|
|
'vname' => 'LBL_DATE_ENTERED',
|
|
'type' => 'date',
|
|
'comment' => 'Date record created',
|
|
),
|
|
'date_modified' => array(
|
|
'name' => 'date_modified',
|
|
'vname' => 'LBL_DATE_MODIFIED',
|
|
'type' => 'date',
|
|
'comment' => 'Date record last modified',
|
|
),
|
|
'modified_user_id' => array(
|
|
'name' => 'modified_user_id',
|
|
'rname' => 'user_name',
|
|
'id_name' => 'modified_user_id',
|
|
'vname' => 'LBL_CREATED_ID',
|
|
'type' => 'assigned_user_name',
|
|
'table' => 'users',
|
|
'isnull' => 'false',
|
|
'dbType' => 'id',
|
|
'group' => 'created_by_name',
|
|
'comment' => 'User who created record',
|
|
),
|
|
'ecmkpkw_name' => array (
|
|
'name' => 'ecmkpkw_name',
|
|
'vname' => 'LBL_NAME',
|
|
'type' => 'varchar',
|
|
'len' => '255',
|
|
'required'=>false,
|
|
'importable' => 'required',
|
|
),
|
|
'parent_name' => array(
|
|
'name'=> 'parent_name',
|
|
'parent_type'=>'ecmquotes_parent_dom' ,
|
|
// 'type_name'=>'parent_type',
|
|
'id_name'=>'parent_id',
|
|
'vname'=>'LBL_PARENT_NAME',
|
|
'type'=>'relate',
|
|
'group'=>'parent_name',
|
|
'dbtype' => 'varchar',
|
|
'len' => '255',
|
|
//'source'=>'non-db',
|
|
'module' => 'Accounts',
|
|
'massupdate' => false,
|
|
// 'options'=> 'ecmquotes_parent_dom',
|
|
'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,
|
|
),
|
|
'ecmcash_id' => array (
|
|
'name' => 'ecmcash_id',
|
|
'type' => 'id',
|
|
'module' => 'EcmCashs',
|
|
'vname' => 'LBL_PARENT_ID',
|
|
'massupdate' => false,
|
|
'reportable'=>false,
|
|
'required' => true,
|
|
),
|
|
'amount' => array(
|
|
'name' => 'amount',
|
|
'vname' => 'LBL_AMOUNT',
|
|
'type' => 'decimal',
|
|
'len' => '15,2',
|
|
'required' => true,
|
|
),
|
|
'description' => array (
|
|
'type' => 'text',
|
|
'name' => 'description',
|
|
'vname' => 'LBL_DESCRIPTION',
|
|
'comment' => 'Description',
|
|
'unified_search' => true,
|
|
//'required' => true,
|
|
),
|
|
'number' => array(
|
|
'name' => 'number',
|
|
'vname' => 'LBL_NUMBER',
|
|
'type' => 'varchar',
|
|
'required_option' => true,
|
|
'unified_search' => true,
|
|
'required' => true,
|
|
'len' => '20',
|
|
),
|
|
|
|
'document_no' => array(
|
|
'name' => 'document_no',
|
|
'vname' => 'LBL_DOCUMENT_NO',
|
|
'type' => 'varchar',
|
|
'required_option' => true,
|
|
'unified_search' => true,
|
|
'required' => true,
|
|
'len' => '30',
|
|
|
|
),
|
|
'register_date' => array (
|
|
'name' => 'register_date',
|
|
'vname' => 'LBL_PAYMENT_DATE',
|
|
'type' => 'date',
|
|
'reportable' => false,
|
|
'showFormats' => true,
|
|
'massupdate' => false,
|
|
'required' => false
|
|
),
|
|
'dir' => array (
|
|
'name' => 'dir',
|
|
'vname' => 'LBL_DIRECTION',
|
|
'type' => 'enum',
|
|
'size' => '2',
|
|
'required' => true,
|
|
'options' => 'ecmkpkw_type_dir',
|
|
'massupdate' => false,
|
|
),
|
|
'parent_name_copy' => array(
|
|
'name' => 'parent_name_copy',
|
|
'vname' => 'LBL_PARENT_NAME_COPY',
|
|
'type' => 'varchar',
|
|
'source' => 'non-db',
|
|
),
|
|
'parent_contact_name' => array (
|
|
'name' => 'parent_contact_name',
|
|
'vname' => 'LBL_PARENT_CONTACT_NAME',
|
|
'type' => 'varchar',
|
|
'len' => '255',
|
|
'merge_filter' => 'enabled',
|
|
),
|
|
'parent_contact_title' => array (
|
|
'name' => 'parent_contact_title',
|
|
'vname' => 'LBL_PARENT_CONTACT_TITLE',
|
|
'type' => 'varchar',
|
|
'len' => '255',
|
|
'merge_filter' => 'enabled',
|
|
),
|
|
'currency_id' => array (
|
|
'name' => 'currency_id',
|
|
'type' => 'enum',
|
|
'options' => 'currency_dom',
|
|
'label' => 'LBL_CURRENCY'
|
|
),
|
|
'currency_value' => array (
|
|
'name' => 'currency_value',
|
|
'type' => 'decimal',
|
|
'len' => '5,4',
|
|
'vname' => 'LBL_CURRENCY_VALUE',
|
|
'reportable' => false,
|
|
'required' => false
|
|
),
|
|
'parent_address_street' =>
|
|
array (
|
|
'name' => 'parent_address_street',
|
|
'vname' => 'LBL_PARENT_ADDRESS_STREET',
|
|
'type' => 'varchar',
|
|
'len' => '150',
|
|
'comment' => 'The street address used for parent address',
|
|
'group' => 'parent_address',
|
|
'merge_filter' => 'enabled',
|
|
),
|
|
'parent_address_city' =>
|
|
array (
|
|
'name' => 'parent_address_city',
|
|
'vname' => 'LBL_PARENT_ADDRESS_CITY',
|
|
'type' => 'varchar',
|
|
'len' => '100',
|
|
'comment' => 'The city used for parent address',
|
|
'group' => 'parent_address',
|
|
'merge_filter' => 'enabled',
|
|
),
|
|
'parent_address_postalcode' =>
|
|
array (
|
|
'name' => 'parent_address_postalcode',
|
|
'vname' => 'LBL_PARENT_ADDRESS_POSTALCODE',
|
|
'type' => 'varchar',
|
|
'len' => '20',
|
|
'group' => 'parent_address',
|
|
'comment' => 'The postal code used for parent address',
|
|
'merge_filter' => 'enabled',
|
|
),
|
|
'parent_address_country' =>
|
|
array (
|
|
'name' => 'parent_address_country',
|
|
'vname' => 'LBL_PARENT_ADDRESS_COUNTRY',
|
|
'type' => 'varchar',
|
|
'group' => 'parent_address',
|
|
'comment' => 'The country used for the parent address',
|
|
'merge_filter' => 'enabled',
|
|
),
|
|
'index_dbf' =>
|
|
array (
|
|
'name' => 'index_dbf',
|
|
'vname' => 'LBL_INDEX',
|
|
'type' => 'varchar',
|
|
'group' => 'parent_address',
|
|
//'comment' => 'The country used for the parent address',
|
|
'merge_filter' => 'enabled',
|
|
),
|
|
|
|
'created_by' => array (
|
|
'name' => 'created_by',
|
|
'rname' => 'user_name',
|
|
'id_name' => 'created_by',
|
|
'vname' => 'LBL_CREATED',
|
|
'type' => 'assigned_user_name',
|
|
'table' => 'created_by_users',
|
|
'isnull' => 'false',
|
|
'dbType' => 'varchar',
|
|
'len' => 36,
|
|
'comment' => 'User that created the record'
|
|
),
|
|
|
|
'created_by_link' => array (
|
|
'name' => 'created_by_link',
|
|
'type' => 'link',
|
|
'relationship' => 'ecmkpkw'.'_created_by',
|
|
'vname' => 'LBL_CREATED_BY_USER',
|
|
'link_type' => 'one',
|
|
'module' => 'Users',
|
|
'bean_name' => 'User',
|
|
'source' => 'non-db',
|
|
),
|
|
|
|
'modified_user_link' => array (
|
|
'name' => 'modified_user_link',
|
|
'type' => 'link',
|
|
'relationship' => 'ecmkpkw'.'_modified_user',
|
|
'vname' => 'LBL_MODIFIED_BY_USER',
|
|
'link_type' => 'one',
|
|
'module' => 'Users',
|
|
'bean_name' => 'User',
|
|
'source' => 'non-db',
|
|
),
|
|
|
|
'assigned_user_link' => array (
|
|
'name' => 'assigned_user_link',
|
|
'type' => 'link',
|
|
'relationship' => 'ecmkpkw'.'_assigned_user',
|
|
'vname' => 'LBL_ASSIGNED_TO_USER',
|
|
'link_type' => 'one',
|
|
'module' => 'Users',
|
|
'bean_name' => 'User',
|
|
'source' => 'non-db',
|
|
'duplicate_merge' => 'enabled',
|
|
'rname' => 'user_name',
|
|
'id_name' => 'assigned_user_id',
|
|
'table' => 'users',
|
|
),
|
|
//END fields used for contract ecmkpkw subpanel.
|
|
|
|
),
|
|
'relationships' => array (
|
|
'ecmkpkw_ecmstockdocouts' => array(
|
|
'lhs_module'=> 'EcmStockDocOuts',
|
|
'lhs_table'=> 'ecmstockdocouts',
|
|
'lhs_key' => 'id',
|
|
'rhs_module'=> 'EcmKpkw',
|
|
'rhs_table'=> 'ecmkpkw',
|
|
'rhs_key' => 'wz_id',
|
|
'relationship_type'=>'one-to-many'),
|
|
|
|
'ecmkpkw'.'_modified_user' => array (
|
|
'lhs_module' => 'Users',
|
|
'lhs_table' => 'users',
|
|
'lhs_key' => 'id',
|
|
'rhs_module' => 'EcmKpkw',
|
|
'rhs_table' => 'ecmkpkw',
|
|
'rhs_key' => 'modified_user_id',
|
|
'relationship_type' => 'one-to-many'
|
|
),
|
|
|
|
'ecmkpkw'.'_created_by' => array (
|
|
'lhs_module' => 'Users',
|
|
'lhs_table' => 'users',
|
|
'lhs_key' => 'id',
|
|
'rhs_module' => 'EcmKpkw',
|
|
'rhs_table' => 'ecmkpkw',
|
|
'rhs_key' => 'created_by',
|
|
'relationship_type' => 'one-to-many'
|
|
),
|
|
|
|
'ecmkpkw'.'_account' => array (
|
|
'lhs_module' => 'Accounts', 'lhs_table' => 'accounts', 'lhs_key' => 'id',
|
|
'rhs_module' => 'EcmKpkw', 'rhs_table' => 'ecmkpkw', 'rhs_key' => 'parent_id',
|
|
'relationship_type' => 'one-to-many'
|
|
),
|
|
|
|
'ecmkpkw'.'_project' => array (
|
|
'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id',
|
|
'rhs_module' => 'EcmKpkw', 'rhs_table' => 'ecmkpkw', 'rhs_key' => 'parent_id',
|
|
'relationship_type' => 'one-to-many'
|
|
),
|
|
|
|
'ecmkpkw'.'_bug' => array (
|
|
'lhs_module' => 'Bugs', 'lhs_table' => 'bugs', 'lhs_key' => 'id',
|
|
'rhs_module' => 'EcmKpkw', 'rhs_table' => 'ecmkpkw', 'rhs_key' => 'parent_id',
|
|
'relationship_type' => 'one-to-many'
|
|
),
|
|
|
|
'ecmkpkw'.'_case' => array (
|
|
'lhs_module' => 'Cases', 'lhs_table' => 'cases', 'lhs_key' => 'id',
|
|
'rhs_module' => 'EcmKpkw', 'rhs_table' => 'ecmkpkw', 'rhs_key' => 'parent_id',
|
|
'relationship_type' => 'one-to-many'
|
|
),
|
|
|
|
'ecmkpkw'.'_task' => array (
|
|
'lhs_module' => 'Tasks', 'lhs_table' => 'tasks', 'lhs_key' => 'id',
|
|
'rhs_module' => 'EcmKpkw', 'rhs_table' => 'ecmkpkw', 'rhs_key' => 'parent_id',
|
|
'relationship_type' => 'one-to-many'
|
|
),
|
|
)
|
|
|
|
);
|
|
// VardefManager::createVardef('EcmKpkw','EcmKpkw', array('default',
|
|
// ));
|
|
|