This commit is contained in:
2024-04-27 09:23:34 +02:00
commit 11e713ca6f
11884 changed files with 3263371 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<?php
//WARNING: The contents of this file are auto-generated
//THIS FILE IS AUTO GENERATED, DO NOT MODIFY
$mod_strings['LBL_ACCOUNTS_ECMQUOTES_FROM_ECMQUOTES_TITLE'] = 'Oferty';
//THIS FILE IS AUTO GENERATED, DO NOT MODIFY
$mod_strings['LBL_ACCOUNTS_ECMQUOTES_FROM_ECMQUOTES_TITLE'] = 'Oferty';
$mod_strings['LBL_ACCOUNTS_ECMQUOTES_1_FROM_ECMQUOTES_TITLE'] = 'Oferty';
?>

View File

@@ -0,0 +1,13 @@
<?php
//WARNING: The contents of this file are auto-generated
//THIS FILE IS AUTO GENERATED, DO NOT MODIFY
$mod_strings['LBL_ACCOUNTS_ECMQUOTES_FROM_ECMQUOTES_TITLE'] = 'Oferty';
//THIS FILE IS AUTO GENERATED, DO NOT MODIFY
$mod_strings['LBL_ACCOUNTS_ECMQUOTES_FROM_ECMQUOTES_TITLE'] = 'Oferty';
$mod_strings['LBL_ACCOUNTS_ECMQUOTES_1_FROM_ECMQUOTES_TITLE'] = 'Oferty';
?>

View File

@@ -0,0 +1,20 @@
<?php
//WARNING: The contents of this file are auto-generated
//auto-generated file DO NOT EDIT
$layout_defs['Accounts']['subpanel_setup']['ecmquotes']['override_subpanel_name'] = 'Accountdefault';
//auto-generated file DO NOT EDIT
$layout_defs['Accounts']['subpanel_setup']['documents']['override_subpanel_name'] = 'Accountdefault';
//auto-generated file DO NOT EDIT
$layout_defs['Accounts']['subpanel_setup']['tasks']['override_subpanel_name'] = 'Accountdefault';
//auto-generated file DO NOT EDIT
$layout_defs['Accounts']['subpanel_setup']['contacts']['override_subpanel_name'] = 'AccountForAccounts';
?>

View File

@@ -0,0 +1,46 @@
<?php
//WARNING: The contents of this file are auto-generated
// created: 2012-06-21 09:47:24
$dictionary['Account']['fields']['phone_office']['len']='25';
// created: 2011-09-30 13:53:33
$dictionary['Account']['fields']['classification']['default']='11';
$dictionary['Account']['fields']['classification']['len']=100;
// created: 2012-02-01 15:01:07
$dictionary['Account']['fields']['payment_method']['len']=100;
$dictionary['Account']['fields']['payment_method']['required']=false;
// created: 2011-10-03 15:25:19
// created: 2011-10-03 15:22:03
// created: 2011-10-04 10:57:23
// created: 2011-10-10 14:34:55
// created: 2011-10-04 10:58:16
// created: 2011-10-12 12:09:52
$dictionary['Account']['fields']['alert']['len']='200';
?>

View File

@@ -0,0 +1,6 @@
<?php
// created: 2014-01-15 13:04:11
$mod_strings = array (
'LBL_DOCUMENTS_SUBPANEL_TITLE' => 'Dokumenty',
);
?>

View File

@@ -0,0 +1,9 @@
<?php
//WARNING: The contents of this file are auto-generated
// created: 2011-10-04 13:52:48
$dictionary['Call']['fields']['name']['required']=false;
?>

View File

@@ -0,0 +1,12 @@
<?php
// Do not store anything in this file that is not part of the array or the hook version. This file will
// be automatically rebuilt in the future.
$hook_version = 1;
$hook_array = Array();
// position, file, function
$hook_array['before_save'] = Array();
$hook_array['before_save'][] = Array(1, 'Cases push feed', 'modules/Cases/SugarFeeds/CaseFeed.php','CaseFeed', 'pushFeed');
?>

View File

@@ -0,0 +1,59 @@
<?php
// created: 2011-10-04 15:17:16
$subpanel_layout['list_fields'] = array (
'case_number' =>
array (
'vname' => 'LBL_LIST_NUMBER',
'width' => '6%',
'default' => true,
),
'name' =>
array (
'vname' => 'LBL_LIST_SUBJECT',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '50%',
'default' => true,
),
'status' =>
array (
'vname' => 'LBL_LIST_STATUS',
'width' => '10%',
'default' => true,
),
'priority' =>
array (
'vname' => 'LBL_LIST_PRIORITY',
'width' => '10%',
'default' => true,
),
'date_entered' =>
array (
'vname' => 'LBL_LIST_DATE_CREATED',
'width' => '15%',
'default' => true,
),
'assigned_user_name' =>
array (
'name' => 'assigned_user_name',
'vname' => 'LBL_LIST_ASSIGNED_TO_NAME',
'width' => '10%',
'default' => true,
),
'edit_button' =>
array (
'vname' => 'LBL_EDIT_BUTTON',
'widget_class' => 'SubPanelEditButton',
'module' => 'Cases',
'width' => '4%',
'default' => true,
),
'remove_button' =>
array (
'vname' => 'LBL_REMOVE',
'widget_class' => 'SubPanelRemoveButton',
'module' => 'Cases',
'width' => '5%',
'default' => true,
),
);
?>

View File

@@ -0,0 +1,8 @@
<?php
// created: 2013-03-19 13:56:50
$mapping = array (
'beans' =>
array (
),
);
?>

View File

@@ -0,0 +1,15 @@
<?php
// created: 2013-12-20 16:10:37
$connectors = array (
'ext_rest_linkedin' =>
array (
'id' => 'ext_rest_linkedin',
'name' => 'LinkedIn&#169;',
'enabled' => true,
'directory' => 'modules/Connectors/connectors/sources/ext/rest/linkedin',
'modules' =>
array (
),
),
);
?>

View File

@@ -0,0 +1,5 @@
<?php
// created: 2013-03-19 13:56:50
$modules_sources = array (
);
?>

View File

@@ -0,0 +1,5 @@
<?php
// created: 2013-03-19 13:56:50
$searchdefs = array (
);
?>

View File

@@ -0,0 +1,72 @@
<?php
$subpanel_layout = array(
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'ContactLeads'),
),
'where' => '',
'list_fields' => array(
'first_name'=>array(
'name'=>'first_name',
'usage' => 'query_only',
),
'last_name'=>array(
'name'=>'last_name',
'usage' => 'query_only',
),
'name'=>array(
'name'=>'name',
'vname' => 'LBL_LIST_NAME',
'widget_class' => 'SubPanelDetailViewLink',
'module' => 'ContactLeads',
'width' => '43%',
),
'title'=>array(
'name'=>'title',
'vname' => 'LBL_LIST_TITLE',
//'widget_class' => 'SubPanelDetailViewLink',
//'module' => 'ContactLeads',
'width' => '10%',
),
'primary_address_city'=>array(
'name'=>'primary_address_city',
'vname' => 'LBL_LIST_CITY',
'width' => '20%',
),
'primary_address_state'=>array(
'name'=>'primary_address_state',
'vname' => 'LBL_LIST_STATE',
'width' => '10%',
),
'email1'=>array(
'name'=>'email1',
'vname' => 'LBL_LIST_EMAIL',
'widget_class' => 'SubPanelEmailLink',
'width' => '30%',
'sortable' => false,
),
'phone_work'=>array (
'name'=>'phone_work',
'vname' => 'LBL_LIST_PHONE',
'width' => '15%',
),
'edit_button'=>array(
'vname' => 'LBL_EDIT_BUTTON',
'widget_class' => 'SubPanelEditButton',
'module' => 'ContactLeads',
'width' => '5%',
),
'remove_button'=>array(
'vname' => 'LBL_REMOVE',
'widget_class' => 'SubPanelRemoveButton',
'module' => 'ContactLeads',
'width' => '5%',
),
),
);
?>

View File

@@ -0,0 +1,17 @@
<?php
//WARNING: The contents of this file are auto-generated
$layout_defs['Contacts']['subpanel_setup']['ecmquotes'] = array(
'order' => 29,
'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'),
),
);
?>

View File

@@ -0,0 +1,17 @@
<?php
//WARNING: The contents of this file are auto-generated
$dictionary['Contact']['fields']['ecmquotes'] = array (
'name' => 'ecmquotes',
'type' => 'link',
'relationship' => 'ecmquotes_contact',
'source' =>'non-db',
);
$dictionary['Contact']['relationships']['ecmquotes_contact'] = array (
'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id',
'rhs_module' => 'EcmQuotes', 'rhs_table' => 'ecmquotes', 'rhs_key' => 'contact_id',
'relationship_type' => 'one-to-many'
);
?>

View File

@@ -0,0 +1,72 @@
<?php
$subpanel_layout = array(
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'Contacts'),
),
'where' => '',
'list_fields' => array(
'first_name'=>array(
'name'=>'first_name',
'usage' => 'query_only',
),
'last_name'=>array(
'name'=>'last_name',
'usage' => 'query_only',
),
'name'=>array(
'name'=>'name',
'vname' => 'LBL_LIST_NAME',
'widget_class' => 'SubPanelDetailViewLink',
'module' => 'Contacts',
'width' => '43%',
),
'title'=>array(
'name'=>'title',
'vname' => 'LBL_LIST_TITLE',
//'widget_class' => 'SubPanelDetailViewLink',
//'module' => 'Contacts',
'width' => '10%',
),
'primary_address_city'=>array(
'name'=>'primary_address_city',
'vname' => 'LBL_LIST_CITY',
'width' => '20%',
),
'primary_address_state'=>array(
'name'=>'primary_address_state',
'vname' => 'LBL_LIST_STATE',
'width' => '10%',
),
'email1'=>array(
'name'=>'email1',
'vname' => 'LBL_LIST_EMAIL',
'widget_class' => 'SubPanelEmailLink',
'width' => '30%',
'sortable' => false,
),
'phone_work'=>array (
'name'=>'phone_work',
'vname' => 'LBL_LIST_PHONE',
'width' => '15%',
),
'edit_button'=>array(
'vname' => 'LBL_EDIT_BUTTON',
'widget_class' => 'SubPanelEditButton',
'module' => 'Contacts',
'width' => '5%',
),
'remove_button'=>array(
'vname' => 'LBL_REMOVE',
'widget_class' => 'SubPanelRemoveButton',
'module' => 'Contacts',
'width' => '5%',
),
),
);
?>

View File

@@ -0,0 +1,12 @@
<?php
//WARNING: The contents of this file are auto-generated
$dictionary['Document']['fields']['ecmproducts'] = array (
'name' => 'ecmproducts',
'type' => 'link',
'relationship' => 'ecmproducts_documents',
'source' =>'non-db',
);
?>

View File

@@ -0,0 +1,28 @@
<?php
// created: 2014-01-29 14:16:17
$subpanel_layout['list_fields'] = array (
'document_name' =>
array (
'type' => 'varchar',
'vname' => 'LBL_NAME',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '10%',
'default' => true,
),
'description' =>
array (
'type' => 'text',
'vname' => 'LBL_DESCRIPTION',
'sortable' => false,
'width' => '10%',
'default' => true,
),
'date_entered' =>
array (
'type' => 'datetime',
'vname' => 'LBL_DATE_ENTERED',
'width' => '10%',
'default' => true,
),
);
?>

View File

@@ -0,0 +1,29 @@
<?php
// created: 2014-01-22 11:24:31
$subpanel_layout['list_fields'] = array (
'document_name' =>
array (
'name' => 'document_name',
'vname' => 'LBL_LIST_DOCUMENT_NAME',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '30%',
'default' => true,
),
'edit_button' =>
array (
'vname' => 'LBL_EDIT_BUTTON',
'widget_class' => 'SubPanelEditButton',
'module' => 'Documents',
'width' => '5%',
'default' => true,
),
'remove_button' =>
array (
'vname' => 'LBL_REMOVE',
'widget_class' => 'SubPanelRemoveButton',
'module' => 'Documents',
'width' => '5%',
'default' => true,
),
);
?>

View File

@@ -0,0 +1,48 @@
<?php
$viewdefs ['EcmCharts'] =
array (
'QuickCreate' =>
array (
'templateMeta' =>
array (
'form' =>
array (
'buttons' =>
array (
0 => 'SAVE',
1 => 'CANCEL',
),
),
'maxColumns' => '2',
'widths' =>
array (
0 =>
array (
'label' => '10',
'field' => '30',
),
1 =>
array (
'label' => '10',
'field' => '30',
),
),
),
'panels' =>
array (
'default' =>
array (
0 =>
array (
0 => 'name',
1 => 'assigned_user_name',
),
1 =>
array (
0 => 'value',
),
),
),
),
);
?>

View File

@@ -0,0 +1,75 @@
<?php
//WARNING: The contents of this file are auto-generated
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without delivery or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
//require_once('modules/EcmGroupSales/Menu.php');
/*
global $mod_strings;
if(ACLController::checkAccess('EcmDeliveryConditions', 'edit', true))
$module_menu [] = Array("index.php?module=EcmDeliveryConditions&action=EditView&return_module=EcmDeliveryConditions&return_action=DetailView", $mod_strings['LNK_NEW_ECMDELIVERYCONDITIONS'],"CreateEcmDeliveryConditions", 'EcmDeliveryConditions');
if(ACLController::checkAccess('EcmDeliveryConditions', 'list', true))
$module_menu [] = Array("index.php?module=EcmDeliveryConditions&action=index&return_module=EcmDeliveryConditions&return_action=DetailView", $mod_strings['LNK_ECMDELIVERYCONDITIONS_LIST'],"EcmDeliveryConditions", 'EcmDeliveryConditions');
*/
global $mod_strings, $current_user;
if(ACLController::checkAccess('EcmDeliveryConditions', "edit", true))
$module_menu [] = Array("index.php?module=EcmDeliveryConditions&action=EditView&return_module=EcmDeliveryConditions&return_action=DetailView", translate('LNK_NEW_ECMDELIVERYCONDITIONS', 'EcmDeliveryConditions'),"CreateEcmDeliveryConditions", 'EcmDeliveryConditions');
if(ACLController::checkAccess('EcmDeliveryConditions', "list", true)) $module_menu [] = Array("index.php?module=EcmDeliveryConditions&action=index&return_module=EcmDeliveryConditions&return_action=DetailView", translate('LNK_ECMDELIVERYCONDITIONS_LIST','EcmDeliveryConditions'),"EcmDeliveryConditions", 'EcmDeliveryConditions');
?>

View File

@@ -0,0 +1,239 @@
<?php
//WARNING: The contents of this file are auto-generated
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without delivery or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
$dictionary['EcmDeliveryCondition'] = array(
'table' => 'ecmdeliveryconditions',
'comment' => 'EcmDeliveryConditions',
'duplicate_merge' => true,
'unified_search' => true,
'fields' => array (
//STANDARD FIELDS SECTION
'id' => array (
'name' => 'id',
'vname' => 'LBL_ID',
'type' => 'id',
'required' => true,
'reportable' => false,
'comment' => 'Unique identifier'
),
'name' => array (
'name' => 'name',
'vname' => 'LBL_NAME',
'type' => 'name',
'required' => true,
'dbType' => 'varchar',
'len' => 255,
'unified_search' => true,
'comment' => 'The short description of the record contents',
'massupdate' => true,
'merge_filter' => 'selected',
),
'description' => array (
'type' => 'text',
'name' => 'description',
'vname' => 'LBL_DESCRIPTION',
'comment' => 'Description',
),
'date_entered' => array (
'name' => 'date_entered',
'vname' => 'LBL_DATE_ENTERED',
'type' => 'datetime',
'required' => true,
'comment' => 'Date record created'
),
'date_modified' => array (
'name' => 'date_modified',
'vname' => 'LBL_DATE_MODIFIED',
'type' => 'datetime',
'required' => true,
'comment' => 'Date record last modified'
),
'modified_user_id' => array (
'name' => 'modified_user_id',
'rname' => 'user_name',
'id_name' => 'modified_user_id',
'vname' => 'LBL_MODIFIED',
'type' => 'assigned_user_name',
'table' => 'modified_user_id_users',
'isnull' => 'false',
'dbType' => 'varchar',
'len' => 36,
'required' => true,
'reportable' => true,
'comment' => 'User who last modified record'
),
'assigned_user_id' => array (
'name' => 'assigned_user_id',
'rname' => 'user_name',
'id_name' => 'assigned_user_id',
'vname' => 'LBL_ASSIGNED_TO_ID',
'group' => 'assigned_user_name',
'type' => 'relate',
'table' => 'users',
'reportable' => true,
'Importable' => false,
'isnull' => 'false',
'dbType' => 'id',
'audited' => true,
'comment' => 'User ID assigned to record',
'duplicate_merge' => 'disabled',
),
'assigned_user_name' => array (
'name' => 'assigned_user_name',
'vname' => 'LBL_ASSIGNED_TO',
'type' => 'relate',
'reportable' => false,
'source' => 'non-db',
'table' => 'users',
'id_name' => 'assigned_user_id',
'module' => 'Users',
'duplicate_merge' => 'disabled',
),
'created_by' => array (
'name' => 'created_by',
'rname' => 'user_name',
'id_name' => 'created_by',
'vname' => 'LBL_CREATED',
'type' => 'assigned_user_name',
'table' => 'created_by_users',
'isnull' => 'false',
'dbType' => 'varchar',
'len' => 36,
'comment' => 'User that created the record'
),
'created_by_link' => array (
'name' => 'created_by_link',
'type' => 'link',
'relationship' => 'ecmquestions'.'_created_by',
'vname' => 'LBL_CREATED_BY_USER',
'link_type' => 'one',
'module' => 'Users',
'bean_name' => 'User',
'source' => 'non-db',
),
'modified_user_link' => array (
'name' => 'modified_user_link',
'type' => 'link',
'relationship' => 'ecmquestions'.'_modified_user',
'vname' => 'LBL_MODIFIED_BY_USER',
'link_type' => 'one',
'module' => 'Users',
'bean_name' => 'User',
'source' => 'non-db',
),
'assigned_user_link' => array (
'name' => 'assigned_user_link',
'type' => 'link',
'relationship' => 'ecmquestions'.'_assigned_user',
'vname' => 'LBL_ASSIGNED_TO_USER',
'link_type' => 'one',
'module' => 'Users',
'bean_name' => 'User',
'source' => 'non-db',
'duplicate_merge' => 'enabled',
'rname' => 'user_name',
'id_name' => 'assigned_user_id',
'table' => 'users',
),
'deleted' => array (
'name' => 'deleted',
'vname' => 'LBL_DELETED_BY',
'type' => 'bool',
'required' => true,
'reportable' => false,
'comment' => 'Record deletion indicator'
),
'translations' => array (
'name' => 'translations',
'vname' => 'LBL_TRANSLATIONS',
'type' => 'text',
),
//NEW FIELDS SECTION
//FOR SUBPANELS
),
//INDICES SECTION
'indices' => array (
array('name' =>'ecmdeliveryconditionsspk', 'type' =>'primary', 'fields'=>array('id')),
array('name' =>'idx_ecmdeliveryconditions_name', 'type' =>'index', 'fields'=>array('name'))
)
//RELATIONSHIPS SECTION
, 'relationships' => array (
'ecmdeliveryconditions_assigned_user' => array(
'lhs_module'=> 'Users', 'lhs_table'=> 'users', 'lhs_key' => 'id',
'rhs_module'=> 'EcmDeliveryConditions', 'rhs_table'=> 'ecmdeliveryconditions', 'rhs_key' => 'assigned_user_id',
'relationship_type'=>'one-to-many')
,'ecmdeliveryconditions_modified_user' => array(
'lhs_module'=> 'Users', 'lhs_table'=> 'users', 'lhs_key' => 'id',
'rhs_module'=> 'EcmDeliveryConditions', 'rhs_table'=> 'ecmdeliveryconditions', 'rhs_key' => 'modified_user_id',
'relationship_type'=>'one-to-many')
,'ecmdeliveryconditions_created_by' => array(
'lhs_module'=> 'Users', 'lhs_table'=> 'users', 'lhs_key' => 'id',
'rhs_module'=> 'EcmDeliveryConditions', 'rhs_table'=> 'ecmdeliveryconditions', 'rhs_key' => 'created_by',
'relationship_type'=>'one-to-many')
),
//THIS FLAG ENABLES OPTIMISTIC LOCKING FOR SAVES FROM EDITVIEW
'optimistic_locking'=>true,
);
?>

View File

@@ -0,0 +1,64 @@
<?php
//WARNING: The contents of this file are auto-generated
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
global $mod_strings;
if(ACLController::checkAccess('EcmDocumentTemplates', 'edit', true))
$module_menu [] = Array("index.php?module=EcmDocumentTemplates&action=EditView&return_module=EcmDocumentTemplates&return_action=DetailView", $mod_strings['LNK_NEW_ECMDOCUMENTTEMPLATES'],"CreateEcmDocumentTemplates", 'EcmDocumentTemplates');
if(ACLController::checkAccess('EcmDocumentTemplates', 'list', true))
$module_menu [] = Array("index.php?module=EcmDocumentTemplates&action=index&return_module=EcmDocumentTemplates&return_action=DetailView", $mod_strings['LNK_ECMDOCUMENTTEMPLATES_LIST'],"EcmDocumentTemplates", 'EcmDocumentTemplates');
if(ACLController::checkAccess('EcmDocumentTemplates','list', true)) $module_menu[] = Array('#', '<span style="display: none">wp_shortcut_fill_0</span>', '');
?>

View File

@@ -0,0 +1,486 @@
<?php
//WARNING: The contents of this file are auto-generated
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
$dictionary['EcmDocumentTemplate'] = array (
'table' => 'ecmdocumenttemplates',
//'audited' => true,
'comment' => 'EcmDocumentTemplates',
'duplicate_merge' => true,
'unified_search' => true,
'fields' => array (
//STANDARD FIELDS SECTION
'id' => array (
'name' => 'id',
'vname' => 'LBL_ID',
'type' => 'id',
'required' => true,
'reportable' => false,
'comment' => 'Unique identifier'
),
'name' => array (
'name' => 'name',
'vname' => 'LBL_NAME',
'type' => 'name',
'required' => true,
'dbType' => 'varchar',
'len' => 255,
'audited' => true,
'unified_search' => true,
'comment' => 'The short description of the record contents',
'massupdate' => true,
'merge_filter' => 'selected',
),
'date_entered' => array (
'name' => 'date_entered',
'vname' => 'LBL_DATE_ENTERED',
'type' => 'datetime',
'required' => true,
'comment' => 'Date record created'
),
'date_modified' => array (
'name' => 'date_modified',
'vname' => 'LBL_DATE_MODIFIED',
'type' => 'datetime',
'required' => true,
'comment' => 'Date record last modified'
),
'modified_user_id' => array (
'name' => 'modified_user_id',
'rname' => 'user_name',
'id_name' => 'modified_user_id',
'vname' => 'LBL_MODIFIED_BY',
'type' => 'assigned_user_name',
'table' => 'modified_user_id_users',
'isnull' => 'false',
'dbType' => 'varchar',
'len' => 36,
'required' => true,
'reportable' => true,
'comment' => 'User who last modified record'
),
'assigned_user_id' =>
array (
'name' => 'assigned_user_id',
'rname' => 'user_name',
'id_name' => 'assigned_user_id',
'vname' => 'LBL_ASSIGNED_TO_ID',
'group' => 'assigned_user_name',
'type' => 'relate',
'table' => 'users',
'reportable' => true,
'Importable' => false,
'isnull' => 'false',
'dbType' => 'id',
'audited' => true,
'comment' => 'User ID assigned to record',
'duplicate_merge' => 'disabled',
),
'assigned_user_name' =>
array (
'name' => 'assigned_user_name',
'vname' => 'LBL_ASSIGNED_TO',
'type' => 'relate',
'reportable' => false,
'source' => 'non-db',
'table' => 'users',
'id_name' => 'assigned_user_id',
'module' => 'Users',
'duplicate_merge' => 'disabled',
),
'created_by' => array (
'name' => 'created_by',
'rname' => 'user_name',
'id_name' => 'created_by',
'vname' => 'LBL_CREATED_BY',
'type' => 'assigned_user_name',
'table' => 'created_by_users',
'isnull' => 'false',
'dbType' => 'varchar',
'len' => 36,
'comment' => 'User that created the record'
),
'created_by_link' => array (
'name' => 'created_by_link',
'type' => 'link',
'relationship' => 'ecmdocumenttemplates_created_by',
'vname' => 'LBL_CREATED_BY_USER',
'link_type' => 'one',
'module' => 'Users',
'bean_name' => 'User',
'source' => 'non-db',
),
'modified_user_link' => array (
'name' => 'modified_user_link',
'type' => 'link',
'relationship' => 'ecmdocumenttemplates_modified_user',
'vname' => 'LBL_MODIFIED_BY_USER',
'link_type' => 'one',
'module' => 'Users',
'bean_name' => 'User',
'source' => 'non-db',
),
'assigned_user_link' => array (
'name' => 'assigned_user_link',
'type' => 'link',
'relationship' => 'ecmdocumenttemplates_assigned_user',
'vname' => 'LBL_ASSIGNED_TO_USER',
'link_type' => 'one',
'module' => 'Users',
'bean_name' => 'User',
'source' => 'non-db',
'duplicate_merge' => 'enabled',
'rname' => 'user_name',
'id_name' => 'assigned_user_id',
'table' => 'users',
),
'deleted' => array (
'name' => 'deleted',
'vname' => 'LBL_DELETED',
'type' => 'bool',
'required' => true,
'reportable' => false,
'comment' => 'Record deletion indicator'
),
//NEW FIELDS SECTION
'place_of_register' => array (
'type' => 'varchar',
'name' => 'place_of_register',
'vname' => 'LBL_PLACE_OF_REGISTER',
'comment' => 'Place of register',
'required_option' => 'true',
'max_size' => '255',
'len' => '255',
),
'logo_path' => array (
'type' => 'varchar',
'name' => 'logo_path',
'vname' => 'LBL_LOGO_PATH',
'comment' => 'Logo',
'required_option' => 'true',
'max_size' => '255',
'len' => '255',
),
'logo_id' => array (
'name' => 'logo_id',
'vname' => 'LBL_LOGO_ID',
'type' => 'varchar',
'len' => '255',
),
'logo_name' => array (
'name' => 'logo_name',
'type' => 'file',
'dbType' => 'varchar',
'vname' => 'LBL_LOGO_NAME',
'len' => '255',
'max_size' => '255',
),
'account_id' =>
array (
'name' => 'account_id',
'type' => 'id',
'group'=>'account_name',
'reportable'=>false,
),
'account_name' =>
array (
'name' => 'account_name',
'rname'=>'name',
//'db_concat_fields'=> array(0=>'name'),
//'source' => 'non-db',
'dbType' => 'varchar',
'len' => '510',
'group'=>'account_name',
'vname' => 'LBL_ACCOUNT_NAME',
'reportable'=>false,
'id_name' => 'account_id',
'join_name' => 'accounts',
'type' => 'relate',
'module' => 'Accounts',
'link'=>'accounts',
),
'account_number' => array(
'type' => 'varchar',
'name' => 'account_number',
'vname' => 'LBL_ACCOUNT_NUMBER',
'comment' => 'Account Number',
'required_option' => 'true',
'max_size' => '255',
'len' => '255',
),
'footer_account' => array(
'type' => 'varchar',
'name' => 'footer_account',
'vname' => 'LBL_FOOTER_ACCOUNT',
'len' => '255',
),
'footer_address' => array(
'type' => 'varchar',
'name' => 'footer_address',
'vname' => 'LBL_FOOTER_ADDRESS',
'len' => '255',
),
'footer_phone' => array(
'type' => 'varchar',
'name' => 'footer_phone',
'vname' => 'LBL_FOOTER_PHONE',
'len' => '255',
),
'footer_fax' => array(
'type' => 'varchar',
'name' => 'footer_fax',
'vname' => 'LBL_FOOTER_FAX',
'len' => '255',
),
'footer_krs' => array(
'type' => 'varchar',
'name' => 'footer_krs',
'vname' => 'LBL_FOOTER_KRS',
'len' => '255',
),
'footer_nip' => array(
'type' => 'varchar',
'name' => 'footer_nip',
'vname' => 'LBL_FOOTER_NIP',
'len' => '255',
),
'footer_regon' => array(
'type' => 'varchar',
'name' => 'footer_regon',
'vname' => 'LBL_FOOTER_REGON',
'len' => '255',
),
'footer_capital' => array(
'type' => 'varchar',
'name' => 'footer_capital',
'vname' => 'LBL_FOOTER_CAPITAL',
'len' => '255',
),
'footer_management' => array(
'type' => 'varchar',
'name' => 'footer_management',
'vname' => 'LBL_FOOTER_MANAGEMENT',
'len' => '255',
),
'footer_swift' => array(
'type' => 'varchar',
'name' => 'footer_swift',
'vname' => 'LBL_FOOTER_SWIFT',
'len' => '255',
),
'footer_bankname' => array(
'type' => 'varchar',
'name' => 'footer_bankname',
'vname' => 'LBL_FOOTER_BANKNAME',
'len' => '255',
),
'footer_vatid' => array(
'type' => 'varchar',
'name' => 'footer_vatid',
'vname' => 'LBL_FOOTER_VATID',
'len' => '255',
),
'document_number_format_id' => array (
'name' => 'document_number_format_id',
'vname' => 'LBL_DOCUMENT_NUMBER_FORMAT_ID',
'required' => true,
'type' => 'enum',
'options' => 'ecmdocumenttemplates_document_number_format_dom',
'default' => 'YMDNR',
),
'documents_per_day_id' => array (
'name' => 'documents_per_day_id',
'vname' => 'LBL_DOCUMENTS_PER_DAY_ID',
'required' => true,
'type' => 'enum',
'options' => 'ecmdocumenttemplates_documents_per_day_dom',
'default' => '3',
),
'ecmlanguage' => array(
'name' => 'ecmlanguage',
'vname' => 'LBL_ECMLANGUAGE',
'type' => 'enum',
'options' => 'ecmlanguages_dom',
'required' => true,
'len' => 35,
'massupdate' => false,
),
/*
'document_number_letter' => array(
'type' => 'varchar',
'name' => 'document_number_letter',
'vname' => 'LBL_DOCUMENT_NUMBER_LETTER',
'len' => '1',
'default' => 'F',
'required' => true,
),
'correct_number_letter' => array(
'type' => 'varchar',
'name' => 'correct_number_letter',
'vname' => 'LBL_CORRECT_NUMBER_LETTER',
'len' => '1',
'default' => 'K',
'required' => true,
),
*/
'documents_per' => array (
'type' => 'enum',
'name' => 'documents_per',
'options' => 'ecmdocumenttemplates_documents_per',
'vname' => 'LBL_DOCUMENTS_PER',
'default' => 'day',
'required' => true,
),
'footer_text' => array(
'name' => 'footer_text',
'vname' => 'LBL_FOOTER_TEXT',
'type' => 'text',
),
'header_text' => array(
'name' => 'header_text',
'vname' => 'LBL_HEADER_TEXT',
'type' => 'text',
),
'show_header_on_all_pages' => array (
'massupdate' => false,
'name' => 'show_header_on_all_pages',
'vname' => 'LBL_SHOW_HEADER_ON_ALL_PAGES',
'type' => 'bool',
'default' => '0',
),
'show_footer_on_all_pages' => array (
'massupdate' => false,
'name' => 'show_footer_on_all_pages',
'vname' => 'LBL_SHOW_FOOTER_ON_ALL_PAGES',
'type' => 'bool',
'default' => '0',
),
'change_all_old_records' => array (
'massupdate' => false,
'name' => 'change_all_old_records',
'vname' => 'LBL_CHANGE_ALL_OLD_RECORDS',
'type' => 'bool',
'source' => 'non-db',
'default' => '0',
),
'template_files_defs' => array(
'name' => 'template_files_defs',
'vname' => 'LBL_TEMPLATE_FILES_DEFS',
'type' => 'text',
),
//FOR SUBPANELS
),
//INDICES SECTION
'indices' => array (
array('name' =>'ecmdocumenttemplatesspk', 'type' =>'primary', 'fields'=>array('id')),
array('name' =>'idx_ecmdocumenttemplates_name', 'type' =>'index', 'fields'=>array('name'))
)
//RELATIONSHIPS SECTION
, 'relationships' => array (
'ecmdocumenttemplates_assigned_user' => array(
'lhs_module'=> 'Users', 'lhs_table'=> 'users', 'lhs_key' => 'id',
'rhs_module'=> 'EcmDocumentTemplates', 'rhs_table'=> 'ecmdocumenttemplates', 'rhs_key' => 'assigned_user_id',
'relationship_type'=>'one-to-many')
,'ecmdocumenttemplates_modified_user' => array(
'lhs_module'=> 'Users', 'lhs_table'=> 'users', 'lhs_key' => 'id',
'rhs_module'=> 'EcmDocumentTemplates', 'rhs_table'=> 'ecmdocumenttemplates', 'rhs_key' => 'modified_user_id',
'relationship_type'=>'one-to-many')
,'ecmdocumenttemplates_created_by' => array(
'lhs_module'=> 'Users', 'lhs_table'=> 'users', 'lhs_key' => 'id',
'rhs_module'=> 'EcmDocumentTemplates', 'rhs_table'=> 'ecmdocumenttemplates', 'rhs_key' => 'created_by',
'relationship_type'=>'one-to-many')
),
//THIS FLAG ENABLES OPTIMISTIC LOCKING FOR SAVES FROM EDITVIEW
'optimistic_locking'=>true,
);
?>

View File

@@ -0,0 +1,109 @@
<?php
//WARNING: The contents of this file are auto-generated
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
global $mod_strings;
// $module_menu [] = Array("index.php?module=EcmGroupSales&action=Settings&return_module=EcmGroupSales&return_action=DetailView", translate('LBL_SETTINGS_TITLE','EcmGroupSales'),"", 'EcmGroupSales');
?>

View File

@@ -0,0 +1,152 @@
<?php
//WARNING: The contents of this file are auto-generated
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
$dictionary['EcmGroupSale'] = array (
'table' => "ecmgroupsales",
'comment' => 'EcmGroupSales',
'duplicate_merge' => true,
'unified_search' => true,
//FIELDS SECTION
'fields' => array (
//STANDARD FIELDS SECTION
),
//INDICES SECTION
'indices' => array (
array('name' => 'ecmgroupsales'.'pk', 'type' => 'primary', 'fields' => array('id')),
array('name' => 'idx_'.'ecmgroupsales'.'_name', 'type' => 'index', 'fields' => array('name'))
),
//RELATIONSHIPS SECTION
'relationships' => array (
),
//THIS FLAG ENABLES OPTIMISTIC LOCKING FOR SAVES FROM EDITVIEW
'optimistic_locking' => true,
);
?>

View File

@@ -0,0 +1,8 @@
<?php
//WARNING: The contents of this file are auto-generated
//auto-generated file DO NOT EDIT
$layout_defs['EcmInvoiceOuts']['subpanel_setup']['ecmsalesw']['override_subpanel_name'] = 'EcmInvoiceOut';
?>

View File

@@ -0,0 +1,120 @@
<?php
//WARNING: The contents of this file are auto-generated
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
// require_once('modules/EcmGroupSales/Menu.php');
//global $mod_strings, $current_user;
/*
if(ACLController::checkAccess('EcmInvoiceOuts', "edit", true))
$module_menu [] = Array("index.php?module=".'EcmInvoiceOuts'."&action=EditView&return_module=".'EcmInvoiceOuts'."&return_action=DetailView", $mod_strings['LNK_NEW_'.'ECMINVOICEOUT'],"CreateEcmInvoiceOuts", 'EcmInvoiceOuts');
if(ACLController::checkAccess('EcmInvoiceOuts', 'list', true))
$module_menu [] = Array("index.php?module=".'EcmInvoiceOuts'."&action=index&return_module=".'EcmInvoiceOuts'."&return_action=DetailView", $mod_strings['LNK_'.'ECMINVOICEOUTS'.'_LIST'],"EcmInvoiceOuts", 'EcmInvoiceOuts');
*/
?>

View File

@@ -0,0 +1,502 @@
<?php
$viewdefs ['EcmOfferes'] =
array (
'QuickCreate' =>
array (
'templateMeta' =>
array (
'form' =>
array (
'enctype' => 'multipart/form-data',
'buttons' =>
array (
0 =>
array (
'customCode' => '<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick=" return SaveForm(this);" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">',
),
1 => 'CANCEL',
2 =>
array (
'customCode' => '&nbsp;<input title="{$MOD.LBL_GO_TO_LIST_BUTTON_TITLE}" accessKey="{$MOD.LBL_GO_TO_LIST_BUTTON_KEY}" class="button" onclick="window.location=\'index.php?module=EcmOfferes&action=index\'" type="button" name="button" value="{$MOD.LBL_GO_TO_LIST_BUTTON_LABEL}">',
),
),
'hidden' =>
array (
0 => '<input type="hidden" name="position_list" id="position_list" value=\'{$POSITION_LIST}\'>',
1 => '<input type="hidden" name="email_id" id="email_id" value=\'\'>',
2 => '<input type="hidden" name="parent_type" id="parent_type" value="Accounts">',
),
),
'maxColumns' => '2',
'widths' =>
array (
0 =>
array (
'label' => '10',
'field' => '30',
),
1 =>
array (
'label' => '10',
'field' => '30',
),
),
'includes' =>
array (
0 =>
array (
'file' => 'include/JSON.js',
),
1 =>
array (
'file' => 'include/javascript/quicksearch.js',
),
2 =>
array (
'file' => 'include/ECM/EcmPreviewPDF/EcmPreviewPDF.js',
),
3 =>
array (
'file' => 'modules/EcmOfferes/AjaxSearch/AjaxSearch.js',
),
4 =>
array (
'file' => 'modules/EcmOfferes/formloader.js',
),
5 =>
array (
'file' => 'modules/EcmOfferes/MyTable.js',
),
6 =>
array (
'file' => 'modules/EcmOfferes/EcmOfferes.js',
),
7 =>
array (
'file' => 'modules/EcmOfferes/CreateItem.js',
),
8 =>
array (
'file' => 'modules/EcmProducts/mintajax.js',
),
9 =>
array (
'file' => 'modules/EcmProducts/helper.js',
),
),
),
'panels' =>
array (
'LBL_DETAILS_TAB' =>
array (
0 =>
array (
0 =>
array (
'type' => 'tab',
'active' => true,
),
),
1 =>
array (
0 =>
array (
'name' => 'document_no',
'tabIndex' => '1',
'customCode' => '<div id="tst" style="display:none;"></div><input readonly="readonly" type="text" name="document_no" id="document_no" value=\'{$fields.document_no.value}\'>
<input type="hidden" name="number" id="number" value=\'{$fields.number.value}\'>',
),
1 =>
array (
'name' => 'assigned_user_name',
'tabIndex' => '1',
),
),
2 =>
array (
0 =>
array (
'name' => 'parent_name',
'tabIndex' => '1',
),
1 => '',
),
3 =>
array (
0 => 'contact_name',
1 =>
array (
'name' => 'ecmpaymentcondition_name',
'tabIndex' => '1',
),
),
4 =>
array (
0 =>
array (
'name' => 'name',
'tabIndex' => '1',
),
1 =>
array (
'name' => 'ecmdeliverycondition_name',
'tabIndex' => '1',
),
),
5 =>
array (
0 =>
array (
'name' => 'status',
'tabIndex' => '1',
),
1 =>
array (
'label' => 'LBL_TEMPLATE_NAME',
'tabIndex' => '1',
'customCode' => '<select tabindex="1" id="template_id" name="template_id" onChange="document.getElementById(\'template_name\').value=this.options[this.selectedIndex].text;">{$DOCUMENT_TEMPLATES_OPTIONS}</select><input type="hidden" id="template_name" name="template_name" value="{$fields.template_name.value}">',
),
),
6 =>
array (
0 =>
array (
'name' => 'register_date',
'tabIndex' => '1',
'type' => 'datetime',
'displayParams' =>
array (
'showFormats' => true,
),
),
1 =>
array (
'name' => 'discount',
'tabIndex' => '1',
'customCode' => '<input tabindex="1" type="text" name="discount" id="discount" value="{$fields.discount.value}" onChange="if(CheckDiscount() != -1) calculateTotal();" onKeyDown="return N.KeyPressed(event,this.parentNode,\'decimalNumber\');" >%',
),
),
7 =>
array (
0 =>
array (
'name' => 'validtill_date',
'tabIndex' => '1',
'type' => 'datetime',
'displayParams' =>
array (
'showFormats' => true,
),
),
1 => 'order_origin',
),
8 =>
array (
0 =>
array (
'name' => 'currency_id',
'label' => 'LBL_CURRENCY',
),
1 =>
array (
'label' => 'LBL_PRICEBOOK',
'name' => 'pricebook',
'customCode' => ' <div id=\'pricebooks\'></div><input type="hidden" id="ecmpricebook_id" name="ecmpricebook_id" value=""/>',
),
),
9 =>
array (
0 =>
array (
'allCols' => true,
'hideLabel' => true,
'customCode' => '<div class="tabForm" style="border-top:none;width:100%;height:1px;padding:0px;align:center;"></div><h4>{$MOD.LBL_TO_INFORMATIONS}</h4>',
),
),
10 =>
array (
0 =>
array (
'name' => 'parent_name_copy',
'tabIndex' => '1',
'customCode' => '<input type="text" name="parent_name_copy" id="parent_name_copy" value="{$fields.parent_name.value}" readOnly="readonly" size="30" />',
),
1 =>
array (
'name' => 'ecmlanguage',
'tabIndex' => '1',
),
),
11 =>
array (
0 =>
array (
'name' => 'parent_contact_name',
'tabIndex' => '1',
),
1 =>
array (
'name' => 'to_vatid',
'tabIndex' => '1',
),
),
12 =>
array (
0 =>
array (
'name' => 'parent_contact_title',
'tabIndex' => '1',
),
1 =>
array (
'name' => 'to_is_vat_free',
'tabIndex' => '1',
'customCode' => '<input tabindex="1" type="checkbox" id="to_is_vat_free" name="to_is_vat_free" value="{$fields.to_is_vat_free.value}" {if $fields.to_is_vat_free.value == 1}checked{/if}>',
),
),
13 =>
array (
0 =>
array (
'name' => 'parent_address_street',
'tabIndex' => '1',
'customCode' => '<textarea tabindex="1" id="parent_address_street" name="parent_address_street" rows="2" cols="30" maxlength="150" >{$fields.parent_address_street.value}</textarea>',
),
1 =>
array (
'name' => 'show_images_on_offers',
'tabindex' => '1',
'customCode' => '<input type="checkbox" id="show_images_on_offers" name="show_images_on_offers" value="1" {$CHECKBOX_SHOW_IMAGES_ON_OFFERS}>',
),
),
14 =>
array (
0 =>
array (
'name' => 'parent_address_city',
'tabIndex' => '1',
'customCode' => '<input maxlength="8" type="text" name="parent_address_postalcode" id="parent_address_postalcode" value="{$fields.parent_address_postalcode.value}" style="vertical-align:top;width:80px;" />&nbsp;&nbsp;<input type="text" name="parent_address_city" id="parent_address_city" value="{$fields.parent_address_city.value}" style="vertical-align:top;width:150px;" />',
),
1 => 'show_recipient_code',
),
15 =>
array (
0 =>
array (
'name' => 'parent_address_country',
'tabIndex' => '1',
),
1 => 'show_ean',
),
16 =>
array (
0 => 'image_size',
1 => 'show_ean2',
),
),
'LBL_ITEMS_TAB' =>
array (
0 =>
array (
0 =>
array (
'type' => 'tab',
),
),
1 =>
array (
0 =>
array (
'allCols' => true,
'hideLabel' => true,
'customCode' => '
<link rel="stylesheet" type="text/css" href="modules/EcmOfferes/MyTable.css" />
<link rel="stylesheet" type="text/css" href="modules/EcmOfferes/AjaxSearch/AjaxSearch.css" />
<div style="width:100%;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:100%;" id="itemsTable">
<thead id="head">
<tr id="tr">
<td width="4%">{$MOD.LBL_EDITTABLE_NO}</td>
<td width="10%">{$MOD.LBL_EDITTABLE_CODE}</td>
<td width="10%">EAN</td>
<td width="39%">{$MOD.LBL_EDITTABLE_NAME}</td>
<td width="5%">{$MOD.LBL_EDITTABLE_QUANTITY}</td>
<td width="12%">{$MOD.LBL_EDITTABLE_PRICE}</td>
<td width="6%">{$MOD.LBL_EDITTABLE_VAT}</td>
<td width="6%">{$MOD.LBL_EDITTABLE_DISCOUNT}</td>
<td width="12%">{$MOD.LBL_EDITTABLE_RECIPIENT_CODE}</td>
<td width="12%">{$MOD.LBL_EDITTABLE_TOTAL}</td>
<td width="6%">{$MOD.LBL_EDITTABLE_OPTIONS}</td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
<table width="100%"" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="55%" class="dataLabel" valign="top">
<a href="javascript: N.moveUpRow();" >{$MOD.LBL_MOVE_ROW_UP}</a> - <a href="javascript: N.moveDownRow();" >{$MOD.LBL_MOVE_ROW_DOWN}</a>
</td> <!--color:#b3b9cf;-->
<td width="40%" class="dataField" style="text-align: left;">
<br>
<table id="result_table" cellpadding="0" cellspacing="0" style="width:100%; height:100%; border: 1px solid rgb(48,192,255);">
<tr id="subtotal_tr">
<td class="positionsLabel" style="border-top:0px;">{$MOD.LBL_SUBTOTAL}</td>
<td class="positionsField" style="border-top:0px;"><input type="text" style="border:0px;font-weight:900;width:100%;text-align:right;" readonly="readonly" name="subtotal" id="subtotal" value=\'{$fields.subtotal.value}\'></td>
</tr>
<tr id="total_tr">
<td class="positionsLabel">{$MOD.LBL_TOTAL}</td>
<td class="positionsField"><input type="text" readonly="readonly" style="border:0px;font-weight:900;width:100%;text-align:right;" name="total_2" id="total_2" value=\'\'></td>
</tr>
<tr id="discount_tr">
<td class="positionsLabel">{$MOD.LBL_DISCOUNT}</td>
<td class="positionsField"><input type="text" readonly="readonly" style="border:0px;font-weight:900;width:100%;text-align:right;" name="discount_2" id="discount_2" value=\'\'></td>
</tr>
<tr id="total_tr">
<td class="positionsLabel">{$MOD.LBL_TOTAL}</td>
<td class="positionsField"><input type="text" readonly="readonly" style="border:0px;font-weight:900;width:100%;text-align:right;" name="total" id="total" value=\'{$fields.total.value}\'></td>
</tr>
</table>
</td>
<td width="5%" class="dataField" style="text-align: left;">&nbsp;</td>
</tr>
</table>
',
),
),
),
'LBL_TEXTS_TAB' =>
array (
0 =>
array (
0 =>
array (
'type' => 'tab',
),
),
1 =>
array (
0 =>
array (
'label' => 'LBL_HEADER_TEXT',
'customCode' => '{$MFP.footer}',
),
),
2 =>
array (
0 =>
array (
'tabIndex' => 'f',
'customCode' => '<textarea id="header_text" name="header_text" rows="5" style="width:100%;">{$fields.header_text.value}</textarea>',
),
),
3 =>
array (
0 =>
array (
'label' => 'LBL_FOOTER_TEXT',
'customCode' => '{$MFP.header}',
),
),
4 =>
array (
0 =>
array (
'tabIndex' => 'f',
'customCode' => '<textarea id="footer_text" name="footer_text" rows="5" style="width:100%;">{$fields.footer_text.value}</textarea>',
),
),
5 =>
array (
0 =>
array (
'label' => 'LBL_ADS_TEXT',
'customCode' => '{$MFP.ads}',
),
),
6 =>
array (
0 =>
array (
'tabIndex' => 'f',
'customCode' => '<textarea id="ads_text" name="ads_text" rows="5" style="width:100%;">{$fields.ads_text.value}</textarea>',
),
),
),
'LBL_PREVIEW_TAB' =>
array (
0 =>
array (
0 =>
array (
'type' => 'tab',
),
),
1 =>
array (
0 =>
array (
'allCols' => true,
'hideLabel' => true,
'customCode' => '<span id=\'previewPDF\' width="100%" height="100%"></span>',
),
),
),
),
),
);
?>

View File

@@ -0,0 +1,48 @@
<?php
$viewdefs ['EcmPaymentStates'] =
array (
'QuickCreate' =>
array (
'templateMeta' =>
array (
'form' =>
array (
'buttons' =>
array (
0 => 'SAVE',
1 => 'CANCEL',
),
),
'maxColumns' => '2',
'widths' =>
array (
0 =>
array (
'label' => '10',
'field' => '30',
),
1 =>
array (
'label' => '10',
'field' => '30',
),
),
),
'panels' =>
array (
'default' =>
array (
0 =>
array (
0 => 'name',
1 => 'assigned_user_name',
),
1 =>
array (
0 => 'value',
),
),
),
),
);
?>

View File

@@ -0,0 +1,8 @@
<?php
//WARNING: The contents of this file are auto-generated
//auto-generated file DO NOT EDIT
$layout_defs['EcmPayments']['subpanel_setup']['documents']['override_subpanel_name'] = 'EcmPaymentdefault';
?>

View File

@@ -0,0 +1,6 @@
<?php
// created: 2014-01-22 10:25:54
$mod_strings = array (
'LBL_DOCUMENTS_SUBPANEL_TITLE' => 'LBL_DOCUMENTS_SUBPANEL_TITLE',
);
?>

View File

@@ -0,0 +1,57 @@
<?php
$viewdefs ['EcmPayments'] =
array (
'QuickCreate' =>
array (
'templateMeta' =>
array (
'form' =>
array (
'buttons' =>
array (
0 => 'SAVE',
1 => 'CANCEL',
),
),
'maxColumns' => '2',
'widths' =>
array (
0 =>
array (
'label' => '10',
'field' => '30',
),
1 =>
array (
'label' => '10',
'field' => '30',
),
),
),
'panels' =>
array (
'default' =>
array (
0 =>
array (
0 => 'name',
1 => 'assigned_user_name',
),
1 =>
array (
0 => 'parent_name',
1 => 'payment_date',
),
2 =>
array (
0 => 'value',
),
3 =>
array (
0 => 'description',
),
),
),
),
);
?>

View File

@@ -0,0 +1,40 @@
<?php
// created: 2014-01-29 14:27:07
$subpanel_layout['list_fields'] = array (
'name' =>
array (
'vname' => 'LBL_LIST_NAME',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '50%',
'default' => true,
),
'assigned_user_name' =>
array (
'name' => 'assigned_user_name',
'vname' => 'LBL_LIST_ASSIGNED_TO_NAME',
'width' => '10%',
'default' => true,
),
'currency_value' =>
array (
'type' => 'decimal',
'vname' => 'LBL_CURRENCY_VALUE',
'width' => '10%',
'default' => true,
),
'edit_button' =>
array (
'widget_class' => 'SubPanelEditButton',
'module' => 'EcmPriceBooks',
'width' => '4%',
'default' => true,
),
'remove_button' =>
array (
'widget_class' => 'SubPanelRemoveButton',
'module' => 'EcmPriceBooks',
'width' => '5%',
'default' => true,
),
);
?>

View File

@@ -0,0 +1,16 @@
<?php
//WARNING: The contents of this file are auto-generated
//auto-generated file DO NOT EDIT
$layout_defs['EcmProducts']['subpanel_setup']['ecmquotes']['override_subpanel_name'] = 'EcmProductdefault';
//auto-generated file DO NOT EDIT
$layout_defs['EcmProducts']['subpanel_setup']['ecmpricebooks']['override_subpanel_name'] = 'EcmProductdefault';
//auto-generated file DO NOT EDIT
$layout_defs['EcmProducts']['subpanel_setup']['ecmpurchaseorders']['override_subpanel_name'] = 'EcmProductdefault';
?>

View File

@@ -0,0 +1,33 @@
<?php
//WARNING: The contents of this file are auto-generated
$dictionary['EcmProduct']['fields']['product_kind'] = array(
'name' => 'product_kind',
'options' => 'ecmproducts_product_kind_dom',
'vname' => 'Rodzaj',
'type' => 'enum',
);
$dictionary['EcmProduct']['fields']['product_size'] = array(
'name' => 'product_size',
'options' => 'ecmproducts_product_size_dom',
'vname' => 'Rozmiar',
'type' => 'enum',
);
$dictionary['EcmProduct']['fields']['product_brand'] = array(
'name' => 'product_brand',
'options' => 'ecmproducts_product_brand_dom',
'vname' => 'Marka',
'type' => 'enum',
);
?>

View File

@@ -0,0 +1,11 @@
<?php
// created: 2020-09-13 22:51:04
$mod_strings = array (
'LBL_ECMQUOTES_SUBPANEL_TITLE' => 'Oferty',
'LBL_UNIT_NAME' => 'J.M.',
'LBL_STOCK_PRICE' => 'Śr. cena',
'LBL_STOCK_QUANTITY' => 'Ilość',
'LBL_ECMPURCHASEORDERS_SUBPANEL_TITLE' => 'Zamówienia Kupna',
'LBL_ECMPRICEBOOKS_SUBPANEL_TITLE' => 'Cenniki',
);
?>

View File

@@ -0,0 +1,52 @@
<?php
$dashletData ['EcmProductsDashlet'] =
array (
'searchFields' =>
array (
'date_entered' =>
array (
'default' => '',
),
'date_modified' =>
array (
'default' => '',
),
'assigned_user_id' =>
array (
'type' => 'assigned_user_name',
'default' => 'Ryszard Lisiecki',
),
),
'columns' =>
array (
'name' =>
array (
'width' => '40',
'label' => 'LBL_LIST_NAME',
'link' => '1',
'default' => '1',
),
'date_entered' =>
array (
'width' => '15',
'label' => 'LBL_DATE_ENTERED',
'default' => '1',
),
'date_modified' =>
array (
'width' => '15',
'label' => 'LBL_DATE_MODIFIED',
),
'created_by' =>
array (
'width' => '8',
'label' => 'LBL_CREATED',
),
'assigned_user_name' =>
array (
'width' => '8',
'label' => 'LBL_LIST_ASSIGNED_USER',
),
),
);
?>

View File

@@ -0,0 +1,673 @@
<?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".
********************************************************************************/
$viewdefs['EcmProducts']['DetailView'] = array(
'templateMeta' => array(
'form' => array(
'buttons' => array(
'EDIT',
'DUPLICATE',
'DELETE',
'FIND_DUPLICATES',
array(
'customCode' => '{$CATALOGUE_NEW}'
),
array(
'customCode' => '<input class="button" type="submit" value="{$MOD.LBL_ALLEGRO}" onClick="this.form.action.value=\'allegroTemplate\';">'
)
),
'hidden' => array(
'<input type="hidden" name="position_list" id="position_list" value=\'{$POSITION_LIST}\'>'
)
),
'maxColumns' => '2',
'widths' => array(
array(
'label' => '10',
'field' => '30'
),
array(
'label' => '10',
'field' => '30'
)
),
'includes' => array(
array(
'file' => 'include/JSON.js'
),
// array('file'=>'include/javascript/quicksearch.js'),
// array('file'=>'include/ECM/EcmPreviewPDF/EcmPreviewPDF.js'),
array(
'file' => 'modules/EcmProducts/AjaxSearch/AjaxSearch.js'
),
array(
'file' => 'modules/EcmProducts/javascript/formloader.js'
),
array(
'file' => 'modules/EcmProducts/javascript/MyTable.js'
),
//array (
// 'file' => 'modules/EcmProducts/javascript/EcmProductDetailView.js'
//),
array(
'file' => 'modules/EcmProducts/javascript/ProductionTables.js'
),
array(
'file' => 'modules/EcmProducts/javascript/ProductionSummary.js'
)
)
),
// array('file'=>'modules/EcmQuotes/CreateItem.js'),
// array('file'=>'modules/EcmProducts/mintajax.js'),
// array('file'=>'modules/EcmProducts/helper.js'),
'panels' => array(
'LBL_PRODUCT_INFORMATION' => array(
array(
'code',
array(
'name' => 'created_by_link',
'customCode' => '{$CREATED_BY_NAME}'
),
),
array(
'name',
'date_entered'
),
array(
'status',
'ean'
),
array(
'category',
'ean2'
),
array(
'product_group',
'number'
),
array(
'brand',
'ufi'
),
array(
'attribute',
''
),
array(
'shape',
''
),
array(
'group_ks',
''
),
),
'LBL_DRIVERS_IMAGES' => array(
array(
'url1',
'url2'
),
array(
'url3',
'url4'
),
array(
'url5',
'url6'
),
array(
'url7',
'url8'
),
array(
'url9',
''
),
),
/*
'DDD' => array(
array(
'name',
'assigned_user_name'
),
array(
'code',
'product_active'
),
array(
'ean',
'ean2'
),
array(
'vendor_name',
'part_no'
),
array(
'vendor_part_no',
'serial_no'
),
array(
'brand',
'brand_label'
),
array(
'production',
'status'
),
// array('product_category_name','product_subcategory_name'),
// array('product_line_name'),
// array('sales_start_date','sales_end_date'),
// array('manufacturer_name','parent_name'),
// array('contact_name','website'),
// array('vendor_name','part_no'),
// array('vendor_part_no','serial_no'),
array(
'group_ks',
'mainproduct_name'
),
array(
'active',
'is_mainproduct'
),
array(
'group_name',
// 'brand',
),
array (
'product_amount',
'product_type',
),
),
*/
'LBL_PRICING_INFORMATION' => array(
array(
array(
'customCode' => '{$EXCHANGE_RATE_NAME}',
'label' => 'LBL_EXCHANGE_RATE_NAME'
),
'custom_duty_rate'
),
array(
'vat_name',
'commission_rate'
),
array(
'purchase_price',
'srp_price'
),
array(
'selling_price',
'srp_price_eur'
),
array(
'fob_price',
'srp_promo_price'
),
array(
'ems_price'
)
),
'LBL_STOCK_INFORMATION' => array(
array(
array(
'customCode' => '{$ORDERED}',
'label' => 'Zamówień'
),
'qty_per_unit'
),
array(
'qty_in_stock',
'reorder_level'
),
array(
'ems_qty_in_stock',
'qty_in_demand'
),
array(
array(
'customCode' => '{$INVENTORY_INFORMATION}',
'label' => 'Inventory informations'
),
'lead_time'
),
array(
'stock_addresses'
)
),
/*
'LBL_SELLING_THIS_MONTH_INFORMATION' => array (
array (
'this_month_val',
'this_month_qty'
),
array (
'this_month_cost',
'this_month_margin'
)
),
'LBL_SELLING_LAST_MONTH_INFORMATION' => array (
array (
'last_month_val',
'last_month_qty'
),
array (
'last_month_cost',
'last_month_margin'
)
),
'LBL_SELLING_Q1_INFORMATION' => array (
array (
'q1_val',
'q1_qty'
),
array (
'q1_cost',
'q1_margin'
)
),
'LBL_SELLING_LAST_Q1_INFORMATION' => array (
array (
'last_q1_val',
'last_q1_qty'
),
array (
'last_q1_cost',
'last_q1_margin'
)
),
'LBL_SELLING_Q2_INFORMATION' => array (
array (
'q2_val',
'q2_qty'
),
array (
'q2_cost',
'q2_margin'
)
),
'LBL_SELLING_LAST_Q2_INFORMATION' => array (
array (
'last_q2_val',
'last_q2_qty'
),
array (
'last_q2_cost',
'last_q2_margin'
)
),
'LBL_SELLING_Q3_INFORMATION' => array (
array (
'q3_val',
'q3_qty'
),
array (
'q3_cost',
'q3_margin'
)
),
'LBL_SELLING_LAST_Q3_INFORMATION' => array (
array (
'last_q3_val',
'last_q3_qty'
),
array (
'last_q3_cost',
'last_q3_margin'
)
),
'LBL_SELLING_Q4_INFORMATION' => array (
array (
'q4_val',
'q4_qty'
),
array (
'q4_cost',
'q4_margin'
)
),
'LBL_SELLING_LAST_Q4_INFORMATION' => array (
array (
'last_q4_val',
'last_q4_qty'
),
array (
'last_q4_cost',
'last_q4_margin'
)
),
'LBL_SELLING_THIS_YEAR_INFORMATION' => array (
array (
'this_year_val',
'this_year_qty'
),
array (
'this_year_cost',
'this_year_margin'
)
),
'LBL_SELLING_LAST_YEAR_INFORMATION' => array (
array (
'last_year_val',
'last_year_qty'
),
array (
'last_year_cost',
'last_year_margin'
)
), */
'LBL_WWW_PANEL' => array(
array(
'www_available',
'www_popular'
),
array(
'www_price_pln',
'www_price_eur'
),
array(
'www_state',
'www_manual_update'
),
array(
'www_state_desc_pl',
'www_state_desc_en'
)
),
/*
'LBL_DRIVERS_IMAGES' => array(
array(
array(
'label' => 'LBL_PRODUCT_PICTURE',
'customCode' => '{$PRODUCT_PICTURE}'
),
array(
'label' => 'LBL_PACKING_FRONT_PICTURE',
'customCode' => '{$PACKING_FRONT_PICTURE}'
)
),
array(
array(
'label' => 'LBL_DRIVER_1',
'customCode' => '{$DRIVER_1_DOWNLOAD}'
),
array(
'label' => 'LBL_DRIVER_2',
'customCode' => '{$DRIVER_2_DOWNLOAD}'
)
)
),
*/
'LBL_QRCODE' => array(
array(
array(
'label' => '',
'customCode' => '{$QRCODE}'
)
)
),
'LBL_LOGISTIC_INFORMATION' => array(
array(
'',
array(
'label' => 'LBL_CARTON_DIMENSIONS_1',
'customCode' => '{$CARTON_DIMENSIONS_1} x {$CARTON_DIMENSIONS_2} x {$CARTON_DIMENSIONS_3}'
)
),
array(
'fob_basis_name',
'carton_netto_weight'
),
array(
'',
'carton_brutto_weight'
),
array(
'pieces_per_carton',
'carton_volume_meter'
),
array(
'product_netto_weight',
'unit_id'
),
array(
'product_brutto_weight',
'country_of_origin'
),
array(
'packing_type_name',
''
),
array(
array(
'label' => 'LBL_PACKING_DIMENSIONS_1',
'customCode' => '{$PACKING_DIMENSIONS_1} x {$PACKING_DIMENSIONS_2} x {$PACKING_DIMENSIONS_3}'
),
''
),
array(
'rma'
),
array(
'boxes_per_layer',
'number_of_layers'
),
array(
'boxes_per_palette',
'pieces_per_palette'
),
array(
'palette_weight_brutto',
''
)
),
'LBL_LOCALIZED_INFORMATION' => array(
array(
array(
'hideLabel' => true,
'customCode' => '
<script>
{literal}
function select_lang(value)
{
document.getElementById("remarks_pl").style.display="none";
document.getElementById("short_description_pl").style.display="none";
document.getElementById("long_description_pl").style.display="none";
document.getElementById("price_pl").style.display="none";
document.getElementById("remarks_en").style.display="none";
document.getElementById("short_description_en").style.display="none";
document.getElementById("long_description_en").style.display="none";
document.getElementById("price_en").style.display="none";
document.getElementById("remarks_de").style.display="none";
document.getElementById("short_description_de").style.display="none";
document.getElementById("long_description_de").style.display="none";
document.getElementById("price_de").style.display="none";
document.getElementById("remarks_fr").style.display="none";
document.getElementById("short_description_fr").style.display="none";
document.getElementById("long_description_fr").style.display="none";
document.getElementById("price_fr").style.display="none";
document.getElementById("remarks_it").style.display="none";
document.getElementById("short_description_it").style.display="none";
document.getElementById("long_description_it").style.display="none";
document.getElementById("price_it").style.display="none";
document.getElementById("remarks_es").style.display="none";
document.getElementById("short_description_es").style.display="none";
document.getElementById("long_description_es").style.display="none";
document.getElementById("price_es").style.display="none";
document.getElementById("remarks_"+value).style.display="block";
document.getElementById("short_description_"+value).style.display="block";
document.getElementById("long_description_"+value).style.display="block";
document.getElementById("price_"+value).style.display="block";
}
{/literal}
</script>
<select name="slang" id="slang" onchange="select_lang(this.value);">
<option value="pl">pl</option>
<option value="en">en</option>
<option value="de">de</option>
<option value="fr">fr</option>
<option value="it">it</option>
<option value="es">es</option>
</select>'
)
),
array(
array(
''
),
array(
'label' => 'LBL_REMARKS',
'customCode' => '
<div id="remarks_pl">{$REMARKS_pl}</div>
<div style="display:none;" id="remarks_en">{$REMARKS_en}</div>
<div style="display:none;" id="remarks_de">{$REMARKS_de}</div>
<div style="display:none;" id="remarks_fr">{$REMARKS_fr}</div>
<div style="display:none;" id="remarks_it">{$REMARKS_it}</div>
<div style="display:none;" id="remarks_es">{$REMARKS_es}</div>'
)
),
array(
array(
'label' => 'LBL_SHORT_DESCRIPTION',
'customCode' => '
<div id="short_description_pl">{$SHORT_DESCRIPTION_pl}</div>
<div style="display:none;" id="short_description_en">{$SHORT_DESCRIPTION_en}</div>
<div style="display:none;" id="short_description_de">{$SHORT_DESCRIPTION_de}</div>
<div style="display:none;" id="short_description_fr">{$SHORT_DESCRIPTION_fr}</div>
<div style="display:none;" id="short_description_it">{$SHORT_DESCRIPTION_it}</div>
<div style="display:none;" id="short_description_es">{$SHORT_DESCRIPTION_es}</div>'
),
array(
'label' => 'LBL_LONG_DESCRIPTION',
'customCode' => '
<div id="long_description_pl">{$LONG_DESCRIPTION_pl}</div>
<div style="display:none;" id="long_description_en">{$LONG_DESCRIPTION_en}</div>
<div style="display:none;" id="long_description_de">{$LONG_DESCRIPTION_de}</div>
<div style="display:none;" id="long_description_fr">{$LONG_DESCRIPTION_fr}</div>
<div style="display:none;" id="long_description_it">{$LONG_DESCRIPTION_it}</div>
<div style="display:none;" id="long_description_es">{$LONG_DESCRIPTION_es}</div>'
)
),
array(
array(
'label' => 'LBL_PRICE',
'customCode' => '
<div id="price_pl">{$PRICE_pl}</div>
<div style="display:none;" id="price_en">{$PRICE_en}</div>
<div style="display:none;" id="price_de">{$PRICE_de}</div>
<div style="display:none;" id="price_fr">{$PRICE_fr}</div>
<div style="display:none;" id="price_it">{$PRICE_it}</div>
<div style="display:none;" id="price_es">{$PRICE_es}</div>'
)
)
),
'LBL_PANEL_CATEGORIES' => array(
0 => array(
0 => array(
'name' => 'items_list_panel3',
'allCols' => true,
'hideLabel' => true,
'customCode' => '{$POSITIONS3}'
)
),
array(
'part_no',
'vendor_part_no',
),
/*
array(
'product_brand',
) ,
*/
),
'LBL_PANEL_PRICES' => array(
0 => array(
0 => array(
'name' => 'items_list_panel4',
'allCols' => true,
'hideLabel' => true,
'customCode' => '{$POSITIONS4}'
)
)
),
'LBL_PRODUCTION_PANEL' => array(
array(
array(
'name' => 'production_panel',
'allCols' => true,
'hideLabel' => true,
'customCode' => '{$MOD.LBL_COMPONENTS}<br><div id="componentsTable"></div><br><br>{$MOD.LBL_ACTIONS}<div id="actionsTable"></div>
<br><br><div id="summaryTable" style="width: 50%; padding-right: 0px;">Podsumowanie</div>'
)
)
),
'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}'
)
)
)
)
);

View File

@@ -0,0 +1,512 @@
<?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".
********************************************************************************/
$viewdefs['EcmProducts']['EditView'] = array(
'templateMeta' => array(
'form' => array(
'buttons' => array(
'SAVE',
'CANCEL'
),
'enctype' => 'multipart/form-data',
'hidden' => array(
'<input type="hidden" name="position_list" id="position_list" value=\'{$POSITION_LIST}\'>'
)
),
'maxColumns' => '2',
'widths' => array(
array(
'label' => '10',
'field' => '30'
),
array(
'label' => '10',
'field' => '30'
)
),
'includes' => array(
array(
'file' => 'include/JSON.js'
),
// array('file'=>'include/javascript/quicksearch.js'),
// array('file'=>'include/ECM/EcmPreviewPDF/EcmPreviewPDF.js'),
array(
'file' => 'modules/EcmProducts/AjaxSearch/AjaxSearch.js'
),
array(
'file' => 'modules/EcmProducts/javascript/formloader.js'
),
array(
'file' => 'modules/EcmProducts/javascript/MyTable.js'
),
array(
'file' => 'modules/EcmProducts/javascript/EcmProduct.js'
),
// array('file'=>'modules/EcmQuotes/CreateItem.js'),
// array('file'=>'modules/EcmProducts/mintajax.js'),
// array('file'=>'modules/EcmProducts/helper.js'),
array(
'file' => 'modules/EcmProducts/Categories.js'
),
array(
'file' => 'modules/EcmProducts/Prices.js'
),
array(
'file' => 'modules/EcmProducts/paramsMT.js'
),
array(
'file' => 'modules/EcmProducts/javascript/ProductionTables.js'
),
array(
'file' => 'modules/EcmProducts/javascript/ProductionCopyElements.js'
)
)
),
'panels' => array(
'LBL_PRODUCT_INFORMATION' => array(
array(
'name',
'assigned_user_name'
),
array(
array(
'name' => 'code',
'customCode' => '<input name="code" id="code" value="{$fields.code.value}" onBlur="checkCode(document.getElementById(\'code\').value);">
<br><a href="#" onclick="searchCode(document.getElementById(\'code\').value);">{$MOD.LBL_SEARCH_CODE}</a>
<br><a href="#" onclick="freeCodes(document.getElementById(\'code\').value);">{$MOD.LBL_FREE_CODES}</a>'
),
'product_active'
),
array(
array(
'name' => 'ean',
'label' => 'LBL_EAN',
'customCode' => '<input name="ean" id="ean" value="{$EAN}">
<input type="button" class="button" onClick="generateEAN();" value="{$MOD.LBL_GENERATE_EAN}"/>
<input type="hidden" name="newEan" id="newEan" value="0"/><input type="hidden" name="website_update" id="website_update" value="1"/>
'
),
array(
'name' => 'ean2',
'label' => 'LBL_EAN2',
'customCode' => '<input name="ean2" id="ean2" value="{$EAN2}">
<input type="button" class="button" onClick="generateEAN2(); alert(document.getElementById(\'newEan2\').value)" value="{$MOD.LBL_GENERATE_EAN}"/>
<input type="hidden" name="newEan2" id="newEan2" value="0"/>
'
)
),
// array('product_category_name','product_subcategory_name'),
/*
* array(
* array(
* 'name'=>'models',
* 'label'=>'Models',
* 'customCode'=>'{$SM}',
* ),
* 'product_line_name'
* ),
*/
// array('sales_start_date','sales_end_date'),
// array('manufacturer_name','parent_name'),
// array('contact_name','website'),
array(
'vendor_name',
'part_no'
),
array(
'vendor_part_no',
'serial_no'
),
array(
'production',
'status'
),
array(
'group_ks',
'mainproduct_name'
),
array(
'active',
'is_mainproduct'
),
array(
'group_name',
// 'brand',
),
/*
array (
'product_amount',
'product_type',
),
*/
),
'LBL_PRICING_INFORMATION' => array(
array(
array(
'label' => 'LBL_EXCHANGE_RATE_NAME',
'customCode' => '<select tabindex="e" id="exchange_rate_id" name="exchange_rate_id">{$EXCHANGE_RATE_ID}</select>'
),
'custom_duty_rate'
),
array(
array(
'label' => 'LBL_TAX_CLASS_NAME',
'customCode' => '<select tabindex="v" id="vat_id" name="vat_id">{$VAT_ID}</select>'
),
'commission_rate'
),
array(
'purchase_price',
'srp_price'
),
array(
'selling_price',
'srp_price_eur'
),
array(
'fob_price',
'srp_promo_price'
)
),
'LBL_STOCK_INFORMATION' => array(
array(
'ems_ordered',
'qty_per_unit'
),
array(
'qty_in_stock',
'reorder_level'
),
array(
'',
'qty_in_demand'
),
array(
'lead_time'
)
),
'LBL_WWW_PANEL' => array(
array(
'www_available',
'www_popular'
),
array(
'www_price_pln',
'www_price_eur'
),
array(
'www_state',
'www_manual_update'
),
array(
'www_state_desc_pl',
'www_state_desc_en'
)
),
'LBL_DRIVERS_IMAGES' => array(
array(
array(
'label' => 'LBL_PRODUCT_PICTURE',
'customCode' => '<input name="product_picture" type="file" maxlength="255" value="" />{$PRODUCT_PICTURE_UPLOAD}'
),
array(
'label' => 'LBL_PACKING_FRONT_PICTURE',
'customCode' => '<input name="packing_front_picture" type="file" maxlength="255" value="" />{$PACKING_FRONT_PICTURE_UPLOAD}'
)
),
array(
array(
'label' => 'Usuń zdjęcie',
'customCode' => '<input name="delete_product_picture" type="checkbox" maxlength="255" value="1" />'
),
array(
'label' => 'Usuń zdjęcie',
'customCode' => '<input name="delete_packing_front_picture" type="checkbox" maxlength="255" value="1" />'
)
),
array(
array(
'label' => 'LBL_DRIVER_1',
'customCode' => '<input name="driver_1" type="file" maxlength="255" value="" />{$DRIVER_1_UPLOAD}'
),
array(
'label' => 'LBL_DRIVER_2',
'customCode' => '<input name="driver_2" type="file" maxlength="255" value="" />{$DRIVER_2_UPLOAD}'
)
)
),
'LBL_LOGISTIC_INFORMATION' => array(
array(
'moq',
array(
'label' => 'LBL_CARTON_DIMENSIONS_1',
'customCode' => '<input name="carton_dimensions_1" size="3" maxlength="25" type="text" value="{$CARTON_DIMENSIONS_1}" /> x
<input name="carton_dimensions_2" size="3" maxlength="25" type="text" value="{$CARTON_DIMENSIONS_2}" /> x
<input name="carton_dimensions_3" size="3" maxlength="25" type="text" value="{$CARTON_DIMENSIONS_3}" />'
)
),
array(
array(
'label' => 'LBL_FOB_BASIS_NAME',
'customCode' => '<select id="fob_basis_id" name="fob_basis_id">{$FOB_BASIS_ID}</select>'
),
'carton_netto_weight'
),
array(
'delivery_time_fob',
'carton_brutto_weight'
),
array(
'pieces_per_carton',
'carton_volume_meter'
),
array(
'product_netto_weight',
'unit_id'
),
array(
'product_brutto_weight',
'country_of_origin'
),
array(
array(
'label' => 'LBL_PACKING_TYPE_NAME',
'customCode' => '<select id="packing_type_id" name="packing_type_id">{$PACKING_TYPE_ID}</select>'
),
'certificate_of_origin'
),
array(
array(
'label' => 'LBL_PACKING_DIMENSIONS_1',
'customCode' => '<input name="packing_dimensions_1" size="3" maxlength="25" type="text" value="{$PACKING_DIMENSIONS_1}" /> x
<input name="packing_dimensions_2" size="3" maxlength="25" type="text" value="{$PACKING_DIMENSIONS_2}" /> x
<input name="packing_dimensions_3" size="3" maxlength="25" type="text" value="{$PACKING_DIMENSIONS_3}" />'
),
'form_a'
),
array(
'rma'
),
array(
'boxes_per_layer',
'number_of_layers'
),
array(
'boxes_per_palette',
'pieces_per_palette'
),
array(
'palette_weight_brutto',
''
)
),
'LBL_LOCALIZED_INFORMATION' => array(
array(
array(
'hideLabel' => true,
'customCode' => '
<script>
{literal}
function select_lang(value)
{
document.getElementById("remarks_pl").style.display="none";
document.getElementById("short_description_pl").style.display="none";
document.getElementById("long_description_pl").style.display="none";
document.getElementById("price_pl").style.display="none";
document.getElementById("remarks_en").style.display="none";
document.getElementById("short_description_en").style.display="none";
document.getElementById("long_description_en").style.display="none";
document.getElementById("price_en").style.display="none";
document.getElementById("remarks_de").style.display="none";
document.getElementById("short_description_de").style.display="none";
document.getElementById("long_description_de").style.display="none";
document.getElementById("price_de").style.display="none";
document.getElementById("remarks_fr").style.display="none";
document.getElementById("short_description_fr").style.display="none";
document.getElementById("long_description_fr").style.display="none";
document.getElementById("price_fr").style.display="none";
document.getElementById("remarks_it").style.display="none";
document.getElementById("short_description_it").style.display="none";
document.getElementById("long_description_it").style.display="none";
document.getElementById("price_it").style.display="none";
document.getElementById("remarks_es").style.display="none";
document.getElementById("short_description_es").style.display="none";
document.getElementById("long_description_es").style.display="none";
document.getElementById("price_es").style.display="none";
document.getElementById("remarks_"+value).style.display="block";
document.getElementById("short_description_"+value).style.display="block";
document.getElementById("long_description_"+value).style.display="block";
document.getElementById("price_"+value).style.display="block";
}
{/literal}
</script>
<select name="slang" id="slang" onchange="select_lang(this.value);">
<option value="pl">pl</option>
<option value="en">en</option>
<option value="de">de</option>
<option value="fr">fr</option>
<option value="it">it</option>
<option value="es">es</option>
</select>'
)
),
array(
array(
''
),
array(
'label' => 'LBL_REMARKS',
'customCode' => '
<input name="remarks_pl" type="text" id="remarks_pl" value="{$REMARKS_pl}" />
<input style="display:none;" name="remarks_en" type="text" id="remarks_en" value="{$REMARKS_en}" />
<input style="display:none;" name="remarks_de" type="text" id="remarks_de" value="{$REMARKS_de}" />
<input style="display:none;" name="remarks_fr" type="text" id="remarks_fr" value="{$REMARKS_fr}" />
<input style="display:none;" name="remarks_it" type="text" id="remarks_it" value="{$REMARKS_it}" />
<input style="display:none;" name="remarks_es" type="text" id="remarks_es" value="{$REMARKS_es}" />'
)
),
array(
array(
'label' => 'LBL_SHORT_DESCRIPTION',
'customCode' => '
<textarea name="short_description_pl" type="text" id="short_description_pl">{$SHORT_DESCRIPTION_pl}</textarea>
<textarea style="display:none;" name="short_description_en" type="text" id="short_description_en">{$SHORT_DESCRIPTION_en}</textarea>
<textarea style="display:none;" name="short_description_de" type="text" id="short_description_de">{$SHORT_DESCRIPTION_de}</textarea>
<textarea style="display:none;" name="short_description_fr" type="text" id="short_description_fr">{$SHORT_DESCRIPTION_fr}</textarea>
<textarea style="display:none;" name="short_description_it" type="text" id="short_description_it">{$SHORT_DESCRIPTION_it}</textarea>
<textarea style="display:none;" name="short_description_es" type="text" id="short_description_es">{$SHORT_DESCRIPTION_es}</textarea>'
),
array(
'label' => 'LBL_LONG_DESCRIPTION',
'customCode' => '
<textarea name="long_description_pl" cols="80" rows="20" type="text" id="long_description_pl">{$LONG_DESCRIPTION_pl}</textarea>
<textarea cols="80" rows="20" style="display:none;" name="long_description_en" type="text" id="long_description_en">{$LONG_DESCRIPTION_en}</textarea>
<textarea cols="80" rows="20" style="display:none;" name="long_description_de" type="text" id="long_description_de">{$LONG_DESCRIPTION_de}</textarea>
<textarea cols="80" rows="20" style="display:none;" name="long_description_fr" type="text" id="long_description_fr">{$LONG_DESCRIPTION_fr}</textarea>
<textarea cols="80" rows="20" style="display:none;" name="long_description_it" type="text" id="long_description_it">{$LONG_DESCRIPTION_it}</textarea>
<textarea cols="80" rows="20" style="display:none;" name="long_description_es" type="text" id="long_description_es">{$LONG_DESCRIPTION_es}</textarea>'
)
),
array(
array(
'label' => 'LBL_PRICE',
'customCode' => '
<input name="price_pl" type="text" id="price_pl" value="{$PRICE_pl}" />
<input style="display:none;" name="price_en" type="text" id="price_en" value="{$PRICE_en}" />
<input style="display:none;" name="price_de" type="text" id="price_de" value="{$PRICE_de}" />
<input style="display:none;" name="price_fr" type="text" id="price_fr" value="{$PRICE_fr}" />
<input style="display:none;" name="price_it" type="text" id="price_it" value="{$PRICE_it}" />
<input style="display:none;" name="price_es" type="text" id="price_es" value="{$PRICE_es}" />'
)
)
),
'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="80%">{$MOD.LBL_CATEGORY_NAME}</td>
<td width="20%"></td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div><br>'
)
),
array(
'part_no',
'vendor_part_no',
),
),
'LBL_PANEL_PRICES' => 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: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="itemsTableDIV">
<table class="positions" style="width:100%;" id="itemsTable4">
<thead id="head">
<tr id="tr">
<td width="70%">{$MOD.LBL_PRICE_NAME}</td>
<td width="30%">{$MOD.LBL_PRICE_VALUE}</td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div><br>'
)
)
),
'LBL_PRODUCTION_PANEL' => array(
array(
array(
'name' => 'production_panel',
'allCols' => true,
'hideLabel' => true,
'customCode' => '{$MOD.LBL_COMPONENTS}<br><div id="componentsTable"></div><br><br>{$MOD.LBL_ACTIONS}<div id="actionsTable"></div>
<br><br><div style="width: 17%;" id="copyProduct"></div><div style="width: 17%" id="copyButtons"></div>'
)
)
),
)
);

View File

@@ -0,0 +1,82 @@
<?php
$listViewDefs ['EcmProducts'] =
array (
'STAN' =>
array (
'width' => '1%',
'default' => true,
'sortable' => false,
'label' => 'Aktualny',
),
'CODE' =>
array (
'width' => '1%',
'default' => true,
'label' => 'LBL_PRODUCT_INDEX',
),
'NAME' =>
array (
'width' => '10%',
'label' => 'Nazwa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;',
'default' => true,
'link' => true,
),
'PRODUCT_CATEGORY_NAME' =>
array (
'width' => '10%',
'label' => 'LBL_PRODUCT_CATEGORY',
'module' => 'EcmProductCategories',
'id' => 'PRODUC_CATEGORY_ID',
'default' => true,
),
'GROUP_KS' =>
array (
'width' => '50%',
'label' => 'LBL_GROUP_KS',
'default' => true,
),
'STOCK_QTY' =>
array (
'width' => '20%',
'sortable' => false,
'label' => 'LBL_MAGAZINE',
'align' => 'right',
'default' => true,
),
'ORDERED' =>
array (
'width' => '1%',
'default' => true,
'sortable' => true,
'label' => 'Ilość',
),
'PIECES_PER_CARTON' =>
array (
'width' => '1%',
'default' => true,
'sortable' => false,
'label' => 'Ppc',
),
'SALE_QTY' =>
array (
'width' => '10%',
'default' => true,
'sortable' => false,
'label' => 'Średnia cena sprzedaży',
),
'SALE_AVG_PRICE' =>
array (
'width' => '10%',
'default' => true,
'sortable' => false,
'label' => 'Średnia cena zakupu',
),
'EDIT_BTN' =>
array (
'width' => '1%',
'default' => true,
'sortable' => false,
'label' => '&nbsp;',
),
);
?>

View File

@@ -0,0 +1,556 @@
<?php
$viewdefs ['EcmProducts'] =
array (
'QuickCreate' =>
array (
'templateMeta' =>
array (
'form' =>
array (
'buttons' =>
array (
0 => 'SAVE',
1 => 'CANCEL',
),
'enctype' => 'multipart/form-data',
'hidden' =>
array (
0 => '<input type="hidden" name="position_list" id="position_list" value=\'{$POSITION_LIST}\'>',
),
),
'maxColumns' => '2',
'widths' =>
array (
0 =>
array (
'label' => '10',
'field' => '30',
),
1 =>
array (
'label' => '10',
'field' => '30',
),
),
'includes' =>
array (
0 =>
array (
'file' => 'include/JSON.js',
),
1 =>
array (
'file' => 'modules/EcmProducts/AjaxSearch/AjaxSearch.js',
),
2 =>
array (
'file' => 'modules/EcmProducts/javascript/formloader.js',
),
3 =>
array (
'file' => 'modules/EcmProducts/javascript/MyTable.js',
),
4 =>
array (
'file' => 'modules/EcmProducts/javascript/EcmProduct.js',
),
5 =>
array (
'file' => 'modules/EcmProducts/Categories.js',
),
6 =>
array (
'file' => 'modules/EcmProducts/Prices.js',
),
7 =>
array (
'file' => 'modules/EcmProducts/paramsMT.js',
),
8 =>
array (
'file' => 'modules/EcmProducts/javascript/ProductionTables.js',
),
9 =>
array (
'file' => 'modules/EcmProducts/javascript/ProductionCopyElements.js',
),
),
),
'panels' =>
array (
'LBL_PRODUCT_INFORMATION' =>
array (
0 =>
array (
0 => 'name',
1 => 'assigned_user_name',
),
1 =>
array (
0 =>
array (
'name' => 'code',
'customCode' => '<input name="code" id="code" value="{$fields.code.value}" onBlur="checkCode(document.getElementById(\'code\').value);">
<br><a href="#" onclick="searchCode(document.getElementById(\'code\').value);">{$MOD.LBL_SEARCH_CODE}</a>
<br><a href="#" onclick="freeCodes(document.getElementById(\'code\').value);">{$MOD.LBL_FREE_CODES}</a>',
),
1 => 'product_active',
),
2 =>
array (
0 =>
array (
'name' => 'ean',
'label' => 'LBL_EAN',
'customCode' => '<input name="ean" id="ean" value="{$EAN}">
<input type="button" class="button" onClick="generateEAN();" value="{$MOD.LBL_GENERATE_EAN}"/>
<input type="hidden" name="newEan" id="newEan" value="0"/><input type="hidden" name="website_update" id="website_update" value="1"/>
',
),
1 =>
array (
'name' => 'ean2',
'label' => 'LBL_EAN2',
'customCode' => '<input name="ean2" id="ean2" value="{$EAN2}">
<input type="button" class="button" onClick="generateEAN2(); alert(document.getElementById(\'newEan2\').value)" value="{$MOD.LBL_GENERATE_EAN}"/>
<input type="hidden" name="newEan2" id="newEan2" value="0"/>
',
),
),
3 =>
array (
0 => 'vendor_name',
1 => 'part_no',
),
4 =>
array (
0 => 'vendor_part_no',
1 => 'serial_no',
),
5 =>
array (
0 => 'production',
1 => 'status',
),
6 =>
array (
0 => 'group_ks',
1 => 'mainproduct_name',
),
7 =>
array (
0 => 'active',
1 => 'is_mainproduct',
),
8 =>
array (
0 => 'group_name',
1 => 'brand',
),
9 =>
array (
0 => 'product_amount',
1 => 'product_type',
),
),
'LBL_PRICING_INFORMATION' =>
array (
0 =>
array (
0 =>
array (
'label' => 'LBL_EXCHANGE_RATE_NAME',
'customCode' => '<select tabindex="e" id="exchange_rate_id" name="exchange_rate_id">{$EXCHANGE_RATE_ID}</select>',
),
1 => 'custom_duty_rate',
),
1 =>
array (
0 =>
array (
'label' => 'LBL_TAX_CLASS_NAME',
'customCode' => '<select tabindex="v" id="vat_id" name="vat_id">{$VAT_ID}</select>',
),
1 => 'commission_rate',
),
2 =>
array (
0 => 'purchase_price',
1 => 'srp_price',
),
3 =>
array (
0 => 'selling_price',
1 => 'srp_price_eur',
),
4 =>
array (
0 => 'fob_price',
1 => 'srp_promo_price',
),
),
'LBL_STOCK_INFORMATION' =>
array (
0 =>
array (
0 => 'ems_ordered',
1 => 'qty_per_unit',
),
1 =>
array (
0 => 'qty_in_stock',
1 => 'reorder_level',
),
2 =>
array (
0 => '',
1 => 'qty_in_demand',
),
3 =>
array (
0 => 'lead_time',
),
),
'LBL_WWW_PANEL' =>
array (
0 =>
array (
0 => 'www_available',
1 => 'www_popular',
),
1 =>
array (
0 => 'www_price_pln',
1 => 'www_price_eur',
),
2 =>
array (
0 => 'www_state',
1 => 'www_manual_update',
),
3 =>
array (
0 => 'www_state_desc_pl',
1 => 'www_state_desc_en',
),
),
'LBL_DRIVERS_IMAGES' =>
array (
0 =>
array (
0 =>
array (
'label' => 'LBL_PRODUCT_PICTURE',
'customCode' => '<input name="product_picture" type="file" maxlength="255" value="" />{$PRODUCT_PICTURE_UPLOAD}',
),
1 =>
array (
'label' => 'LBL_PACKING_FRONT_PICTURE',
'customCode' => '<input name="packing_front_picture" type="file" maxlength="255" value="" />{$PACKING_FRONT_PICTURE_UPLOAD}',
),
),
1 =>
array (
0 =>
array (
'label' => 'Usuń zdjęcie',
'customCode' => '<input name="delete_product_picture" type="checkbox" maxlength="255" value="1" />',
),
1 =>
array (
'label' => 'Usuń zdjęcie',
'customCode' => '<input name="delete_packing_front_picture" type="checkbox" maxlength="255" value="1" />',
),
),
2 =>
array (
0 =>
array (
'label' => 'LBL_DRIVER_1',
'customCode' => '<input name="driver_1" type="file" maxlength="255" value="" />{$DRIVER_1_UPLOAD}',
),
1 =>
array (
'label' => 'LBL_DRIVER_2',
'customCode' => '<input name="driver_2" type="file" maxlength="255" value="" />{$DRIVER_2_UPLOAD}',
),
),
),
'LBL_LOGISTIC_INFORMATION' =>
array (
0 =>
array (
0 => 'moq',
1 =>
array (
'label' => 'LBL_CARTON_DIMENSIONS_1',
'customCode' => '<input name="carton_dimensions_1" size="3" maxlength="25" type="text" value="{$CARTON_DIMENSIONS_1}" /> x
<input name="carton_dimensions_2" size="3" maxlength="25" type="text" value="{$CARTON_DIMENSIONS_2}" /> x
<input name="carton_dimensions_3" size="3" maxlength="25" type="text" value="{$CARTON_DIMENSIONS_3}" />',
),
),
1 =>
array (
0 =>
array (
'label' => 'LBL_FOB_BASIS_NAME',
'customCode' => '<select id="fob_basis_id" name="fob_basis_id">{$FOB_BASIS_ID}</select>',
),
1 => 'carton_netto_weight',
),
2 =>
array (
0 => 'delivery_time_fob',
1 => 'carton_brutto_weight',
),
3 =>
array (
0 => 'pieces_per_carton',
1 => 'carton_volume_meter',
),
4 =>
array (
0 => 'product_netto_weight',
1 => 'unit_id',
),
5 =>
array (
0 => 'product_brutto_weight',
1 => 'country_of_origin',
),
6 =>
array (
0 =>
array (
'label' => 'LBL_PACKING_TYPE_NAME',
'customCode' => '<select id="packing_type_id" name="packing_type_id">{$PACKING_TYPE_ID}</select>',
),
1 => 'certificate_of_origin',
),
7 =>
array (
0 =>
array (
'label' => 'LBL_PACKING_DIMENSIONS_1',
'customCode' => '<input name="packing_dimensions_1" size="3" maxlength="25" type="text" value="{$PACKING_DIMENSIONS_1}" /> x
<input name="packing_dimensions_2" size="3" maxlength="25" type="text" value="{$PACKING_DIMENSIONS_2}" /> x
<input name="packing_dimensions_3" size="3" maxlength="25" type="text" value="{$PACKING_DIMENSIONS_3}" />',
),
1 => 'form_a',
),
8 =>
array (
0 => 'rma',
),
9 =>
array (
0 => 'boxes_per_layer',
1 => 'number_of_layers',
),
10 =>
array (
0 => 'boxes_per_palette',
1 => 'pieces_per_palette',
),
11 =>
array (
0 => 'palette_weight_brutto',
1 => '',
),
),
'LBL_LOCALIZED_INFORMATION' =>
array (
0 =>
array (
0 =>
array (
'hideLabel' => true,
'customCode' => '
<script>
{literal}
function select_lang(value)
{
document.getElementById("remarks_pl").style.display="none";
document.getElementById("short_description_pl").style.display="none";
document.getElementById("long_description_pl").style.display="none";
document.getElementById("price_pl").style.display="none";
document.getElementById("remarks_en").style.display="none";
document.getElementById("short_description_en").style.display="none";
document.getElementById("long_description_en").style.display="none";
document.getElementById("price_en").style.display="none";
document.getElementById("remarks_de").style.display="none";
document.getElementById("short_description_de").style.display="none";
document.getElementById("long_description_de").style.display="none";
document.getElementById("price_de").style.display="none";
document.getElementById("remarks_fr").style.display="none";
document.getElementById("short_description_fr").style.display="none";
document.getElementById("long_description_fr").style.display="none";
document.getElementById("price_fr").style.display="none";
document.getElementById("remarks_it").style.display="none";
document.getElementById("short_description_it").style.display="none";
document.getElementById("long_description_it").style.display="none";
document.getElementById("price_it").style.display="none";
document.getElementById("remarks_es").style.display="none";
document.getElementById("short_description_es").style.display="none";
document.getElementById("long_description_es").style.display="none";
document.getElementById("price_es").style.display="none";
document.getElementById("remarks_"+value).style.display="block";
document.getElementById("short_description_"+value).style.display="block";
document.getElementById("long_description_"+value).style.display="block";
document.getElementById("price_"+value).style.display="block";
}
{/literal}
</script>
<select name="slang" id="slang" onchange="select_lang(this.value);">
<option value="pl">pl</option>
<option value="en">en</option>
<option value="de">de</option>
<option value="fr">fr</option>
<option value="it">it</option>
<option value="es">es</option>
</select>',
),
),
1 =>
array (
0 =>
array (
0 => '',
),
1 =>
array (
'label' => 'LBL_REMARKS',
'customCode' => '
<input name="remarks_pl" type="text" id="remarks_pl" value="{$REMARKS_pl}" />
<input style="display:none;" name="remarks_en" type="text" id="remarks_en" value="{$REMARKS_en}" />
<input style="display:none;" name="remarks_de" type="text" id="remarks_de" value="{$REMARKS_de}" />
<input style="display:none;" name="remarks_fr" type="text" id="remarks_fr" value="{$REMARKS_fr}" />
<input style="display:none;" name="remarks_it" type="text" id="remarks_it" value="{$REMARKS_it}" />
<input style="display:none;" name="remarks_es" type="text" id="remarks_es" value="{$REMARKS_es}" />',
),
),
2 =>
array (
0 =>
array (
'label' => 'LBL_SHORT_DESCRIPTION',
'customCode' => '
<textarea name="short_description_pl" type="text" id="short_description_pl">{$SHORT_DESCRIPTION_pl}</textarea>
<textarea style="display:none;" name="short_description_en" type="text" id="short_description_en">{$SHORT_DESCRIPTION_en}</textarea>
<textarea style="display:none;" name="short_description_de" type="text" id="short_description_de">{$SHORT_DESCRIPTION_de}</textarea>
<textarea style="display:none;" name="short_description_fr" type="text" id="short_description_fr">{$SHORT_DESCRIPTION_fr}</textarea>
<textarea style="display:none;" name="short_description_it" type="text" id="short_description_it">{$SHORT_DESCRIPTION_it}</textarea>
<textarea style="display:none;" name="short_description_es" type="text" id="short_description_es">{$SHORT_DESCRIPTION_es}</textarea>',
),
1 =>
array (
'label' => 'LBL_LONG_DESCRIPTION',
'customCode' => '
<textarea name="long_description_pl" cols="80" rows="20" type="text" id="long_description_pl">{$LONG_DESCRIPTION_pl}</textarea>
<textarea cols="80" rows="20" style="display:none;" name="long_description_en" type="text" id="long_description_en">{$LONG_DESCRIPTION_en}</textarea>
<textarea cols="80" rows="20" style="display:none;" name="long_description_de" type="text" id="long_description_de">{$LONG_DESCRIPTION_de}</textarea>
<textarea cols="80" rows="20" style="display:none;" name="long_description_fr" type="text" id="long_description_fr">{$LONG_DESCRIPTION_fr}</textarea>
<textarea cols="80" rows="20" style="display:none;" name="long_description_it" type="text" id="long_description_it">{$LONG_DESCRIPTION_it}</textarea>
<textarea cols="80" rows="20" style="display:none;" name="long_description_es" type="text" id="long_description_es">{$LONG_DESCRIPTION_es}</textarea>',
),
),
3 =>
array (
0 =>
array (
'label' => 'LBL_PRICE',
'customCode' => '
<input name="price_pl" type="text" id="price_pl" value="{$PRICE_pl}" />
<input style="display:none;" name="price_en" type="text" id="price_en" value="{$PRICE_en}" />
<input style="display:none;" name="price_de" type="text" id="price_de" value="{$PRICE_de}" />
<input style="display:none;" name="price_fr" type="text" id="price_fr" value="{$PRICE_fr}" />
<input style="display:none;" name="price_it" type="text" id="price_it" value="{$PRICE_it}" />
<input style="display:none;" name="price_es" type="text" id="price_es" value="{$PRICE_es}" />',
),
),
),
'LBL_PANEL_CATEGORIES' =>
array (
0 =>
array (
0 =>
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="80%">{$MOD.LBL_CATEGORY_NAME}</td>
<td width="20%"></td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div><br>',
),
),
array(
'product_size',
'product_kind',
) ,
array(
'product_brand',
) ,
),
'LBL_PANEL_PRICES' =>
array (
0 =>
array (
0 =>
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: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="itemsTableDIV">
<table class="positions" style="width:100%;" id="itemsTable4">
<thead id="head">
<tr id="tr">
<td width="70%">{$MOD.LBL_PRICE_NAME}</td>
<td width="30%">{$MOD.LBL_PRICE_VALUE}</td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div><br>',
),
),
),
'LBL_PRODUCTION_PANEL' =>
array (
0 =>
array (
0 =>
array (
'name' => 'production_panel',
'allCols' => true,
'hideLabel' => true,
'customCode' => '{$MOD.LBL_COMPONENTS}<br><div id="componentsTable"></div><br><br>{$MOD.LBL_ACTIONS}<div id="actionsTable"></div>
<br><br><div style="width: 17%;" id="copyProduct"></div><div style="width: 17%" id="copyButtons"></div>',
),
),
),
),
),
);
?>

View File

@@ -0,0 +1,92 @@
<?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".
********************************************************************************/
/*
* Created on May 29, 2007
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
$searchdefs['EcmProducts'] = array(
'templateMeta' => array(
'maxColumns' => '3',
'widths' => array('label' => '10', 'field' => '30'),
),
'layout' => array(
'basic_search' => array(
'name',
'code',
//'flag',
//'stock_name',
array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'),
//'manufacturer_name',
'active',
'group_name',
'product_category_name',
//'product_subcategory_name',
//'purchase_price',
'ean',
'ean2',
),
'advanced_search' => array(
'name',
'code',
array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
'manufacturer_name',
'active',
'product_category_name',
'product_subcategory_name',
'product_active',
'group_name',
'flag',
'commission_rate',
'qty_per_unit',
'purchase_price',
'sales_start_date',
'sales_end_date',
'status',
'add_status',
'end_of_line',
'production',
'to_order',
'ean',
'ean2',
'product_size',
'product_kind',
'product_brand',
),
),
);
?>

View File

@@ -0,0 +1,26 @@
<?php
// created: 2013-12-31 13:44:02
$subpanel_layout['list_fields'] = array (
'document_no' =>
array (
'type' => 'varchar',
'vname' => 'Numer',
'width' => '6%',
//'module' => 'EcmProducts',
//'widget_class' => 'SubPanelDetailViewLink',
'default' => true,
),
'name' =>
array (
'type' => 'varchar',
'vname' => 'LBL_NAME',
'width' => '10%',
'default' => true,
),
'date_entered' => array (
'type' => 'varchar',
'vname' => 'Data Dokumentu',
'width' => '15%',
),
);
?>

View File

@@ -0,0 +1,6 @@
<?php
// created: 2012-02-27 11:35:57
$mod_strings = array (
'LBL_TO_VATID' => 'NIP',
);
?>

View File

@@ -0,0 +1,417 @@
<?php
$viewdefs ['EcmPurchaseOrders'] =
array (
'QuickCreate' =>
array (
'templateMeta' =>
array (
'form' =>
array (
'enctype' => 'multipart/form-data',
'buttons' =>
array (
0 =>
array (
'customCode' => '<input type="submit" name="save" class="button" value="Zapisz" onclick="saveItems(true);this.form.action.value=\'Save\'" />',
),
1 => 'CANCEL',
),
'hidden' =>
array (
0 => '<input type="hidden" name="position_list" id="position_list" value=\'{$POSITION_LIST}\'>',
1 => '<input type="hidden" name="email_id" id="email_id" value=\'\'>',
2 => '<input type="hidden" name="parent_type" id="parent_type" value="Accounts">',
),
),
'maxColumns' => '2',
'widths' =>
array (
0 =>
array (
'label' => '10',
'field' => '30',
),
1 =>
array (
'label' => '10',
'field' => '30',
),
),
'includes' =>
array (
0 =>
array (
'file' => 'include/JSON.js',
),
1 =>
array (
'file' => 'include/javascript/quicksearch.js',
),
2 =>
array (
'file' => 'include/ECM/EcmPreviewPDF/EcmPreviewPDF.js',
),
3 =>
array (
'file' => 'modules/EcmPurchaseOrders/AjaxSearch/AjaxSearch.js',
),
4 =>
array (
'file' => 'modules/EcmPurchaseOrders/formloader.js',
),
5 =>
array (
'file' => 'modules/EcmPurchaseOrders/MyTable.js',
),
6 =>
array (
'file' => 'modules/EcmPurchaseOrders/EcmPurchaseOrders.js',
),
7 =>
array (
'file' => 'modules/EcmPurchaseOrders/CreateItem.js',
),
8 =>
array (
'file' => 'modules/EcmProducts/mintajax.js',
),
9 =>
array (
'file' => 'modules/EcmProducts/helper.js',
),
),
),
'panels' =>
array (
'LBL_DETAILS_TAB' =>
array (
0 =>
array (
0 =>
array (
'type' => 'tab',
'active' => true,
),
),
1 =>
array (
0 =>
array (
'name' => 'document_no',
'tabIndex' => '1',
'customCode' => '<div id="tst" style="display:none;"></div><input readonly="readonly" type="text" name="document_no" id="document_no" value=\'{$fields.document_no.value}\'><input type="hidden" name="number" id="number" value=\'{$fields.number.value}\'>',
),
1 =>
array (
'name' => 'assigned_user_name',
'tabIndex' => '1',
),
),
2 =>
array (
0 =>
array (
'name' => 'parent_name',
'tabIndex' => '1',
),
1 => 'ecmpaymentcondition_name',
),
3 =>
array (
0 => 'name',
1 => 'ecmdeliverycondition_name',
),
4 =>
array (
0 => 'status',
1 =>
array (
'label' => 'LBL_TEMPLATE_NAME',
'tabIndex' => '1',
'customCode' => '<select tabindex="1" id="template_id" name="template_id" onChange="document.getElementById(\'template_name\').value=this.options[this.selectedIndex].text;">{$DOCUMENT_TEMPLATES_OPTIONS}</select><input type="hidden" id="template_name" name="template_name" value="{$fields.template_name.value}">',
),
),
5 =>
array (
0 =>
array (
'name' => 'register_date',
'tabIndex' => '1',
'type' => 'datetime',
'displayParams' =>
array (
'showFormats' => true,
),
),
1 =>
array (
'name' => 'validtill_date',
'tabIndex' => '1',
'type' => 'datetime',
'displayParams' =>
array (
'showFormats' => true,
),
),
),
6 =>
array (
0 =>
array (
'name' => 'currency_id',
'label' => 'LBL_CURRENCY',
),
),
7 =>
array (
0 =>
array (
'allCols' => true,
'hideLabel' => true,
'customCode' => '<div class="tabForm" style="border-top:none;width:100%;height:1px;padding:0px;align:center;"></div><h4>{$MOD.LBL_TO_INFORMATIONS}</h4>',
),
),
8 =>
array (
0 =>
array (
'name' => 'parent_name_copy',
'tabIndex' => '1',
'customCode' => '<input type="text" name="parent_name_copy" id="parent_name_copy" value="{$fields.parent_name.value}" readOnly="readonly" size="30" />',
),
1 => 'ecmlanguage',
),
9 =>
array (
0 => 'parent_contact_name',
1 => 'to_vatid',
),
10 =>
array (
0 => 'parent_contact_title',
1 =>
array (
'name' => 'to_is_vat_free',
'tabIndex' => '1',
'customCode' => '<input tabindex="1" type="checkbox" id="to_is_vat_free" name="to_is_vat_free" value="{$fields.to_is_vat_free.value}" {if $fields.to_is_vat_free.value == 1}checked{/if}>',
),
),
11 =>
array (
0 =>
array (
'name' => 'parent_address_street',
'tabIndex' => '1',
'customCode' => '<textarea tabindex="1" id="parent_address_street" name="parent_address_street" rows="2" cols="30" maxlength="150" >{$fields.parent_address_street.value}</textarea>',
),
1 => 'show_primary_params',
),
12 =>
array (
0 =>
array (
'name' => 'parent_address_city',
'tabIndex' => '1',
'customCode' => '<input maxlength="8" type="text" name="parent_address_postalcode" id="parent_address_postalcode" value="{$fields.parent_address_postalcode.value}" style="vertical-align:top;width:80px;" />&nbsp;&nbsp;<input type="text" name="parent_address_city" id="parent_address_city" value="{$fields.parent_address_city.value}" style="vertical-align:top;width:150px;" />',
),
1 => 'show_advanced_params',
),
13 =>
array (
0 => 'parent_address_country',
1 => '',
),
),
'LBL_ITEMS_TAB' =>
array (
0 =>
array (
0 =>
array (
'type' => 'tab',
),
),
1 =>
array (
0 =>
array (
'allCols' => true,
'hideLabel' => true,
'customCode' => '
<link rel="stylesheet" type="text/css" href="modules/EcmPurchaseOrders/MyTable.css" />
<link rel="stylesheet" type="text/css" href="modules/EcmPurchaseOrders/AjaxSearch/AjaxSearch.css" />
<div style="width:100%;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:100%;" id="itemsTable">
<thead id="head">
<tr id="tr">
<td width="4%">{$MOD.LBL_EDITTABLE_NO}</td>
<td width="16%">{$MOD.LBL_EDITTABLE_CODE}</td>
<td width="39%">{$MOD.LBL_EDITTABLE_NAME}</td>
<td width="16%">Termin realizacji</td>
<td width="16%">Status produktu</td>
<td width="16%">Informacja dodatkowa</td>
<td width="5%">{$MOD.LBL_EDITTABLE_QUANTITY}</td>
<td width="12%">{$MOD.LBL_EDITTABLE_PRICE}</td>
<td width="6%">{$MOD.LBL_EDITTABLE_VAT}</td>
<td width="6%">{$MOD.LBL_EDITTABLE_DISCOUNT}</td>
<td width="12%">{$MOD.LBL_EDITTABLE_TOTAL}</td>
<td width="6%">{$MOD.LBL_EDITTABLE_OPTIONS}</td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
<table width="100%"" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="55%" class="dataLabel" valign="top">
<a href="javascript: N.moveUpRow();" >{$MOD.LBL_MOVE_ROW_UP}</a> - <a href="javascript: N.moveDownRow();" >{$MOD.LBL_MOVE_ROW_DOWN}</a>
</td> <!--color:#b3b9cf;-->
<td width="40%" class="dataField" style="text-align: left;">
<br>
<table id="result_table" cellpadding="0" cellspacing="0" style="width:100%; height:100%; border: 1px solid rgb(48,192,255);">
<tr id="subtotal_tr">
<td class="positionsLabel" style="border-top:0px;">{$MOD.LBL_SUBTOTAL}</td>
<td class="positionsField" style="border-top:0px;"><input type="text" style="border:0px;font-weight:900;width:100%;text-align:right;" readonly="readonly" name="subtotal" id="subtotal" value=\'{$fields.subtotal.value}\'></td>
</tr>
<tr id="total_tr">
<td class="positionsLabel">{$MOD.LBL_TOTAL}</td>
<td class="positionsField"><input type="text" readonly="readonly" style="border:0px;font-weight:900;width:100%;text-align:right;" name="total_2" id="total_2" value=\'\'></td>
</tr>
</table>
</td>
<td width="5%" class="dataField" style="text-align: left;">&nbsp;</td>
</tr>
</table>
',
),
),
),
'LBL_TEXTS_TAB' =>
array (
0 =>
array (
0 =>
array (
'type' => 'tab',
),
),
1 =>
array (
0 =>
array (
'label' => 'LBL_HEADER_TEXT',
'customCode' => '{$MFP.footer}',
),
),
2 =>
array (
0 =>
array (
'tabIndex' => 'f',
'customCode' => '<textarea id="header_text" name="header_text" rows="5" style="width:100%;">{$fields.header_text.value}</textarea>',
),
),
3 =>
array (
0 =>
array (
'label' => 'LBL_FOOTER_TEXT',
'customCode' => '{$MFP.header}',
),
),
4 =>
array (
0 =>
array (
'tabIndex' => 'f',
'customCode' => '<textarea id="footer_text" name="footer_text" rows="5" style="width:100%;">{$fields.footer_text.value}</textarea>',
),
),
5 =>
array (
0 =>
array (
'label' => 'LBL_ADS_TEXT',
'customCode' => '{$MFP.ads}',
),
),
6 =>
array (
0 =>
array (
'tabIndex' => 'f',
'customCode' => '<textarea id="ads_text" name="ads_text" rows="5" style="width:100%;display:block !important;">{$fields.ads_text.value}</textarea>',
),
),
),
'LBL_PREVIEW_TAB' =>
array (
0 =>
array (
0 =>
array (
'type' => 'tab',
),
),
1 =>
array (
0 =>
array (
'allCols' => true,
'hideLabel' => true,
'customCode' => '<span id=\'previewPDF\' width="100%" height="100%"></span>',
),
),
),
),
),
);
?>

View File

@@ -0,0 +1,13 @@
<?php
//WARNING: The contents of this file are auto-generated
//THIS FILE IS AUTO GENERATED, DO NOT MODIFY
$mod_strings['LBL_ACCOUNTS_ECMQUOTES_FROM_ACCOUNTS_TITLE'] = 'Klienci';
//THIS FILE IS AUTO GENERATED, DO NOT MODIFY
$mod_strings['LBL_ACCOUNTS_ECMQUOTES_FROM_ACCOUNTS_TITLE'] = 'Klienci';
$mod_strings['LBL_ACCOUNTS_ECMQUOTES_1_FROM_ACCOUNTS_TITLE'] = 'Klienci';
?>

View File

@@ -0,0 +1,13 @@
<?php
//WARNING: The contents of this file are auto-generated
//THIS FILE IS AUTO GENERATED, DO NOT MODIFY
$mod_strings['LBL_ACCOUNTS_ECMQUOTES_FROM_ACCOUNTS_TITLE'] = 'Klienci';
//THIS FILE IS AUTO GENERATED, DO NOT MODIFY
$mod_strings['LBL_ACCOUNTS_ECMQUOTES_FROM_ACCOUNTS_TITLE'] = 'Klienci';
$mod_strings['LBL_ACCOUNTS_ECMQUOTES_1_FROM_ACCOUNTS_TITLE'] = 'Klienci';
?>

View File

@@ -0,0 +1,127 @@
<?php
//WARNING: The contents of this file are auto-generated
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
// require_once('modules/EcmGroupSales/Menu.php');
global $mod_strings, $current_user;
/*
if(ACLController::checkAccess('EcmQuotes', "edit", true)) $module_menu [] = Array("index.php?module=".'EcmQuotes'."&action=EditView&return_module=".'EcmQuotes'."&return_action=DetailView", $mod_strings['LNK_NEW_'.'ECMQUOTE'],"CreateEcmQuotes", 'EcmQuotes');
if(ACLController::checkAccess('EcmQuotes', 'list', true))
$module_menu [] = Array("index.php?module=".'EcmQuotes'."&action=index&return_module=".'EcmQuotes'."&return_action=DetailView", $mod_strings['LNK_'.'ECMQUOTES'.'_LIST'],"EcmQuotes", 'EcmQuotes');
*/
if(ACLController::checkAccess('EcmQuotes', "edit", true)) $module_menu [] = Array("index.php?module=".'EcmQuotes'."&action=EditView&return_module=".'EcmQuotes'."&return_action=DetailView", translate('LNK_NEW_'.'ECMQUOTE', 'EcmQuotes'),"CreateEcmQuotes", 'EcmQuotes');
if(ACLController::checkAccess('EcmQuotes', "list", true)) $module_menu [] = Array("index.php?module=EcmQuotes&action=index&return_module=EcmQuotes&return_action=DetailView", translate('LNK_ECMQUOTES_LIST','EcmQuotes'),"EcmQuotes", 'EcmQuotes');
if(ACLController::checkAccess('EcmQuotes', 'list', true) && is_admin($current_user))
$module_menu [] = Array("index.php?module=EcmQuotes&action=PDFLanguages&return_module=EcmQuotes&return_action=index", $mod_strings['LNK_ECMQUOTES_PDFLANGUAGES'], "PDFlanguages", 'EcmQuotes');
?>

View File

@@ -0,0 +1,10 @@
<?php
//WARNING: The contents of this file are auto-generated
// created: 2011-10-04 11:58:18
$dictionary['EcmQuote']['fields']['currency_id']['default']='PLN';
$dictionary['EcmQuote']['fields']['currency_id']['len']=100;
?>

View File

@@ -0,0 +1,38 @@
<?php
// created: 2013-12-18 10:28:57
$subpanel_layout['list_fields'] = array (
'status' =>
array (
'name' => 'status',
'vname' => 'LBL_STATUS',
'module' => 'EcmSales',
'width' => '5%',
'default' => true,
),
'document_no' =>
array (
'name' => 'document_no',
'vname' => 'LBL_DOCUMENT_NO',
'module' => 'EcmSales',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '15%',
'default' => true,
),
'total' =>
array (
'name' => 'total',
'vname' => 'LBL_TOTAL',
'module' => 'EcmSales',
'width' => '15%',
'default' => true,
),
'register_date' =>
array (
'name' => 'register_date',
'vname' => 'LBL_REGISTER_DATE',
'module' => 'EcmSales',
'width' => '10%',
'default' => true,
),
);
?>

View File

@@ -0,0 +1,8 @@
<?php
//WARNING: The contents of this file are auto-generated
//auto-generated file DO NOT EDIT
$layout_defs['EcmStockDocOuts']['subpanel_setup']['ecmsales']['override_subpanel_name'] = 'EcmStockDocOutdefault';
?>

View File

@@ -0,0 +1,6 @@
<?php
// created: 2013-12-18 10:28:25
$mod_strings = array (
'LBL_ECMSALES_SUBPANEL_TITLE' => 'Zamówienia Sprzedazy',
);
?>

View File

@@ -0,0 +1,212 @@
<?php
//WARNING: The contents of this file are auto-generated
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
$dictionary['EcmText'] = array (
'table' => "ecmtexts",
'comment' => 'EcmTexts',
'duplicate_merge' => true,
'unified_search' => true,
//FIELDS SECTION
'fields' => array (
//STANDARD FIELDS SECTION
'id' => array (
'name' => 'id',
'vname' => 'LBL_ID',
'type' => 'id',
'required' => true,
'reportable' => false,
'comment' => 'Unique identifier'
),
'name' => array (
'name' => 'name',
'vname' => 'LBL_NAME',
'type' => 'name',
'required' => true,
'dbType' => 'varchar',
'len' => 255,
'unified_search' => true,
'comment' => 'The short description of the record contents',
'massupdate' => true,
'merge_filter' => 'selected',
),
'date_entered' => array (
'name' => 'date_entered',
'vname' => 'LBL_DATE_ENTERED',
'type' => 'datetime',
'required' => true,
'comment' => 'Date record created'
),
'date_modified' => array (
'name' => 'date_modified',
'vname' => 'LBL_DATE_MODIFIED',
'type' => 'datetime',
'required' => true,
'comment' => 'Date record last modified'
),
'modified_user_id' => array (
'name' => 'modified_user_id',
'rname' => 'user_name',
'id_name' => 'modified_user_id',
'vname' => 'LBL_MODIFIED',
'type' => 'assigned_user_name',
'table' => 'modified_user_id_users',
'isnull' => 'false',
'dbType' => 'varchar',
'len' => 36,
'required' => true,
'reportable' => true,
'comment' => 'User who last modified record'
),
'created_by' => array (
'name' => 'created_by',
'rname' => 'user_name',
'id_name' => 'created_by',
'vname' => 'LBL_CREATED',
'type' => 'assigned_user_name',
'table' => 'created_by_users',
'isnull' => 'false',
'dbType' => 'varchar',
'len' => 36,
'comment' => 'User that created the record'
),
'created_by_link' => array (
'name' => 'created_by_link',
'type' => 'link',
'relationship' => 'ecmquotes'.'_created_by',
'vname' => 'LBL_CREATED_BY_USER',
'link_type' => 'one',
'module' => 'Users',
'bean_name' => 'User',
'source' => 'non-db',
),
'modified_user_link' => array (
'name' => 'modified_user_link',
'type' => 'link',
'relationship' => 'ecmquotes'.'_modified_user',
'vname' => 'LBL_MODIFIED_BY_USER',
'link_type' => 'one',
'module' => 'Users',
'bean_name' => 'User',
'source' => 'non-db',
),
'deleted' => array (
'name' => 'deleted',
'vname' => 'LBL_DELETED_BY',
'type' => 'bool',
'required' => true,
'reportable' => false,
'comment' => 'Record deletion indicator'
),
'bean_id' =>
array (
'name' => 'bean_id',
'vname' => 'LBL_BEAN_ID',
'dbType' => 'id',
),
'ecmlanguage' =>
array(
'name' => 'ecmlanguage',
'vname' => 'LBL_ECMLANGUAGE',
'type' => 'enum',
'options' => 'ecmlanguages_dom',
'required' => true,
'len' => 35
),
'data' => array (
'name' => 'data',
'vname' => 'LBL_DATA',
'type' => 'text',
),
//FOR SUBPANELS
),
//INDICES SECTION
'indices' => array (
array('name' => 'ecmtexts'.'pk', 'type' => 'primary', 'fields' => array('id')),
array('name' => 'idx_'.'ecmtexts'.'_name', 'type' => 'index', 'fields' => array('name'))
),
//RELATIONSHIPS SECTION
'relationships' => array (
),
//THIS FLAG ENABLES OPTIMISTIC LOCKING FOR SAVES FROM EDITVIEW
'optimistic_locking' => true,
);
?>

View File

@@ -0,0 +1,48 @@
<?php
$viewdefs ['EcmVats'] =
array (
'QuickCreate' =>
array (
'templateMeta' =>
array (
'form' =>
array (
'buttons' =>
array (
0 => 'SAVE',
1 => 'CANCEL',
),
),
'maxColumns' => '2',
'widths' =>
array (
0 =>
array (
'label' => '10',
'field' => '30',
),
1 =>
array (
'label' => '10',
'field' => '30',
),
),
),
'panels' =>
array (
'default' =>
array (
0 =>
array (
0 => 'name',
1 => 'assigned_user_name',
),
1 =>
array (
0 => 'value',
),
),
),
),
);
?>

View File

@@ -0,0 +1,12 @@
<?php
//WARNING: The contents of this file are auto-generated
$dictionary['Email']['fields']['ecmquotes'] = array (
'name' => 'ecmquotes',
'type' => 'link',
'relationship' => 'ecmquotes_emails',
'source' =>'non-db',
);
?>

View File

@@ -0,0 +1,12 @@
<?php
//WARNING: The contents of this file are auto-generated
//auto-generated file DO NOT EDIT
$layout_defs['Leads']['subpanel_setup']['contacts']['override_subpanel_name'] = 'LeadForLeads';
//auto-generated file DO NOT EDIT
$layout_defs['Leads']['subpanel_setup']['contactleads']['override_subpanel_name'] = 'LeadForLeads';
?>

View File

@@ -0,0 +1,7 @@
<?php
// created: 2014-01-27 09:46:09
$mod_strings = array (
'LBL_CONTACTS_SUBPANEL_TITLE' => 'Kontakty',
'LBL_CONTACTLEADS_SUBPANEL_TITLE' => 'LBL_CONTACTLEADS_SUBPANEL_TITLE',
);
?>

View File

@@ -0,0 +1,12 @@
<?php
// Do not store anything in this file that is not part of the array or the hook version. This file will
// be automatically rebuilt in the future.
$hook_version = 1;
$hook_array = Array();
// position, file, function
$hook_array['before_save'] = Array();
$hook_array['before_save'][] = Array(1, 'Leads push feed', 'modules/Leads/SugarFeeds/LeadFeed.php','LeadFeed', 'pushFeed');
?>

View File

@@ -0,0 +1,176 @@
<?php
// created: 2013-03-19 13:56:50
$viewdefs = array (
'Leads' =>
array (
'DetailView' =>
array (
'templateMeta' =>
array (
'form' =>
array (
'buttons' =>
array (
0 => 'EDIT',
1 => 'DUPLICATE',
2 => 'DELETE',
3 =>
array (
'customCode' => '<input title="{$MOD.LBL_CONVERTLEAD_TITLE}" accessKey="{$MOD.LBL_CONVERTLEAD_BUTTON_KEY}" type="button" class="button" onClick="document.location=\'index.php?module=Leads&action=ConvertLead&record={$fields.id.value}\'" name="convert" value="{$MOD.LBL_CONVERTLEAD}">',
),
4 =>
array (
'customCode' => '<input title="{$APP.LBL_DUP_MERGE}" accessKey="M" class="button" onclick="this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Step1\'; this.form.module.value=\'MergeRecords\';" type="submit" name="Merge" value="{$APP.LBL_DUP_MERGE}">',
),
5 =>
array (
'customCode' => '<input title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" class="button" onclick="this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\'; this.form.module_tab.value=\'Leads\';" type="submit" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}">',
),
),
'headerTpl' => 'modules/Leads/tpls/DetailViewHeader.tpl',
),
'maxColumns' => '2',
'widths' =>
array (
0 =>
array (
'label' => '10',
'field' => '30',
),
1 =>
array (
'label' => '10',
'field' => '30',
),
),
'includes' =>
array (
0 =>
array (
'file' => 'modules/Leads/Lead.js',
),
),
),
'panels' =>
array (
'LBL_CONTACT_INFORMATION' =>
array (
0 =>
array (
0 =>
array (
'name' => 'full_name',
'label' => 'LBL_NAME',
),
1 => 'phone_work',
),
1 =>
array (
0 => 'title',
1 => 'phone_mobile',
),
2 =>
array (
0 => 'department',
1 => 'phone_fax',
),
3 =>
array (
0 =>
array (
'name' => 'account_name',
'displayParams' =>
array (
),
),
1 => 'website',
),
4 =>
array (
0 =>
array (
'name' => 'primary_address_street',
'label' => 'LBL_PRIMARY_ADDRESS',
'type' => 'address',
'displayParams' =>
array (
'key' => 'primary',
),
),
1 =>
array (
'name' => 'alt_address_street',
'label' => 'LBL_ALTERNATE_ADDRESS',
'type' => 'address',
'displayParams' =>
array (
'key' => 'alt',
),
),
),
5 =>
array (
0 => 'email1',
),
6 =>
array (
0 => 'description',
),
),
'LBL_PANEL_ADVANCED' =>
array (
0 =>
array (
0 => 'status',
1 => 'lead_source',
),
1 =>
array (
0 => 'status_description',
1 => 'lead_source_description',
),
2 =>
array (
0 => 'opportunity_amount',
1 => 'refered_by',
),
3 =>
array (
0 =>
array (
'name' => 'campaign_name',
'label' => 'LBL_CAMPAIGN',
),
1 => 'do_not_call',
),
),
'LBL_PANEL_ASSIGNMENT' =>
array (
0 =>
array (
0 =>
array (
'name' => 'assigned_user_name',
'label' => 'LBL_ASSIGNED_TO',
),
1 =>
array (
'name' => 'date_modified',
'label' => 'LBL_DATE_MODIFIED',
'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
),
),
1 =>
array (
0 =>
array (
'name' => 'date_entered',
'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
),
),
),
),
),
),
);
?>

View File

@@ -0,0 +1,9 @@
<?php
//WARNING: The contents of this file are auto-generated
// created: 2011-10-04 14:12:12
$dictionary['Meeting']['fields']['name']['required']=false;
?>

View File

@@ -0,0 +1,12 @@
<?php
//WARNING: The contents of this file are auto-generated
$dictionary['Note']['fields']['ecmquotes'] = array (
'name' => 'ecmquotes',
'type' => 'link',
'relationship' => 'ecmquotes_notes',
'source' =>'non-db',
);
?>

View File

@@ -0,0 +1,12 @@
<?php
// Do not store anything in this file that is not part of the array or the hook version. This file will
// be automatically rebuilt in the future.
$hook_version = 1;
$hook_array = Array();
// position, file, function
$hook_array['before_save'] = Array();
$hook_array['before_save'][] = Array(1, 'Opportunities push feed', 'modules/Opportunities/SugarFeeds/OppFeed.php','OppFeed', 'pushFeed');
?>

View File

@@ -0,0 +1,39 @@
<?php
$listViewDefs ['Project'] =
array (
'NAME' =>
array (
'width' => '40%',
'label' => 'LBL_LIST_NAME',
'link' => true,
'default' => true,
),
'ESTIMATED_START_DATE' =>
array (
'width' => '20%',
'label' => 'LBL_DATE_START',
'link' => false,
'default' => true,
),
'ESTIMATED_END_DATE' =>
array (
'width' => '20%',
'label' => 'LBL_DATE_END',
'link' => false,
'default' => true,
),
'STATUS' =>
array (
'width' => '20%',
'label' => 'LBL_STATUS',
'link' => false,
'default' => true,
),
'ASSIGNED_USER_NAME' =>
array (
'width' => '10%',
'label' => 'LBL_LIST_ASSIGNED_USER_ID',
'default' => true,
),
);
?>

View File

@@ -0,0 +1,146 @@
<?php
// created: 2013-03-19 13:56:50
$viewdefs = array (
'Prospects' =>
array (
'DetailView' =>
array (
'templateMeta' =>
array (
'form' =>
array (
'buttons' =>
array (
0 => 'EDIT',
1 => 'DUPLICATE',
2 => 'DELETE',
3 =>
array (
'customCode' => '<input title="{$MOD.LBL_CONVERT_BUTTON_TITLE}" accessKey="{$MOD.LBL_CONVERT_BUTTON_KEY}" class="button" onclick="this.form.return_module.value=\'Prospects\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$fields.id.value}\';this.form.module.value=\'Leads\';this.form.action.value=\'EditView\';" type="submit" name="CONVERT_LEAD_BTN" value="{$MOD.LBL_CONVERT_BUTTON_LABEL}"/>',
),
4 =>
array (
'customCode' => '<input title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" class="button" onclick="this.form.return_module.value=\'Prospects\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\';" type="submit" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}"/>',
),
),
'hidden' =>
array (
0 => '<input type="hidden" name="prospect_id" value="{$fields.id.value}">',
),
'headerTpl' => 'modules/Prospects/tpls/DetailViewHeader.tpl',
),
'maxColumns' => '2',
'widths' =>
array (
0 =>
array (
'label' => '10',
'field' => '30',
),
1 =>
array (
'label' => '10',
'field' => '30',
),
),
),
'panels' =>
array (
'lbl_prospect_information' =>
array (
0 =>
array (
0 => 'full_name',
1 =>
array (
'name' => 'phone_work',
'label' => 'LBL_OFFICE_PHONE',
),
),
1 =>
array (
0 => 'title',
1 => 'phone_mobile',
),
2 =>
array (
0 => 'department',
1 => 'phone_fax',
),
3 =>
array (
0 =>
array (
'name' => 'account_name',
'displayParams' =>
array (
),
),
),
4 =>
array (
0 =>
array (
'name' => 'primary_address_street',
'label' => 'LBL_PRIMARY_ADDRESS',
'type' => 'address',
'displayParams' =>
array (
'key' => 'primary',
),
),
1 =>
array (
'name' => 'alt_address_street',
'label' => 'LBL_ALTERNATE_ADDRESS',
'type' => 'address',
'displayParams' =>
array (
'key' => 'alt',
),
),
),
5 =>
array (
0 => 'email1',
),
6 =>
array (
0 => 'description',
),
),
'LBL_MORE_INFORMATION' =>
array (
0 =>
array (
0 => 'email_opt_out',
1 => 'do_not_call',
),
),
'LBL_PANEL_ASSIGNMENT' =>
array (
0 =>
array (
0 => 'assigned_user_name',
1 =>
array (
'name' => 'modified_by_name',
'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}&nbsp;',
'label' => 'LBL_DATE_MODIFIED',
),
),
1 =>
array (
0 =>
array (
'name' => 'created_by_name',
'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}&nbsp;',
'label' => 'LBL_DATE_ENTERED',
),
),
),
),
),
),
);
?>

View File

@@ -0,0 +1,14 @@
<?php
//WARNING: The contents of this file are auto-generated
// created: 2012-04-23 13:50:59
$dictionary['Task']['fields']['name']['required']=false;
// created: 2012-04-23 13:52:09
$dictionary['Task']['fields']['description']['required']=true;
?>

View File

@@ -0,0 +1,12 @@
<?php
// Do not store anything in this file that is not part of the array or the hook version. This file will
// be automatically rebuilt in the future.
$hook_version = 1;
$hook_array = Array();
// position, file, function
$hook_array['after_login'] = Array();
$hook_array['after_login'][] = Array(1, 'SugarFeed old feed entry remover', 'modules/SugarFeed/SugarFeedFlush.php','SugarFeedFlush', 'flushStaleEntries');
?>