389 lines
12 KiB
PHP
389 lines
12 KiB
PHP
<?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 - 2007 SugarCRM Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* the terms of the GNU 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 General Public License for more
|
|
* details.
|
|
*
|
|
* You should have received a copy of the GNU 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 General Public License version 3.
|
|
*
|
|
* In accordance with Section 7(b) of the GNU 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['EcmPrepaymentInvoice']=array(
|
|
'table'=>'ecmprepaymentinvoices',
|
|
'audited'=>false,
|
|
'comment'=>'EcmPrepaymentInvoices',
|
|
'duplicate_merge'=>true ,
|
|
'unified_search'=>true,
|
|
'fields'=>array(
|
|
'document_no' => array(
|
|
'name' => 'document_no',
|
|
'vname' => 'LBL_DOCUMENT_NO',
|
|
'type' => 'varchar',
|
|
'required_option' => true,
|
|
'unified_search' => true,
|
|
'required' => true,
|
|
'len' => '30',
|
|
),
|
|
'template_id' =>
|
|
array (
|
|
'name' => 'template_id',
|
|
'vname' => 'LBL_TEMPLATE_ID',
|
|
'type' => 'id',
|
|
'required_option' => true,
|
|
'required' => true,
|
|
),
|
|
'template_name' =>
|
|
array (
|
|
'name' => 'template_name',
|
|
'vname' => 'LBL_TEMPLATE_NAME',
|
|
'type' => 'varchar',
|
|
'len' => '100',
|
|
'required_option' => true,
|
|
'unified_search' => true,
|
|
'required' => true,
|
|
),
|
|
|
|
'ecmvat_id' =>
|
|
array (
|
|
'name' => 'ecmvat_id',
|
|
'vname' => 'LBL_ECMVAT_ID',
|
|
'type' => 'id',
|
|
'required_option' => true,
|
|
'required' => true,
|
|
),
|
|
'ecmvat_name' =>
|
|
array (
|
|
'name' => 'ecmvat_name',
|
|
'vname' => 'LBL_ECMVAT_NAME',
|
|
'type' => 'varchar',
|
|
'len' => '100',
|
|
'required_option' => true,
|
|
'unified_search' => true,
|
|
'required' => true,
|
|
),
|
|
'ecmvat_value' =>
|
|
array (
|
|
'name' => 'ecmvat_value',
|
|
'vname' => 'LBL_ECMVAT_VALUE',
|
|
'type' => 'decimal',
|
|
'len' => '10,4',
|
|
'required_option' => false,
|
|
'unified_search' => true,
|
|
'required' => false,
|
|
),
|
|
'currency_id' =>
|
|
array (
|
|
'name' => 'currency_id',
|
|
'type' => 'enum',
|
|
'options' => 'currency_dom',
|
|
'label' => 'LBL_CURRENCY',
|
|
'required' => true,
|
|
),
|
|
'currency_value' =>
|
|
array (
|
|
'name' => 'currency_value',
|
|
'type' => 'decimal',
|
|
'len' => '10,4',
|
|
'label' => 'LBL_CURRENCY_VALUE',
|
|
),
|
|
'currency_value_nbp' =>
|
|
array (
|
|
'name' => 'currency_value_nbp',
|
|
'type' => 'decimal',
|
|
'len' => '10,4',
|
|
'label' => 'LBL_CURRENCY_VALUE_NBP',
|
|
),
|
|
'products_on_pdf' => array (
|
|
'name' => 'products_on_pdf',
|
|
'type' => 'text',
|
|
),
|
|
'other_ecmprepaymentinvoices' =>
|
|
array (
|
|
'name' => 'other_ecmprepaymentinvoices',
|
|
'vname' => 'LBL_OTHER_ECMPRAPAYMENTINVOICES',
|
|
'type' => 'varchar',
|
|
'source' => 'non-db',
|
|
),
|
|
'other_ecmprepaymentinvoices_sum' =>
|
|
array (
|
|
'name' => 'other_ecmprepaymentinvoices',
|
|
'vname' => 'LBL_OTHER_ECMPRAPAYMENTINVOICES_SUM',
|
|
'type' => 'decimal',
|
|
'len' => '10,2',
|
|
'source' => 'non-db',
|
|
),
|
|
'register_date' => array (
|
|
'name' => 'register_date',
|
|
'vname' => 'LBL_REGISTER_DATE',
|
|
'type' => 'date',
|
|
'reportable' => false,
|
|
'showFormats' => true,
|
|
'massupdate' => false,
|
|
'required' => true,
|
|
),
|
|
'payment_date' => array (
|
|
'name' => 'payment_date',
|
|
'vname' => 'LBL_PAYMENT_DATE',
|
|
'type' => 'date',
|
|
'reportable' => false,
|
|
'showFormats' => true,
|
|
'massupdate' => false,
|
|
'required' => true,
|
|
),
|
|
'ecmpaymentcondition_id' =>
|
|
array (
|
|
'name' => 'ecmpaymentcondition_id',
|
|
'rname' => 'name',
|
|
'id_name' => 'ecmpaymentcondition_id',
|
|
'vname' => 'LBL_PAYMENTCONDITION_ID',
|
|
'group' => 'ecmpaymentcondition_name',
|
|
'type' => 'relate',
|
|
'table' => 'ecmpaymentconditions',
|
|
'reportable' => true,
|
|
'Importable' => false,
|
|
'isnull' => 'false',
|
|
'dbType' => 'id',
|
|
'audited' => true,
|
|
'duplicate_merge' => 'disabled',
|
|
'massupdate' => false,
|
|
),
|
|
'ecmpaymentcondition_name' =>
|
|
array (
|
|
'name' => 'ecmpaymentcondition_name',
|
|
'vname' => 'LBL_PAYMENTCONDITION_NAME',
|
|
'type' => 'relate',
|
|
'reportable' => false,
|
|
'source' => 'non-db',
|
|
'table' => 'ecmpaymentcondition',
|
|
'id_name' => 'ecmpaymentcondition_id',
|
|
'module' => 'EcmPaymentConditions',
|
|
'duplicate_merge' => 'disabled',
|
|
'massupdate' => false,
|
|
),
|
|
'ecmpaymentcondition_text' =>
|
|
array (
|
|
'name' => 'ecmpaymentcondition_text',
|
|
'vname' => 'LBL_PAYMENTCONDITION_TEXT',
|
|
'type' => 'text',
|
|
'reportable' => false,
|
|
'module' => 'EcmPaymentConditions',
|
|
'duplicate_merge' => 'disabled',
|
|
'massupdate' => false,
|
|
),
|
|
'parent_type' => array(
|
|
'name'=>'parent_type',
|
|
'vname'=>'LBL_PARENT',
|
|
'type'=>'varchar',
|
|
'required'=>true,
|
|
'reportable'=>false,
|
|
'len'=>'25',
|
|
'comment' => 'The Sugar object to which the call is related',
|
|
'massupdate' => false,
|
|
),
|
|
'parent_name' => array(
|
|
'name'=> 'parent_name',
|
|
'parent_type'=>'ecmreceipts_parent_dom' ,
|
|
'id_name'=>'parent_id',
|
|
'vname'=>'LBL_PARENT_NAME',
|
|
'type'=>'relate',
|
|
'group'=>'parent_name',
|
|
'dbtype' => 'varchar',
|
|
'len' => '255',
|
|
'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,
|
|
),
|
|
'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',
|
|
),
|
|
'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',
|
|
'required' => true,
|
|
),
|
|
'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',
|
|
'required' => true,
|
|
),
|
|
'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',
|
|
'required' => true,
|
|
),
|
|
'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',
|
|
),
|
|
'to_vatid' =>
|
|
array (
|
|
'name' => 'to_vatid',
|
|
'vname' => 'LBL_TO_NIP',
|
|
'type' => 'varchar',
|
|
'len' => 15,
|
|
'required' => true,
|
|
),
|
|
'ecmlanguage' =>
|
|
array(
|
|
'name' => 'ecmlanguage',
|
|
'vname' => 'LBL_ECMLANGUAGE',
|
|
'type' => 'enum',
|
|
'options' => 'ecmlanguages_dom',
|
|
'required' => true,
|
|
'len' => 35,
|
|
'massupdate' => false,
|
|
),
|
|
'ecmsale_id' =>
|
|
array (
|
|
'name' => 'ecmsale_id',
|
|
'type' => 'id',
|
|
'vname' => 'LBL_ECMSALE_ID',
|
|
'group'=>'ecmsale_name',
|
|
'reportable'=>false,
|
|
),
|
|
'ecmsale_name' =>
|
|
array (
|
|
'name' => 'ecmsale_name',
|
|
'rname'=>'document_no',
|
|
'dbType'=> 'varchar',
|
|
'len' => '255',
|
|
'group'=>'ecmsale_name',
|
|
'vname' => 'LBL_ECMSALE_NAME',
|
|
'reportable'=>false,
|
|
'id_name' => 'ecmsale_id',
|
|
'join_name' => 'ecmsales',
|
|
'type' => 'relate',
|
|
'module' => 'EcmSales',
|
|
'link'=>'ecmsales',
|
|
),
|
|
'inv_value' =>
|
|
array(
|
|
'name' => 'inv_value',
|
|
'type' => 'decimal',
|
|
'len' => '10,2',
|
|
),
|
|
'number' => array(
|
|
'name' => 'number',
|
|
'vname' => 'LBL_NUMBER',
|
|
'type' => 'varchar',
|
|
'required_option' => true,
|
|
'unified_search' => true,
|
|
'required' => true,
|
|
'len' => '20',
|
|
),
|
|
),
|
|
'indices'=>array(
|
|
array('name'=>'idx_ecmprepaymentinvoice_id_del','type'=>'index','fields'=>array('id','deleted')),
|
|
array('name'=>'idx_ecmprepaymentinvoice_assigned_del','type'=>'index','fields'=>array( 'deleted', 'assigned_user_id')),
|
|
),
|
|
'relationships'=>array(
|
|
'ecmprepaymentinvoices_assigned_user'=>array(
|
|
'lhs_module'=>'Users',
|
|
'lhs_table'=>'users',
|
|
'lhs_key'=>'id',
|
|
'rhs_module'=>'EcmPrepaymentInvoices',
|
|
'rhs_table'=>'ecmprepaymentinvoices',
|
|
'rhs_key'=>'assigned_user_id',
|
|
'relationship_type'=>'one-to-many'
|
|
),
|
|
'ecmprepaymentinvoices_modified_user'=>array(
|
|
'lhs_module'=>'Users',
|
|
'lhs_table'=>'users',
|
|
'lhs_key'=>'id',
|
|
'rhs_module'=>'EcmPrepaymentInvoices',
|
|
'rhs_table'=>'ecmprepaymentinvoices',
|
|
'rhs_key'=>'modified_user_id',
|
|
'relationship_type'=>'one-to-many'
|
|
),
|
|
'ecmprepaymentinvoices_created_by'=>array(
|
|
'lhs_module'=>'Users',
|
|
'lhs_table'=>'users',
|
|
'lhs_key'=>'id',
|
|
'rhs_module'=>'EcmPrepaymentInvoices',
|
|
'rhs_table'=>'ecmprepaymentinvoices',
|
|
'rhs_key'=>'created_by',
|
|
'relationship_type'=>'one-to-many'
|
|
)
|
|
),
|
|
'optimistic_locking'=>true,
|
|
);
|
|
require_once('include/SugarObjects/VardefManager.php');
|
|
VardefManager::createVardef('EcmPrepaymentInvoices','EcmPrepaymentInvoice', array('default','assignable'));
|
|
?>
|