Add php files
This commit is contained in:
76
modules/Accounts/metadata/SearchFields.php
Normal file
76
modules/Accounts/metadata/SearchFields.php
Normal file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
|
||||
********************************************************************************/
|
||||
|
||||
$searchFields['Accounts'] =
|
||||
array (
|
||||
'name' => array( 'query_type'=>'default'),
|
||||
'account_type'=> array('query_type'=>'default', 'options' => 'account_type_dom', 'template_var' => 'ACCOUNT_TYPE_OPTIONS'),
|
||||
'industry'=> array('query_type'=>'default', 'options' => 'industry_dom', 'template_var' => 'INDUSTRY_OPTIONS'),
|
||||
'annual_revenue'=> array('query_type'=>'default'),
|
||||
'address_street'=> array('query_type'=>'default','db_field'=>array('billing_address_street','register_address_street')),
|
||||
'address_city'=> array('query_type'=>'default','db_field'=>array('billing_address_city','register_address_city'), 'vname' =>'LBL_CITY'),
|
||||
'address_state'=> array('query_type'=>'default','db_field'=>array('billing_address_state','register_address_state'), 'vname' =>'LBL_STATE'),
|
||||
'address_postalcode'=> array('query_type'=>'default','db_field'=>array('billing_address_postalcode','register_address_postalcode'), 'vname' =>'LBL_POSTAL_CODE'),
|
||||
'address_country'=> array('query_type'=>'default','db_field'=>array('billing_address_country','register_address_country'), 'vname' =>'LBL_COUNTRY'),
|
||||
'rating'=> array('query_type'=>'default'),
|
||||
'phone'=> array('query_type'=>'default','db_field'=>array('phone_office'),'vname' =>'LBL_ANY_PHONE'),
|
||||
'email'=> array(
|
||||
'query_type' => 'default',
|
||||
'operator' => 'subquery',
|
||||
'subquery' => 'SELECT eabr.bean_id FROM email_addr_bean_rel eabr JOIN email_addresses ea ON (ea.id = eabr.email_address_id) WHERE eabr.deleted=0 AND ea.email_address LIKE',
|
||||
'db_field' => array(
|
||||
'id',
|
||||
),
|
||||
'vname' =>'LBL_ANY_EMAIL',
|
||||
),
|
||||
'website'=> array('query_type'=>'default'),
|
||||
'employees'=> array('query_type'=>'default'),
|
||||
'sic_code'=> array('query_type'=>'default'),
|
||||
'ticker_symbol'=> array('query_type'=>'default'),
|
||||
'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
|
||||
'assigned_user_id'=> array('query_type'=>'default'),
|
||||
//Range Search Support
|
||||
'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
//Range Search Support
|
||||
'without_history'=> array('query_type'=>'default','db_field'=>array('without_history'),'my_items'=>true, 'vname' => 'LBL_WITHOUT_HISTORY', 'type' => 'bool'),
|
||||
);
|
||||
?>
|
||||
61
modules/Accounts/metadata/acldefs.php
Normal file
61
modules/Accounts/metadata/acldefs.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
|
||||
********************************************************************************/
|
||||
|
||||
// created: 2005-10-19 11:16:08
|
||||
$acldefs['Accounts'] = array (
|
||||
'forms' =>
|
||||
array (
|
||||
'by_name' =>
|
||||
array (
|
||||
'btn1' =>
|
||||
array (
|
||||
'display_option' => 'disabled',
|
||||
'action_option' => 'list',
|
||||
'app_action' => 'EditView',
|
||||
'module' => 'Accounts',
|
||||
),
|
||||
),
|
||||
),
|
||||
'form_names' =>
|
||||
array (
|
||||
'by_id' => 'by_id',
|
||||
'by_name' => 'by_name',
|
||||
'DetailView' => 'DetailView',
|
||||
'EditView' => 'EditView',
|
||||
),
|
||||
);
|
||||
?>
|
||||
84
modules/Accounts/metadata/additionalDetails.php
Normal file
84
modules/Accounts/metadata/additionalDetails.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
function additionalDetailsAccount($fields) {
|
||||
static $mod_strings;
|
||||
global $app_strings;
|
||||
if(empty($mod_strings)) {
|
||||
global $current_language;
|
||||
$mod_strings = return_module_language($current_language, 'Accounts');
|
||||
}
|
||||
$overlib_string = '';
|
||||
|
||||
if(!empty($fields['BILLING_ADDRESS_STREET']) || !empty($fields['BILLING_ADDRESS_CITY']) ||
|
||||
!empty($fields['BILLING_ADDRESS_STATE']) || !empty($fields['BILLING_ADDRESS_POSTALCODE']) ||
|
||||
!empty($fields['BILLING_ADDRESS_COUNTRY']))
|
||||
$overlib_string .= '<b>' . $mod_strings['LBL_BILLING_ADDRESS'] . '</b><br>';
|
||||
if(!empty($fields['BILLING_ADDRESS_STREET'])) $overlib_string .= $fields['BILLING_ADDRESS_STREET'] . '<br>';
|
||||
if(!empty($fields['BILLING_ADDRESS_STREET_2'])) $overlib_string .= $fields['BILLING_ADDRESS_STREET_2'] . '<br>';
|
||||
if(!empty($fields['BILLING_ADDRESS_STREET_3'])) $overlib_string .= $fields['BILLING_ADDRESS_STREET_3'] . '<br>';
|
||||
if(!empty($fields['BILLING_ADDRESS_STREET_4'])) $overlib_string .= $fields['BILLING_ADDRESS_STREET_4'] . '<br>';
|
||||
if(!empty($fields['BILLING_ADDRESS_CITY'])) $overlib_string .= $fields['BILLING_ADDRESS_CITY'] . ', ';
|
||||
if(!empty($fields['BILLING_ADDRESS_STATE'])) $overlib_string .= $fields['BILLING_ADDRESS_STATE'] . ' ';
|
||||
if(!empty($fields['BILLING_ADDRESS_POSTALCODE'])) $overlib_string .= $fields['BILLING_ADDRESS_POSTALCODE'] . ' ';
|
||||
if(!empty($fields['BILLING_ADDRESS_COUNTRY'])) $overlib_string .= $fields['BILLING_ADDRESS_COUNTRY'] . '<br>';
|
||||
|
||||
if(strlen($overlib_string) > 0 && !(strrpos($overlib_string, '<br>') == strlen($overlib_string) - 4))
|
||||
$overlib_string .= '<br>';
|
||||
|
||||
if(!empty($fields['PHONE_FAX'])) $overlib_string .= '<b>'. $mod_strings['LBL_FAX'] . '</b> <span class="phone">' . $fields['PHONE_FAX'] . '</span><br>';
|
||||
if(!empty($fields['PHONE_ALTERNATE'])) $overlib_string .= '<b>'. $mod_strings['LBL_OTHER_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_ALTERNATE'] . '</span><br>';
|
||||
if(!empty($fields['WEBSITE']))
|
||||
$overlib_string .= '<a target=_blank href=http://'. $fields['WEBSITE'] . '>' . $fields['WEBSITE'] . '</a><br>';
|
||||
if(!empty($fields['INDUSTRY'])) $overlib_string .= '<b>'. $mod_strings['LBL_INDUSTRY'] . '</b> ' . $fields['INDUSTRY'] . '<br>';
|
||||
if(!empty($fields['DESCRIPTION'])) {
|
||||
$overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
|
||||
if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
|
||||
}
|
||||
|
||||
return array('fieldToAddTo' => 'NAME',
|
||||
'string' => $overlib_string,
|
||||
'editLink' => "index.php?action=EditView&module=Accounts&return_module=Accounts&record={$fields['ID']}",
|
||||
'viewLink' => "index.php?action=DetailView&module=Accounts&return_module=Accounts&record={$fields['ID']}");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
336
modules/Accounts/metadata/detailviewdefs.php
Normal file
336
modules/Accounts/metadata/detailviewdefs.php
Normal file
@@ -0,0 +1,336 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
|
||||
********************************************************************************/
|
||||
|
||||
$viewdefs['Accounts']['DetailView'] = array(
|
||||
'templateMeta' => array(
|
||||
'form' => array(
|
||||
'buttons' => array(
|
||||
0 => 'EDIT',
|
||||
1 => 'DELETE'
|
||||
|
||||
|
||||
)
|
||||
),
|
||||
'maxColumns' => '2',
|
||||
'widths' => array(
|
||||
array(
|
||||
'label' => '10',
|
||||
'field' => '30'
|
||||
),
|
||||
array(
|
||||
'label' => '10',
|
||||
'field' => '30'
|
||||
)
|
||||
),
|
||||
'includes' => array(
|
||||
array(
|
||||
'file' => 'modules/Accounts/Account.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/Accounts/AccountDetailView.js'
|
||||
)
|
||||
)
|
||||
),
|
||||
'panels' => array(
|
||||
'lbl_account_information' => array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'name',
|
||||
'comment' => 'Name of the Company',
|
||||
'label' => 'LBL_NAME',
|
||||
'displayParams' => array(
|
||||
'enableConnectors' => true,
|
||||
'module' => 'Accounts',
|
||||
'connectors' => array(
|
||||
0 => 'ext_rest_linkedin'
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
'name' => 'index_dbf',
|
||||
'label' => 'LBL_INDEX'
|
||||
)
|
||||
),
|
||||
|
||||
array(
|
||||
'to_vatid',
|
||||
'regon'
|
||||
),
|
||||
array(
|
||||
'krs',
|
||||
'natural_person'
|
||||
),
|
||||
array(
|
||||
'ks_account',
|
||||
'vat_payer',
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'shop_number',
|
||||
'label' => 'Numer sklepu'
|
||||
),
|
||||
'supplier_code',
|
||||
|
||||
),
|
||||
array(
|
||||
'iln',
|
||||
'parent_name',
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'register_address_street',
|
||||
'label' => 'LBL_REGISTER_ADDRESS',
|
||||
'type' => 'address',
|
||||
'displayParams' => array(
|
||||
'key' => 'register'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'name' => 'billing_address_street',
|
||||
'label' => 'LBL_BILLING_ADDRESS',
|
||||
'type' => 'address',
|
||||
'displayParams' => array(
|
||||
'key' => 'billing'
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
),
|
||||
array(
|
||||
'maps',
|
||||
'isHidden'
|
||||
),
|
||||
|
||||
array(
|
||||
array(
|
||||
'name' => 'email1',
|
||||
'studio' => 'false',
|
||||
'label' => 'LBL_EMAIL'
|
||||
),
|
||||
array(
|
||||
'name' => 'items_list_panel',
|
||||
'hideLabel' => false,
|
||||
'label' => 'LBL_WEBSITE_NAME',
|
||||
'customCode' => "
|
||||
{include file='modules/Accounts/tpls/Websites_DetailView.tpl'}"
|
||||
/*
|
||||
<input type="hidden" name="websites_list" id="websites_list" value=\'{$WEBSITES_LIST}\'>
|
||||
<div style="width:30%;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="itemsTableDIV2">
|
||||
|
||||
</div><br>', */
|
||||
)
|
||||
),
|
||||
array(
|
||||
array(
|
||||
|
||||
),
|
||||
array(
|
||||
'name' => 'items_list_panel',
|
||||
'hideLabel' => false,
|
||||
'label' => 'Telefony',
|
||||
'customCode' => "
|
||||
{include file='modules/Accounts/tpls/Telephones_DetailView.tpl'}"
|
||||
/*
|
||||
<input type="hidden" name="websites_list" id="websites_list" value=\'{$WEBSITES_LIST}\'>
|
||||
<div style="width:30%;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="itemsTableDIV2">
|
||||
|
||||
</div><br>', */
|
||||
)
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'description',
|
||||
'comment' => 'Full text of the note',
|
||||
'label' => 'LBL_DESCRIPTION'
|
||||
),
|
||||
array(
|
||||
'name' => 'pdf_text',
|
||||
'comment' => 'Full text of the note',
|
||||
'label' => 'Uwagi na fakturze'
|
||||
)
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'phone_office',
|
||||
'comment' => 'The office phone number',
|
||||
'label' => 'LBL_PHONE_OFFICE'
|
||||
),
|
||||
array(
|
||||
'name' => 'phone_fax',
|
||||
'comment' => 'The fax phone number of this company',
|
||||
'label' => 'LBL_FAX'
|
||||
)
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'account_type',
|
||||
'comment' => 'The Company is of this type',
|
||||
'label' => 'LBL_TYPE'
|
||||
),
|
||||
array(
|
||||
'name' => 'account_type2',
|
||||
'comment' => 'The Company is of this type',
|
||||
'label' => 'LBL_TYPE_2'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'invoice_type',
|
||||
'ecmdeliverycondition_name'
|
||||
),
|
||||
array(
|
||||
'',
|
||||
array(
|
||||
'name' => 'currency_id',
|
||||
'label' => 'LBL_CURRENCY'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'payment_method',
|
||||
'invoice_bank_account'
|
||||
),
|
||||
array(
|
||||
'payment_date_days',
|
||||
''
|
||||
)
|
||||
|
||||
),
|
||||
|
||||
'LBL_SHOP_PANEL' => array(
|
||||
array(
|
||||
'shop_user',
|
||||
'isAllegroUser'
|
||||
)
|
||||
),
|
||||
|
||||
'Rozrachunki' => array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'saldo',
|
||||
'label' => 'Saldo',
|
||||
'customCode' => '{$saldo}'
|
||||
),
|
||||
/*
|
||||
array(
|
||||
'name' => 'today_saldo',
|
||||
'label' => 'Saldo na dziś',
|
||||
'customCode' => '{$today_saldo}'
|
||||
) */
|
||||
),
|
||||
array('allow_prevent','allow_debt_collection'
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'rozrachunki',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '<a href="index.php?module=EcmPaymentStates&action=AccountPaymentStates&account_id={$fields.id.value}">Sprawdź</a>'
|
||||
)
|
||||
|
||||
)
|
||||
),
|
||||
'LBL_PANEL_DELIVERY_ADDRESSES' => array(
|
||||
0 => array(
|
||||
0 => array(
|
||||
'name' => 'items_list_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '{$POSITIONS}'
|
||||
)
|
||||
)
|
||||
),
|
||||
'LBL_PANEL_BANK_ACCOUNTS' => array(
|
||||
0 => array(
|
||||
0 => array(
|
||||
'name' => 'items_list_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '{$POSITIONS4}'
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
'LBL_PANEL_DISCOUNTS' => array(
|
||||
0 => array(
|
||||
0 => array(
|
||||
'name' => 'items_list_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '{$POSITIONS2}'
|
||||
)
|
||||
)
|
||||
),
|
||||
'LBL_PANEL_CATEGORIES' => array(
|
||||
0 => array(
|
||||
0 => array(
|
||||
'name' => 'items_list_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '{$POSITIONS3}'
|
||||
)
|
||||
)
|
||||
),
|
||||
'LBL_PANEL_SALES' => array(
|
||||
0 => array(
|
||||
0 => array(
|
||||
'name' => 'sales_chart_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '{include file="modules/Accounts/tpls/SalesChart.tpl"}'
|
||||
)
|
||||
)
|
||||
),
|
||||
'LBL_PANEL_ASSIGNMENT' => array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'assigned_user_name',
|
||||
'label' => 'LBL_ASSIGNED_TO'
|
||||
),
|
||||
array(
|
||||
'name' => 'date_modified',
|
||||
'label' => 'LBL_DATE_MODIFIED',
|
||||
'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}'
|
||||
)
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'date_entered',
|
||||
'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}'
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
406
modules/Accounts/metadata/editviewdefs.php
Normal file
406
modules/Accounts/metadata/editviewdefs.php
Normal file
@@ -0,0 +1,406 @@
|
||||
<?php
|
||||
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
|
||||
********************************************************************************/
|
||||
|
||||
$viewdefs['Accounts']['EditView'] = array(
|
||||
'templateMeta' => array(
|
||||
'form' => array(
|
||||
'buttons' => array(
|
||||
array(
|
||||
'customCode' => '<input type="submit" name="save" class="button" value="{$LBL_SAVE}" onclick="saveItems(true);saveItems2(true);saveItems3(true);saveItems4(true);this.form.action.value=\'Save\';return check_form_(\'EditView\');" />'
|
||||
),
|
||||
'CANCEL',
|
||||
array(
|
||||
'customCode' => '<link rel="stylesheet" href="modules/Accounts/css/jquery-ui.css">'
|
||||
)
|
||||
)
|
||||
),
|
||||
'maxColumns' => '2',
|
||||
'widths' => array(
|
||||
array(
|
||||
'label' => '10',
|
||||
'field' => '30'
|
||||
),
|
||||
array(
|
||||
'label' => '10',
|
||||
'field' => '30'
|
||||
)
|
||||
),
|
||||
'includes' => array(
|
||||
array(
|
||||
'file' => 'modules/Accounts/jquery.min.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/Accounts/jquery_ui.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/Accounts/Account.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/Accounts/Banks.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'include/JSON.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/Accounts/Addresses.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/Accounts/Discounts.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/Accounts/Categories.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/Accounts/js/Websites.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/Accounts/js/Telephones.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/Accounts/js/States.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/Accounts/MyTable.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/Accounts/paramsMT.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'include/ECM/GusApiSugar/GusApiSugar.js'
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
'panels' => array(
|
||||
|
||||
'lbl_account_information' => array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'name',
|
||||
'label' => 'LBL_NAME',
|
||||
'displayParams' => array(
|
||||
'required' => true,
|
||||
'rows' => 4,
|
||||
'cols' => 50
|
||||
)
|
||||
),
|
||||
array(
|
||||
'name' => 'index_dbf',
|
||||
'label' => 'LBL_INDEX'
|
||||
)
|
||||
|
||||
),
|
||||
|
||||
array(
|
||||
array(
|
||||
'name' => 'to_vatid',
|
||||
'label' => 'LBL_TO_VATID',
|
||||
'customCode' => '<input value="{$fields.to_vatid.value}" name="to_vatid" id="to_vatid" type="text"/><input type="button" onClick="GusApiInit();" value="Szukaj w GUS"><div id="GusApiSearch" style="display:none"><div><p id="nip_exist" style="display:none">{$MOD.LBL_NIP_EXIST}</p>'
|
||||
),
|
||||
'regon'
|
||||
|
||||
),
|
||||
array(
|
||||
'vat_payer',
|
||||
'iln'
|
||||
),
|
||||
array(
|
||||
'krs',
|
||||
'natural_person'
|
||||
),
|
||||
array(
|
||||
|
||||
array(
|
||||
'name' => 'shop_number',
|
||||
'label' => 'Numer sklepu'
|
||||
),
|
||||
'supplier_code',
|
||||
),
|
||||
array(
|
||||
'parent_name',
|
||||
'isHidden'
|
||||
),
|
||||
array(
|
||||
|
||||
array(
|
||||
'name' => 'register_address_street',
|
||||
'hideLabel' => true,
|
||||
'type' => 'address',
|
||||
'displayParams' => array(
|
||||
'key' => 'register',
|
||||
'rows' => 2,
|
||||
'cols' => 50,
|
||||
'maxlength' => 150
|
||||
)
|
||||
),
|
||||
array(
|
||||
'name' => 'billing_address_street',
|
||||
'hideLabel' => true,
|
||||
'type' => 'address',
|
||||
'displayParams' => array(
|
||||
'key' => 'billing',
|
||||
'rows' => 2,
|
||||
'cols' => 50,
|
||||
'maxlength' => 150
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
array(
|
||||
|
||||
array(
|
||||
'name' => 'email1',
|
||||
'studio' => 'false',
|
||||
'label' => 'LBL_EMAIL'
|
||||
),
|
||||
array(
|
||||
'name' => 'items_list_panel',
|
||||
'hideLabel' => false,
|
||||
'label' => 'LBL_WEBSITE_NAME',
|
||||
'customCode' => "
|
||||
{include file='modules/Accounts/tpls/Websites_EditView.tpl'}"
|
||||
/*
|
||||
<input type="hidden" name="websites_list" id="websites_list" value=\'{$WEBSITES_LIST}\'>
|
||||
<div style="width:30%;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="itemsTableDIV2">
|
||||
|
||||
</div><br>', */
|
||||
)
|
||||
),
|
||||
array(
|
||||
|
||||
array(),
|
||||
array(
|
||||
'name' => 'items_list_panel',
|
||||
'hideLabel' => false,
|
||||
'label' => 'Telefony',
|
||||
'customCode' => "
|
||||
{include file='modules/Accounts/tpls/Telephones_EditView.tpl'}"
|
||||
/*
|
||||
<input type="hidden" name="websites_list" id="websites_list" value=\'{$WEBSITES_LIST}\'>
|
||||
<div style="width:30%;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="itemsTableDIV2">
|
||||
|
||||
</div><br>', */
|
||||
)
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'phone_office',
|
||||
'label' => 'LBL_PHONE_OFFICE'
|
||||
),
|
||||
|
||||
array(
|
||||
'name' => 'phone_fax',
|
||||
'label' => 'LBL_FAX'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'account_type',
|
||||
'account_type2'
|
||||
),
|
||||
array(
|
||||
'invoice_type',
|
||||
'ecmdeliverycondition_name'
|
||||
),
|
||||
array(),
|
||||
array(
|
||||
array(
|
||||
'name' => 'description',
|
||||
'label' => 'LBL_DESCRIPTION',
|
||||
'displayParams' => array(
|
||||
'rows' => 4,
|
||||
'cols' => 50
|
||||
)
|
||||
|
||||
),
|
||||
array(
|
||||
'name' => 'pdf_text',
|
||||
'label' => 'Uwagi na fakturze',
|
||||
'displayParams' => array(
|
||||
'rows' => 4,
|
||||
'cols' => 50
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
),
|
||||
array(
|
||||
'payment_method',
|
||||
array(
|
||||
'name' => 'bankaccount',
|
||||
'label' => 'LBL_INVOICE_BANK_ACCOUNT',
|
||||
'customCode' => '{$BANKACCOUNTS}'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'payment_date_days',
|
||||
'ks_account',
|
||||
),
|
||||
array(
|
||||
'',
|
||||
array(
|
||||
'name' => 'currency_id',
|
||||
'label' => 'LBL_CURRENCY'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'allow_prevent', 'allow_debt_collection'
|
||||
),
|
||||
|
||||
),
|
||||
'LBL_SHOP_PANEL' => array(
|
||||
array(
|
||||
'shop_user',
|
||||
'isAllegroUser'
|
||||
)
|
||||
),
|
||||
'LBL_PANEL_DELIVERY_ADDRESSES' => array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'items_list_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '
|
||||
<input type="hidden" name="position_list" id="position_list" value=\'{$POSITION_LIST}\'>
|
||||
<link rel="stylesheet" type="text/css" href="modules/Accounts/MyTable.css" />
|
||||
<div style="width:1100px;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="itemsTableDIV">
|
||||
<table class="positions" style="width:1100px;" id="itemsTable">
|
||||
<thead id="head">
|
||||
<tr id="tr">
|
||||
<td width="3%">{$MOD.LBL_ADDRESS_POSITION}</td>
|
||||
<td width="12%">{$MOD.LBL_ADDRESS_NAME}</td>
|
||||
<td width="12%">{$MOD.LBL_ADDRESS_STREET}</td>
|
||||
<td width="10%">{$MOD.LBL_ADDRESS_CITY}</td>
|
||||
<td width="10%">{$MOD.LBL_ADDRESS_POSTALCODE}</td>
|
||||
<td width="10%">{$MOD.LBL_ADDRESS_COUNTRY}</td>
|
||||
<td width="10%">{$MOD.LBL_ADDRESS_NIP}</td>
|
||||
<td width="10%">{$MOD.LBL_ADDRESS_ILN}</td>
|
||||
<td width="2%"></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody">
|
||||
</tbody>
|
||||
</table>
|
||||
</div><br>'
|
||||
)
|
||||
)
|
||||
),
|
||||
'LBL_PANEL_BANK_ACCOUNTS' => array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'items_list_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '
|
||||
<input type="hidden" name="position_list4" id="position_list4" value=\'{$POSITION_LIST4}\'>
|
||||
<link rel="stylesheet" type="text/css" href="modules/Accounts/MyTable.css" />
|
||||
<div style="width:1100px;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="itemsTableDIV">
|
||||
<table class="positions" style="width:1100px;" id="itemsTable4">
|
||||
<thead id="head">
|
||||
<tr id="tr">
|
||||
<td width="3%">{$MOD.LBL_BANK_POSITION}</td>
|
||||
<td width="12%">{$MOD.LBL_BANK_NAME}</td>
|
||||
<td width="12%">{$MOD.LBL_BANK_ACCOUNT}</td>
|
||||
<td width="2%"></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody">
|
||||
</tbody>
|
||||
</table>
|
||||
</div><br>'
|
||||
)
|
||||
)
|
||||
),
|
||||
'LBL_PANEL_DISCOUNTS' => array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'items_list_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '
|
||||
<input type="hidden" name="position_list2" id="position_list2" value=\'{$POSITION_LIST2}\'>
|
||||
<link rel="stylesheet" type="text/css" href="modules/Accounts/MyTable.css" />
|
||||
<div style="width:30%;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="itemsTableDIV2">
|
||||
<table class="positions" style="width:100%;" id="itemsTable2">
|
||||
<thead id="head">
|
||||
<tr id="tr">
|
||||
<td width="70%">{$MOD.LBL_PRODUCT_GROUP}</td>
|
||||
<td width="20%">{$MOD.LBL_DISCOUNT}</td>
|
||||
<td width="10%">{$MOD.LBL_EDITTABLE_OPTIONS}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody">
|
||||
</tbody>
|
||||
</table>
|
||||
</div><br>'
|
||||
)
|
||||
)
|
||||
),
|
||||
'LBL_PANEL_CATEGORIES' => array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'items_list_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '
|
||||
<input type="hidden" name="position_list3" id="position_list3" value=\'{$POSITION_LIST3}\'>
|
||||
<link rel="stylesheet" type="text/css" href="modules/Accounts/MyTable.css" />
|
||||
<div style="width:30%;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="itemsTableDIV3">
|
||||
<table class="positions" style="width:100%;" id="itemsTable3">
|
||||
<thead id="head">
|
||||
<tr id="tr">
|
||||
<td width="90%">{$MOD.LBL_CATEGORY_NAME}</td>
|
||||
<td width="10%">{$MOD.LBL_EDITTABLE_OPTIONS}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody">
|
||||
</tbody>
|
||||
</table>
|
||||
</div><br>'
|
||||
)
|
||||
)
|
||||
),
|
||||
'LBL_PANEL_ASSIGNMENT' => array(
|
||||
|
||||
array(
|
||||
array(
|
||||
'name' => 'assigned_user_name',
|
||||
'label' => 'LBL_ASSIGNED_TO'
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
38
modules/Accounts/metadata/fieldGroups.php
Normal file
38
modules/Accounts/metadata/fieldGroups.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
?>
|
||||
217
modules/Accounts/metadata/listviewdefs.php
Normal file
217
modules/Accounts/metadata/listviewdefs.php
Normal file
@@ -0,0 +1,217 @@
|
||||
<?php
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
$listViewDefs['Accounts'] = array(
|
||||
'INDEX_DBF' => array(
|
||||
'width' => '3%',
|
||||
'label' => 'LBL_INDEX',
|
||||
'link' => true,
|
||||
'default' => true
|
||||
),
|
||||
'NAME' => array(
|
||||
'width' => '20%',
|
||||
'label' => 'LBL_LIST_ACCOUNT_NAME',
|
||||
'link' => true,
|
||||
'default' => true
|
||||
),
|
||||
'REGISTER_ADDRESS_CITY' => array(
|
||||
'width' => '5%',
|
||||
'label' => 'LBL_LIST_CITY',
|
||||
'default' => true
|
||||
),
|
||||
'REGISTER_ADDRESS_POSTALCODE' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_REGISTER_ADDRESS_POSTALCODE',
|
||||
'default' => true
|
||||
),
|
||||
'REGISTER_ADDRESS_STREET' => array(
|
||||
'width' => '15%',
|
||||
'label' => 'LBL_REGISTER_ADDRESS_STREET',
|
||||
'default' => true
|
||||
),
|
||||
'TO_VATID' => array(
|
||||
'width' => '5%',
|
||||
'label' => 'LBL_TO_VATID',
|
||||
'default' => true
|
||||
),
|
||||
'INVOICE_TYPE' => array(
|
||||
'width' => '5%',
|
||||
'label' => 'LBL_INVOICE_TYPE',
|
||||
'default' => true
|
||||
),
|
||||
'CURRENCY_ID' => array(
|
||||
'width' => '2%',
|
||||
'label' => 'LBL_CURRENCY',
|
||||
'default' => true
|
||||
),
|
||||
|
||||
'ASSIGNED_USER_NAME' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_LIST_ASSIGNED_USER',
|
||||
'module' => 'Employees',
|
||||
'id' => 'ASSIGNED_USER_ID',
|
||||
'default' => false
|
||||
),
|
||||
'ACCOUNT_TYPE' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_ACCOUNT_TYPE',
|
||||
'default' => true
|
||||
),
|
||||
'INDUSTRY' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_INDUSTRY',
|
||||
'default' => false
|
||||
),
|
||||
'ANNUAL_REVENUE' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_ANNUAL_REVENUE',
|
||||
'default' => false
|
||||
),
|
||||
'PHONE_FAX' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_PHONE_FAX',
|
||||
'default' => false
|
||||
),
|
||||
'BILLING_ADDRESS_STREET' => array(
|
||||
'width' => '15%',
|
||||
'label' => 'LBL_BILLING_ADDRESS_STREET',
|
||||
'default' => false
|
||||
),
|
||||
'BILLING_ADDRESS_STATE' => array(
|
||||
'width' => '7%',
|
||||
'label' => 'LBL_BILLING_ADDRESS_STATE',
|
||||
'default' => false
|
||||
),
|
||||
'BILLING_ADDRESS_POSTALCODE' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_BILLING_ADDRESS_POSTALCODE',
|
||||
'default' => false
|
||||
),
|
||||
'REGISTER_ADDRESS_STATE' => array(
|
||||
'width' => '7%',
|
||||
'label' => 'LBL_REGISTER_ADDRESS_STATE',
|
||||
'default' => false
|
||||
),
|
||||
|
||||
'REGISTER_ADDRESS_COUNTRY' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_REGISTER_ADDRESS_COUNTRY',
|
||||
'default' => false
|
||||
),
|
||||
'RATING' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_RATING',
|
||||
'default' => false
|
||||
),
|
||||
'PHONE_ALTERNATE' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_OTHER_PHONE',
|
||||
'default' => false
|
||||
),
|
||||
'WEBSITE' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_WEBSITE',
|
||||
'default' => false
|
||||
),
|
||||
'OWNERSHIP' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_OWNERSHIP',
|
||||
'default' => false
|
||||
),
|
||||
'EMPLOYEES' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_EMPLOYEES',
|
||||
'default' => false
|
||||
),
|
||||
'SIC_CODE' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_SIC_CODE',
|
||||
'default' => false
|
||||
),
|
||||
'TICKER_SYMBOL' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_TICKER_SYMBOL',
|
||||
'default' => false
|
||||
),
|
||||
'DATE_MODIFIED' => array(
|
||||
'width' => '5%',
|
||||
'label' => 'LBL_DATE_MODIFIED',
|
||||
'default' => false
|
||||
),
|
||||
'CREATED_BY_NAME' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_CREATED',
|
||||
'default' => false
|
||||
),
|
||||
'MODIFIED_BY_NAME' => array(
|
||||
'width' => '10%',
|
||||
'label' => 'LBL_MODIFIED',
|
||||
'default' => false
|
||||
),
|
||||
'DATE_ENTERED' => array(
|
||||
'width' => '5%',
|
||||
'label' => 'LBL_DATE_ENTERED',
|
||||
'default' => false
|
||||
),
|
||||
'REGON' => array(
|
||||
'width' => '5%',
|
||||
'label' => 'LBL_REGON',
|
||||
'default' => false
|
||||
),
|
||||
'KS_ACCOUNT' => array(
|
||||
'width' => '5%',
|
||||
'label' => 'Konto KS',
|
||||
'default' => false
|
||||
),
|
||||
|
||||
'SHOP_NUMBER' => array (
|
||||
'width' => '5%',
|
||||
'label' => 'Numer sklepu',
|
||||
'default' => true
|
||||
),
|
||||
|
||||
'SUPPLIER_CODE' => array (
|
||||
'width' => '5%',
|
||||
'label' => 'Kod dostawcy',
|
||||
'default' => true
|
||||
),
|
||||
);
|
||||
?>
|
||||
52
modules/Accounts/metadata/metafiles.php
Normal file
52
modules/Accounts/metadata/metafiles.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
|
||||
********************************************************************************/
|
||||
|
||||
/*
|
||||
* Created on Jun 1, 2007
|
||||
*
|
||||
* To change the template for this generated file go to
|
||||
* Window - Preferences - PHPeclipse - PHP - Code Templates
|
||||
*/
|
||||
$metafiles['Accounts'] = array(
|
||||
'detailviewdefs' => 'modules/Accounts/metadata/detailviewdefs.php',
|
||||
'editviewdefs' => 'modules/Accounts/metadata/editviewdefs.php',
|
||||
'listviewdefs' => 'modules/Accounts/metadata/listviewdefs.php',
|
||||
'searchdefs' => 'modules/Accounts/metadata/searchdefs.php',
|
||||
'popupdefs' => 'modules/Accounts/metadata/popupdefs.php',
|
||||
'searchfields' => 'modules/Accounts/metadata/SearchFields.php',
|
||||
|
||||
);
|
||||
?>
|
||||
109
modules/Accounts/metadata/popupdefs.php
Normal file
109
modules/Accounts/metadata/popupdefs.php
Normal file
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
global $mod_strings;
|
||||
|
||||
$popupMeta = array(
|
||||
'moduleMain' => 'Account',
|
||||
'varName' => 'ACCOUNT',
|
||||
'orderBy' => 'name',
|
||||
'whereClauses' => array(
|
||||
'name' => 'accounts.name',
|
||||
'register_address_city' => 'accounts.register_address_city',
|
||||
'phone_office' => 'accounts.phone_office'
|
||||
),
|
||||
'searchInputs' => array('name', 'register_address_city', 'phone_office'),
|
||||
|
||||
'listviewdefs' => array(
|
||||
'NAME' => array(
|
||||
'width' => '40',
|
||||
'label' => 'LBL_LIST_ACCOUNT_NAME',
|
||||
'link' => true,
|
||||
'default' => true,
|
||||
),
|
||||
'REGISTER_ADDRESS_CITY' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_LIST_CITY',
|
||||
'default' => true,
|
||||
),
|
||||
'REGISTER_ADDRESS_STATE' => array(
|
||||
'width' => '15',
|
||||
'label' => 'LBL_STATE',
|
||||
'default' => true,
|
||||
),
|
||||
'REGISTER_ADDRESS_COUNTRY' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_COUNTRY',
|
||||
'default' => true,
|
||||
),
|
||||
'REGISTER_ADDRESS_POSTALCODE' => array(
|
||||
'width' => '8',
|
||||
'label' => 'Kod',
|
||||
'default' => true,
|
||||
),
|
||||
'ACCOUNT_TYPE' => array(
|
||||
'width' => '2',
|
||||
'label' => 'LBL_ACCOUNT_TYPE',
|
||||
'default' => true,
|
||||
),
|
||||
|
||||
),
|
||||
'searchdefs' => array(
|
||||
'name'=> array (
|
||||
'name' => 'name',
|
||||
'label' => 'LBL_NAME',
|
||||
'displayParams' =>
|
||||
array (
|
||||
'required' => true,
|
||||
'rows' => 1,
|
||||
'cols' => 50,
|
||||
),
|
||||
),
|
||||
'index_dbf',
|
||||
'to_vatid',
|
||||
'email',
|
||||
/*
|
||||
array(
|
||||
'name' => 'assigned_user_id',
|
||||
'label'=>'LBL_ASSIGNED_TO',
|
||||
'type' => 'enum',
|
||||
'function' => array('name' => 'get_user_array', 'params' => array(false))
|
||||
), */
|
||||
)
|
||||
);
|
||||
?>
|
||||
126
modules/Accounts/metadata/quickcreatedefs.php
Normal file
126
modules/Accounts/metadata/quickcreatedefs.php
Normal file
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
|
||||
********************************************************************************/
|
||||
|
||||
/*********************************************************************************
|
||||
|
||||
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________..
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
$viewdefs ['Accounts'] =
|
||||
array (
|
||||
'QuickCreate' =>
|
||||
array (
|
||||
'templateMeta' =>
|
||||
array (
|
||||
'form' =>
|
||||
array (
|
||||
'buttons' =>
|
||||
array (
|
||||
'SAVE',
|
||||
'CANCEL',
|
||||
),
|
||||
),
|
||||
'maxColumns' => '2',
|
||||
'widths' =>
|
||||
array (
|
||||
array (
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
array (
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
array (
|
||||
'file' => 'modules/Accounts/Account.js',
|
||||
),
|
||||
),
|
||||
),
|
||||
'panels' =>
|
||||
array (
|
||||
'default' =>
|
||||
array (
|
||||
array (
|
||||
array (
|
||||
'name' => 'name',
|
||||
'displayParams' =>
|
||||
array (
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
array (
|
||||
array (
|
||||
'name' => 'website',
|
||||
),
|
||||
array (
|
||||
'name' => 'phone_office',
|
||||
),
|
||||
),
|
||||
array (
|
||||
array (
|
||||
'name' => 'email1',
|
||||
),
|
||||
array (
|
||||
'name' => 'phone_fax',
|
||||
),
|
||||
),
|
||||
array (
|
||||
array (
|
||||
'name' => 'industry',
|
||||
),
|
||||
array (
|
||||
'name' => 'account_type',
|
||||
),
|
||||
),
|
||||
array (
|
||||
array (
|
||||
'name' => 'assigned_user_name',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
146
modules/Accounts/metadata/searchdefs.php
Normal file
146
modules/Accounts/metadata/searchdefs.php
Normal file
@@ -0,0 +1,146 @@
|
||||
<?php
|
||||
|
||||
/* * *******************************************************************************
|
||||
|
||||
* 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 under
|
||||
|
||||
* 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".
|
||||
|
||||
* ****************************************************************************** */
|
||||
|
||||
$searchdefs['Accounts'] = array(
|
||||
'templateMeta' => array(
|
||||
'maxColumns' => '3',
|
||||
'widths' => array(
|
||||
'label' => '5',
|
||||
'field' => '25'
|
||||
),
|
||||
),
|
||||
'layout' => array(
|
||||
'basic_search' => array(
|
||||
'name' =>
|
||||
array(
|
||||
'name' => 'name',
|
||||
'type' => 'name',
|
||||
),
|
||||
'account_type',
|
||||
'index_dbf',
|
||||
'to_vatid',
|
||||
'current_user_only' =>
|
||||
array(
|
||||
'name' => 'current_user_only',
|
||||
'label' => 'LBL_CURRENT_USER_FILTER',
|
||||
'type' => 'bool',
|
||||
),
|
||||
'isHidden' =>
|
||||
array(
|
||||
'name' => 'isHidden',
|
||||
'label' => 'Pokaż ukryte',
|
||||
'type' => 'bool',
|
||||
|
||||
),
|
||||
|
||||
),
|
||||
'advanced_search' => array(
|
||||
'name' =>
|
||||
array(
|
||||
'name' => 'name',
|
||||
'type' => 'name',
|
||||
),
|
||||
'index_dbf',
|
||||
'to_vatid',
|
||||
'account_type',
|
||||
'register_address_city' =>
|
||||
array(
|
||||
'name' => 'register_address_city',
|
||||
'label' => 'LBL_LIST_CITY',
|
||||
),
|
||||
'register_address_postalcode' =>
|
||||
array(
|
||||
'name' => 'register_address_postalcode',
|
||||
'label' => 'LBL_LIST_POSTALCODE',
|
||||
),
|
||||
'register_address_ecmcommune_name' =>
|
||||
array(
|
||||
'name' => 'register_address_ecmcommune_name',
|
||||
'label' => 'LBL_ECMCOMMUNE',
|
||||
),
|
||||
|
||||
'isHidden' =>
|
||||
array(
|
||||
'name' => 'isHidden',
|
||||
'label' => 'Pokaż ukryte',
|
||||
'type' => 'bool',
|
||||
),
|
||||
'assigned_user_name',
|
||||
'without_history' => array(
|
||||
'name' => 'without_history',
|
||||
'label' => 'LBL_WITHOUT_HISTORY',
|
||||
'type' => 'bool',
|
||||
),
|
||||
'iln'
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
|
||||
66
modules/Accounts/metadata/studio.php
Normal file
66
modules/Accounts/metadata/studio.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
$GLOBALS['studioDefs']['Accounts'] = array(
|
||||
'LBL_DETAILVIEW'=>array(
|
||||
'template'=>'xtpl',
|
||||
'template_file'=>'modules/Accounts/DetailView.html',
|
||||
'php_file'=>'modules/Accounts/DetailView.php',
|
||||
'type'=>'DetailView',
|
||||
),
|
||||
'LBL_EDITVIEW'=>array(
|
||||
'template'=>'xtpl',
|
||||
'template_file'=>'modules/Accounts/EditView.html',
|
||||
'php_file'=>'modules/Accounts/EditView.php',
|
||||
'type'=>'EditView',
|
||||
),
|
||||
'LBL_LISTVIEW'=>array(
|
||||
'template'=>'listview',
|
||||
'meta_file'=>'modules/Accounts/listviewdefs.php',
|
||||
'type'=>'ListView',
|
||||
),
|
||||
'LBL_SEARCHFORM'=>array(
|
||||
'template'=>'xtpl',
|
||||
'template_file'=>'modules/Accounts/SearchForm.html',
|
||||
'php_file'=>'modules/Accounts/ListView.php',
|
||||
'type'=>'SearchForm',
|
||||
),
|
||||
|
||||
);
|
||||
267
modules/Accounts/metadata/subpaneldefs.php
Normal file
267
modules/Accounts/metadata/subpaneldefs.php
Normal file
@@ -0,0 +1,267 @@
|
||||
<?php
|
||||
if (! defined ( 'sugarEntry' ) || ! sugarEntry)
|
||||
die ( 'Not A Valid Entry Point' );
|
||||
/**
|
||||
* *******************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc.
|
||||
* Copyright (C) 2004-2013 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".
|
||||
* ******************************************************************************
|
||||
*/
|
||||
|
||||
$layout_defs ['Accounts'] = array (
|
||||
// list of what Subpanels to show in the DetailView
|
||||
'subpanel_setup' => array (
|
||||
|
||||
'contacts' => array (
|
||||
'order' => 10,
|
||||
'module' => 'Contacts',
|
||||
'sort_order' => 'asc',
|
||||
'sort_by' => 'last_name, first_name',
|
||||
'subpanel_name' => 'ForAccounts',
|
||||
'get_subpanel_data' => 'contacts',
|
||||
'add_subpanel_data' => 'contact_id',
|
||||
'title_key' => 'Kontakty',
|
||||
'top_buttons' => array (
|
||||
// array('widget_class' => 'SubPanelTopCreateAccountNameButton'),
|
||||
array (
|
||||
'widget_class' => 'SubPanelTopSelectButton',
|
||||
'mode' => 'MultiSelect'
|
||||
),
|
||||
array (
|
||||
'widget_class' => 'SubPanelTopCreateButton'
|
||||
)
|
||||
)
|
||||
|
||||
),
|
||||
'activities' => array (
|
||||
'order' => 40,
|
||||
'sort_order' => 'desc',
|
||||
'sort_by' => 'date_start',
|
||||
'title_key' => 'LBL_ACTIVITIES_SUBPANEL_TITLE',
|
||||
'type' => 'collection',
|
||||
'subpanel_name' => 'activities', // this values is not associated with a physical file.
|
||||
'header_definition_from_subpanel' => 'meetings',
|
||||
'module' => 'Activities',
|
||||
|
||||
'top_buttons' => array (
|
||||
array (
|
||||
'widget_class' => 'SubPanelTopCreateTaskButton'
|
||||
),
|
||||
array (
|
||||
'widget_class' => 'SubPanelTopScheduleMeetingButton'
|
||||
),
|
||||
array (
|
||||
'widget_class' => 'SubPanelTopScheduleCallButton'
|
||||
)
|
||||
),
|
||||
|
||||
'collection_list' => array (
|
||||
'tasks' => array (
|
||||
'module' => 'Tasks',
|
||||
'subpanel_name' => 'ForActivities',
|
||||
'get_subpanel_data' => 'tasks'
|
||||
),
|
||||
'meetings' => array (
|
||||
'module' => 'Meetings',
|
||||
'subpanel_name' => 'ForActivities',
|
||||
'get_subpanel_data' => 'meetings'
|
||||
),
|
||||
'calls' => array (
|
||||
'module' => 'Calls',
|
||||
'subpanel_name' => 'ForActivities',
|
||||
'get_subpanel_data' => 'calls'
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
'history' => array (
|
||||
'order' => 20,
|
||||
'sort_order' => 'desc',
|
||||
'sort_by' => 'date_modified',
|
||||
'title_key' => 'LBL_HISTORY_SUBPANEL_TITLE',
|
||||
'type' => 'collection',
|
||||
'subpanel_name' => 'history', // this values is not associated with a physical file.
|
||||
|
||||
'header_definition_from_subpanel' => 'meetings',
|
||||
|
||||
'module' => 'History',
|
||||
|
||||
'top_buttons' => array (
|
||||
array (
|
||||
'widget_class' => 'SubPanelTopCreateNoteButton'
|
||||
)
|
||||
|
||||
),
|
||||
|
||||
'collection_list' => array (
|
||||
'tasks' => array (
|
||||
'module' => 'Tasks',
|
||||
'subpanel_name' => 'ForHistory',
|
||||
'get_subpanel_data' => 'tasks'
|
||||
),
|
||||
|
||||
'meetings' => array (
|
||||
'module' => 'Meetings',
|
||||
'subpanel_name' => 'ForHistory',
|
||||
'get_subpanel_data' => 'meetings'
|
||||
),
|
||||
'calls' => array (
|
||||
'module' => 'Calls',
|
||||
'subpanel_name' => 'ForHistory',
|
||||
'get_subpanel_data' => 'calls'
|
||||
),
|
||||
|
||||
'notes' => array (
|
||||
'module' => 'Notes',
|
||||
'subpanel_name' => 'ForHistory',
|
||||
'get_subpanel_data' => 'notes'
|
||||
),
|
||||
|
||||
'linkedemails' => array (
|
||||
'module' => 'Emails',
|
||||
'subpanel_name' => 'ForHistory',
|
||||
'get_subpanel_data' => 'function:get_unlinked_email_query',
|
||||
'generate_select' => true,
|
||||
'function_parameters' => array (
|
||||
'return_as_array' => 'true'
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
/*
|
||||
'documents' => array(
|
||||
'order' => 30,
|
||||
'module' => 'Documents',
|
||||
'subpanel_name' => 'default',
|
||||
'get_subpanel_data' => 'documents',
|
||||
'title_key' => 'Dokumenty',
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
),
|
||||
),
|
||||
*/
|
||||
'documents' => array (
|
||||
'order' => 130,
|
||||
'module' => 'Documents',
|
||||
'subpanel_name' => 'default',
|
||||
'get_subpanel_data' => 'documents',
|
||||
'title_key' => 'Dokumenty'
|
||||
),
|
||||
'ecmproducts' => array (
|
||||
'order' => 120,
|
||||
'module' => 'EcmProducts',
|
||||
'subpanel_name' => 'ForAccountsSale',
|
||||
'get_subpanel_data' => 'function:get_unlinked_product_query',
|
||||
'title_key' => 'Zakupione produkty',
|
||||
'generate_select' => true,
|
||||
'function_parameters' => array (
|
||||
'return_as_array' => 'true'
|
||||
)
|
||||
),
|
||||
|
||||
'ecminvoiceouts' => array (
|
||||
'order' => 60,
|
||||
'module' => 'EcmInvoiceOuts',
|
||||
'subpanel_name' => 'default',
|
||||
'get_subpanel_data' => 'ecminvoiceouts',
|
||||
'add_subpanel_data' => 'ecminvoiceout_id',
|
||||
'sort_order' => 'desc',
|
||||
'sort_by' => 'register_date',
|
||||
'title_key' => 'Faktury',
|
||||
'top_buttons' => array (
|
||||
array (
|
||||
'widget_class' => 'SubPanelTopCreateButton'
|
||||
)
|
||||
)
|
||||
),
|
||||
'ecmprepaymentinvoices' => array (
|
||||
'order' => 70,
|
||||
'module' => 'EcmPrepaymentInvoices',
|
||||
'subpanel_name' => 'default',
|
||||
'get_subpanel_data' => 'ecmprepaymentinvoices',
|
||||
|
||||
'title_key' => 'Faktury zaliczkowe',
|
||||
'top_buttons' => array (
|
||||
array (
|
||||
'widget_class' => 'SubPanelTopCreateButton'
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
'ecmquotes' => array (
|
||||
'order' => 80,
|
||||
'module' => 'EcmQuotes',
|
||||
'subpanel_name' => 'default',
|
||||
'get_subpanel_data' => 'ecmquotes',
|
||||
'add_subpanel_data' => 'ecmquote_id',
|
||||
'title_key' => 'LBL_ECMQUOTES_SUBPANEL_TITLE',
|
||||
'top_buttons' => array (
|
||||
array (
|
||||
'widget_class' => 'SubPanelTopCreateButton'
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
'ecmstockdocins' => array (
|
||||
'order' => 100,
|
||||
'module' => 'EcmStockDocIns',
|
||||
'subpanel_name' => 'default',
|
||||
'get_subpanel_data' => 'ecmstockdocins',
|
||||
'add_subpanel_data' => 'ecmstockdocin_id',
|
||||
'title_key' => 'Dokument PZ',
|
||||
'top_buttons' => array (
|
||||
array (
|
||||
'widget_class' => 'SubPanelTopCreateButton'
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
'ecmsales' => array (
|
||||
'order' => 90,
|
||||
'module' => 'EcmSales',
|
||||
'subpanel_name' => 'default',
|
||||
'get_subpanel_data' => 'ecmsales',
|
||||
'add_subpanel_data' => 'ecmsale_id',
|
||||
'title_key' => 'LBL_ECMSALES_SUBPANEL_TITLE',
|
||||
'top_buttons' => array (
|
||||
array (
|
||||
'widget_class' => 'SubPanelTopCreateButton'
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
)
|
||||
|
||||
);
|
||||
?>
|
||||
76
modules/Accounts/metadata/subpanels/ForEmails.php
Normal file
76
modules/Accounts/metadata/subpanels/ForEmails.php
Normal file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
$subpanel_layout = array(
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'Accounts'),
|
||||
),
|
||||
|
||||
'where' => '',
|
||||
|
||||
'list_fields' => array(
|
||||
'name' => array(
|
||||
'vname' => 'LBL_LIST_ACCOUNT_NAME',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
'width' => '45%',
|
||||
),
|
||||
'billing_address_city' => array(
|
||||
'vname' => 'LBL_LIST_CITY',
|
||||
'width' => '27%',
|
||||
),
|
||||
'phone_office' => array(
|
||||
'vname' => 'LBL_LIST_PHONE',
|
||||
'width' => '20%',
|
||||
),
|
||||
'edit_button' => array(
|
||||
'vname' => 'LBL_EDIT_BUTTON',
|
||||
'widget_class' => 'SubPanelEditButton',
|
||||
'width' => '4%',
|
||||
),
|
||||
'remove_button' => array(
|
||||
'vname' => 'LBL_REMOVE',
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'width' => '4%',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
81
modules/Accounts/metadata/subpanels/ForProspectLists.php
Normal file
81
modules/Accounts/metadata/subpanels/ForProspectLists.php
Normal file
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
|
||||
$subpanel_layout = array(
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'Accounts'),
|
||||
),
|
||||
|
||||
'where' => '',
|
||||
|
||||
|
||||
'list_fields' => array(
|
||||
'name' => array(
|
||||
'vname' => 'LBL_LIST_NAME',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
'width' => '25%',
|
||||
),
|
||||
'phone_office' => array(
|
||||
'vname' => 'LBL_LIST_PHONE',
|
||||
'width' => '20%',
|
||||
),
|
||||
'email1' => array(
|
||||
'vname' => 'LBL_LIST_EMAIL',
|
||||
'widget_class' => 'SubPanelEmailLink',
|
||||
'width' => '20%',
|
||||
),
|
||||
'assigned_user_name' => array(
|
||||
'vname' => 'LBL_ASSIGNED_TO',
|
||||
'width' => '20%',
|
||||
),
|
||||
'edit_button' => array(
|
||||
'vname' => 'LBL_EDIT_BUTTON',
|
||||
'widget_class' => 'SubPanelEditButton',
|
||||
'width' => '4%',
|
||||
),
|
||||
'remove_button' => array(
|
||||
'vname' => 'LBL_REMOVE',
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'width' => '4%',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
93
modules/Accounts/metadata/subpanels/default.php
Normal file
93
modules/Accounts/metadata/subpanels/default.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
|
||||
$subpanel_layout = array(
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'Accounts'),
|
||||
),
|
||||
|
||||
'where' => '',
|
||||
|
||||
'list_fields' => array (
|
||||
'name' =>
|
||||
array (
|
||||
'vname' => 'LBL_LIST_ACCOUNT_NAME',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
'width' => '45%',
|
||||
'default' => true,
|
||||
),
|
||||
'billing_address_city' =>
|
||||
array (
|
||||
'vname' => 'LBL_LIST_CITY',
|
||||
'width' => '20%',
|
||||
'default' => true,
|
||||
),
|
||||
'billing_address_country' =>
|
||||
array (
|
||||
'type' => 'varchar',
|
||||
'vname' => 'LBL_BILLING_ADDRESS_COUNTRY',
|
||||
'width' => '7%',
|
||||
'default' => true,
|
||||
),
|
||||
'phone_office' =>
|
||||
array (
|
||||
'vname' => 'LBL_LIST_PHONE',
|
||||
'width' => '20%',
|
||||
'default' => true,
|
||||
),
|
||||
'edit_button' =>
|
||||
array (
|
||||
'vname' => 'LBL_EDIT_BUTTON',
|
||||
'widget_class' => 'SubPanelEditButton',
|
||||
'width' => '4%',
|
||||
'default' => true,
|
||||
),
|
||||
|
||||
'remove_button' =>
|
||||
array (
|
||||
'vname' => 'LBL_REMOVE',
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'width' => '4%',
|
||||
'default' => true,
|
||||
),
|
||||
|
||||
)
|
||||
);
|
||||
?>
|
||||
Reference in New Issue
Block a user