Add php files
This commit is contained in:
66
modules/EcmProducts/metadata/SearchFields.php
Executable file
66
modules/EcmProducts/metadata/SearchFields.php
Executable file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*****************************************************************************
|
||||
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
|
||||
* Version 1.1 ("License"); You may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
* http://opensource.org/licenses/rpl.php. Software distributed under the
|
||||
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
|
||||
* either express or implied.
|
||||
*
|
||||
* You may:
|
||||
* a) Use and distribute this code exactly as you received without payment or
|
||||
* a royalty or other fee.
|
||||
* b) Create extensions for this code, provided that you make the extensions
|
||||
* publicly available and document your modifications clearly.
|
||||
* c) Charge for a fee for warranty or support or for accepting liability
|
||||
* obligations for your customers.
|
||||
*
|
||||
* You may NOT:
|
||||
* a) Charge for the use of the original code or extensions, including in
|
||||
* electronic distribution models, such as ASP (Application Service
|
||||
* Provider).
|
||||
* b) Charge for the original source code or your extensions other than a
|
||||
* nominal fee to cover distribution costs where such distribution
|
||||
* involves PHYSICAL media.
|
||||
* c) Modify or delete any pre-existing copyright notices, change notices,
|
||||
* or License text in the Licensed Software
|
||||
* d) Assert any patent claims against the Licensor or Contributors, or
|
||||
* which would in any way restrict the ability of any third party to use the
|
||||
* Licensed Software.
|
||||
*
|
||||
* You must:
|
||||
* a) Document any modifications you make to this code including the nature of
|
||||
* the change, the authors of the change, and the date of the change.
|
||||
* b) Make the source code for any extensions you deploy available via an
|
||||
* Electronic Distribution Mechanism such as FTP or HTTP download.
|
||||
* c) Notify the licensor of the availability of source code to your extensions
|
||||
* and include instructions on how to acquire the source code and updates.
|
||||
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
|
||||
* reproduce, perform, modify, sublicense, and distribute your extensions.
|
||||
*
|
||||
* The Original Code is: CommuniCore
|
||||
* Olavo Farias
|
||||
* 2006-04-7 olavo.farias@gmail.com
|
||||
*
|
||||
* The Initial Developer of the Original Code is CommuniCore.
|
||||
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
$searchFields['EcmProducts'] =
|
||||
array (
|
||||
'name' => array('query_type' => 'default'),
|
||||
'current_user_only'=> array('query_type' => 'default',
|
||||
'db_field' => array('assigned_user_id'),
|
||||
'my_items' => true
|
||||
),
|
||||
'assigned_user_id' => array('query_type' => 'default',
|
||||
'my_items' => true),
|
||||
'product_active' => array('query_type' => 'default'),
|
||||
'end_of_line' => array('query_type' => 'default'),
|
||||
'production' => array('query_type' => 'default'),
|
||||
'status' => array('query_type' => 'default', 'options' => 'ecmproducts_status_dom', 'template_var' => 'STATUS'),
|
||||
'manufacturer_name'=> array('query_type'=>'default', 'options' => 'ecmproductmanufacturers_name_dom', 'template_var' => 'MANUFACTURER'),
|
||||
'product_category_name'=> array('query_type'=>'default'),
|
||||
);
|
||||
?>
|
||||
79
modules/EcmProducts/metadata/additionalDetails.php
Executable file
79
modules/EcmProducts/metadata/additionalDetails.php
Executable file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*****************************************************************************
|
||||
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
|
||||
* Version 1.1 ("License"); You may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
* http://opensource.org/licenses/rpl.php. Software distributed under the
|
||||
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
|
||||
* either express or implied.
|
||||
*
|
||||
* You may:
|
||||
* a) Use and distribute this code exactly as you received without payment or
|
||||
* a royalty or other fee.
|
||||
* b) Create extensions for this code, provided that you make the extensions
|
||||
* publicly available and document your modifications clearly.
|
||||
* c) Charge for a fee for warranty or support or for accepting liability
|
||||
* obligations for your customers.
|
||||
*
|
||||
* You may NOT:
|
||||
* a) Charge for the use of the original code or extensions, including in
|
||||
* electronic distribution models, such as ASP (Application Service
|
||||
* Provider).
|
||||
* b) Charge for the original source code or your extensions other than a
|
||||
* nominal fee to cover distribution costs where such distribution
|
||||
* involves PHYSICAL media.
|
||||
* c) Modify or delete any pre-existing copyright notices, change notices,
|
||||
* or License text in the Licensed Software
|
||||
* d) Assert any patent claims against the Licensor or Contributors, or
|
||||
* which would in any way restrict the ability of any third party to use the
|
||||
* Licensed Software.
|
||||
*
|
||||
* You must:
|
||||
* a) Document any modifications you make to this code including the nature of
|
||||
* the change, the authors of the change, and the date of the change.
|
||||
* b) Make the source code for any extensions you deploy available via an
|
||||
* Electronic Distribution Mechanism such as FTP or HTTP download.
|
||||
* c) Notify the licensor of the availability of source code to your extensions
|
||||
* and include instructions on how to acquire the source code and updates.
|
||||
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
|
||||
* reproduce, perform, modify, sublicense, and distribute your extensions.
|
||||
*
|
||||
* The Original Code is: CommuniCore
|
||||
* Olavo Farias
|
||||
* 2006-04-7 olavo.farias@gmail.com
|
||||
*
|
||||
* The Initial Developer of the Original Code is CommuniCore.
|
||||
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
|
||||
require_once('include/utils.php');
|
||||
|
||||
function additionalDetailsEcmProduct($fields) {
|
||||
static $mod_strings;
|
||||
global $app_strings;
|
||||
if(empty($mod_strings)) {
|
||||
global $current_language;
|
||||
$mod_strings = return_module_language($current_language, 'EcmProducts');
|
||||
}
|
||||
|
||||
$overlib_string = '';
|
||||
|
||||
//BUILDER:START overlibstring
|
||||
if(!empty($fields['PRODUCT_INDEX'])){
|
||||
$overlib_string .= '<b>'. $mod_strings['LBL_PRODUCT_INDEX'] . '</b> <BR>' . substr($fields['PRODUCT_INDEX'], 0, 300);
|
||||
if(strlen($fields['PRODUCT_INDEX']) > 300) $overlib_string .= '...';
|
||||
$overlib_string .= '<br>';
|
||||
}
|
||||
//BUILDER:END overlibstring
|
||||
|
||||
return array(
|
||||
'fieldToAddTo' => 'NAME',
|
||||
'string' => $overlib_string,
|
||||
'editLink' => "index.php?action=EditView&module=EcmProducts&return_module=EcmProducts&record={$fields['ID']}",
|
||||
'viewLink' => "index.php?action=DetailView&module=EcmProducts&return_module=EcmProducts&record={$fields['ID']}");
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
297
modules/EcmProducts/metadata/detailviewdefs.php
Executable file
297
modules/EcmProducts/metadata/detailviewdefs.php
Executable file
@@ -0,0 +1,297 @@
|
||||
<?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',
|
||||
'DELETE',
|
||||
array(
|
||||
'customCode' => '<input type="button" class="button" name="generatePDF" id="generatePDF" value="PDF" onclick="window.open(\'index.php?module=EcmProducts&action=shortPDF&record=' . $_REQUEST['record'] . '&to_pdf=1\');">'
|
||||
),
|
||||
),
|
||||
'hidden' => array(
|
||||
'<input type="hidden" name="position_list" id="position_list" value=\'{$POSITION_LIST}\'>',
|
||||
'<input type="hidden" name="action_list" id="action_list" value=\'{$ACTION_LIST|@json_encode}\'>',
|
||||
),
|
||||
),
|
||||
'maxColumns' => '2',
|
||||
'widths' => array(
|
||||
array('label' => '10', 'field' => '30'),
|
||||
array('label' => '10', 'field' => '30'),
|
||||
),
|
||||
'includes' => array(
|
||||
array('file' => 'include/JSON.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/DetailViewDocumentReady.js'),
|
||||
),
|
||||
),
|
||||
'panels' => array(
|
||||
'LBL_PRODUCT_INFORMATION' => array(
|
||||
array('name', 'assigned_user_name'),
|
||||
array('code', 'product_active'),
|
||||
array('ean', 'ean2'),
|
||||
array('B2B', 'B2C'),
|
||||
array('check_stock_quantity'),
|
||||
array('vendor_name', 'OO'),
|
||||
array('status', 'is_consignment'),
|
||||
array(
|
||||
array(
|
||||
'label' => 'LBL_TAX_CLASS_NAME',
|
||||
'name' => 'vat_name',
|
||||
//'customCode' => '{$VAT_ID}',
|
||||
), 'unit_id'
|
||||
),
|
||||
array('pkwiu', 'ks_group'),
|
||||
array('ks_group2', 'srp_price'),
|
||||
array('price_msh', 'cena_produkcyjna'),
|
||||
array('amazon_code')
|
||||
),
|
||||
'LBL_PANEL_PRICES' => array(
|
||||
0 => array(
|
||||
0 => array(
|
||||
'name' => 'items_list_panel4',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '{$POSITIONS4}'
|
||||
)
|
||||
)
|
||||
),
|
||||
'LBL_STOCK_INFORMATION' => array(
|
||||
array(
|
||||
array(
|
||||
'customCode' => '{$INVENTORY_INFORMATION}',
|
||||
'label' => 'Na magazynach',
|
||||
),
|
||||
),
|
||||
),
|
||||
'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_LOGISTIC_INFORMATION' => array(
|
||||
array(
|
||||
'moq',
|
||||
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(
|
||||
'un_code',
|
||||
'carton_brutto_weight'
|
||||
),
|
||||
array(
|
||||
'pieces_per_carton',
|
||||
'carton_volume_meter'
|
||||
),
|
||||
array(
|
||||
'product_netto_weight',
|
||||
),
|
||||
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',
|
||||
'qty_per_unit'
|
||||
)
|
||||
),
|
||||
'LBL_LOCALIZED_INFORMATION' => array(
|
||||
array(
|
||||
array(
|
||||
'hideLabel' => true,
|
||||
'customCode' => '
|
||||
<script>
|
||||
{literal}
|
||||
function select_lang(value)
|
||||
{
|
||||
//document.getElementById("ean_pl").style.display="none";
|
||||
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("ean_en").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("ean_de").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("ean_"+value).style.display="block";
|
||||
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>
|
||||
</select>',
|
||||
),
|
||||
),
|
||||
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>',
|
||||
),
|
||||
),
|
||||
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>',
|
||||
),
|
||||
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>',
|
||||
),
|
||||
),
|
||||
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>',
|
||||
),
|
||||
),
|
||||
),
|
||||
'LBL_COMPONENTS' => array(
|
||||
array(
|
||||
array(
|
||||
//'name' => 'items_list_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '{include file="modules/EcmProducts/tpls/DetailViewComponents.tpl"}',
|
||||
)
|
||||
)
|
||||
),
|
||||
'LBL_PANEL_CATEGORIES' => array(
|
||||
0 =>
|
||||
array(
|
||||
0 =>
|
||||
array(
|
||||
'name' => 'items_list_panel3',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '{$POSITIONS3}',
|
||||
),
|
||||
),
|
||||
),
|
||||
'LBL_TIME_TABLE' => array(
|
||||
0 => array(
|
||||
0 => array(
|
||||
//'name' => 'time_list_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '{include file="modules/EcmProducts/tpls/DetailViewEcmActions.tpl"}',
|
||||
),
|
||||
),
|
||||
),
|
||||
'LBL_PANEL_ASSIGNMENT' => array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'assigned_user_name',
|
||||
'label' => 'LBL_ASSIGNED_TO',
|
||||
),
|
||||
array(
|
||||
'name' => 'date_modified',
|
||||
'label' => 'LBL_DATE_MODIFIED',
|
||||
'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
|
||||
),
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'date_entered',
|
||||
'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
308
modules/EcmProducts/metadata/editviewdefs.php
Executable file
308
modules/EcmProducts/metadata/editviewdefs.php
Executable file
@@ -0,0 +1,308 @@
|
||||
<?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(
|
||||
array(
|
||||
'customCode' => '<input class="button primary" type="submit" value="Zapisz produkt" name="button" onclick="this.form.action.value=\'Save\';return check_form_(\'EditView\');" accesskey="S" title="Zapisz [Alt+S]">'
|
||||
),
|
||||
|
||||
),
|
||||
'enctype' => 'multipart/form-data',
|
||||
'hidden' => array(
|
||||
'<input type="hidden" name="position_list" id="position_list" value=\'{$POSITION_LIST}\'>',
|
||||
'<input type="hidden" name="action_list" id="action_list" value=\'{$ACTION_LIST|@json_encode}\'>',
|
||||
"<input type='hidden' id='srp_price_replace' value='' name='srp_price_replace'>",
|
||||
),
|
||||
),
|
||||
'maxColumns' => '2',
|
||||
'widths' => array(
|
||||
array('label' => '10', 'field' => '40'),
|
||||
array('label' => '10', 'field' => '40'),
|
||||
),
|
||||
'includes' => array(
|
||||
array('file' => 'include/JSON.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/EcmProducts/javascript/EditViewDocumentReady44.js'),
|
||||
array(
|
||||
'file' => 'modules/EcmProducts/Categories.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/EcmProducts/Prices.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/EcmProducts/paramsMT.js'
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/EcmProducts/javascript/autoIndeks.js'
|
||||
),
|
||||
),
|
||||
),
|
||||
'panels' => array(
|
||||
'LBL_PRODUCT_INFORMATION' => array(
|
||||
array('name', 'assigned_user_name'),
|
||||
array('code', 'product_active'),
|
||||
array('ean', 'ean2'),
|
||||
array('vendor_name', 'OO'),
|
||||
array('status', 'is_consignment'),
|
||||
array(
|
||||
array(
|
||||
'label' => 'LBL_TAX_CLASS_NAME',
|
||||
'customCode' => '<select tabindex="v" id="vat_id" name="vat_id">{$VAT_ID}</select>',
|
||||
), 'unit_id'
|
||||
),
|
||||
array('pkwiu', 'ks_group'),
|
||||
array('ks_group2', 'srp_price'),
|
||||
array('price_msh', 'cena_produkcyjna'),
|
||||
array('amazon_code')
|
||||
),
|
||||
'LBL_PANEL_PRICES' => array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'items_list_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '{include file="modules/EcmProducts/tpls/EditVew_prices_and_category.tpl"}',
|
||||
)
|
||||
)
|
||||
),
|
||||
'LBL_STOCK_INFORMATION' => array(
|
||||
array(
|
||||
'ems_ordered',
|
||||
''
|
||||
),
|
||||
array('qty_in_stock', 'reorder_level'),
|
||||
array('', 'qty_in_demand'),
|
||||
array('lead_time'),
|
||||
),
|
||||
|
||||
'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ń grafikę',
|
||||
'customCode' => '<input name="delete_product_picture" type="checkbox" maxlength="255" value="1" />',
|
||||
),
|
||||
array(
|
||||
'label' => 'Usuń grafikę',
|
||||
'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}',
|
||||
),
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'label' => 'Usuń sterowniki',
|
||||
'customCode' => '<input name="delete_driver_1" type="checkbox" maxlength="255" value="1" />',
|
||||
),
|
||||
array(
|
||||
'label' => 'Usuń sterowniki',
|
||||
'customCode' => '<input name="delete_driver_2" type="checkbox" maxlength="255" value="1" />',
|
||||
),
|
||||
),
|
||||
),
|
||||
'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(
|
||||
'un_code',
|
||||
'carton_brutto_weight'
|
||||
),
|
||||
array(
|
||||
'pieces_per_carton',
|
||||
'carton_volume_meter'
|
||||
),
|
||||
array(
|
||||
'product_netto_weight',
|
||||
),
|
||||
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',
|
||||
'qty_per_unit'
|
||||
)
|
||||
),
|
||||
'LBL_LOCALIZED_INFORMATION' => array(
|
||||
array(
|
||||
array(
|
||||
'hideLabel' => true,
|
||||
'customCode' => '
|
||||
<script>
|
||||
{literal}
|
||||
function select_lang(value)
|
||||
{
|
||||
//document.getElementById("ean_pl").style.display="none";
|
||||
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("ean_en").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("ean_de").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("ean_"+value).style.display="block";
|
||||
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>
|
||||
</select>',
|
||||
),
|
||||
),
|
||||
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}" />',
|
||||
),
|
||||
),
|
||||
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>',
|
||||
),
|
||||
array(
|
||||
'label' => 'LBL_LONG_DESCRIPTION',
|
||||
'customCode' => '<textarea name="long_description_pl" cols="80" rows="3" 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>',
|
||||
),
|
||||
),
|
||||
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}" />',
|
||||
),
|
||||
),
|
||||
),
|
||||
'LBL_COMPONENTS' => array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'items_list_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '{include file="modules/EcmProducts/tpls/EditViewComponents.tpl"}',
|
||||
),
|
||||
),
|
||||
),
|
||||
'LBL_TIME_TABLE' => array(
|
||||
0 => array(
|
||||
0 => array(
|
||||
'name' => 'time_list_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '{include file="modules/EcmProducts/tpls/EditViewEcmAction.tpl"}',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
445
modules/EcmProducts/metadata/listviewdefs.php
Executable file
445
modules/EcmProducts/metadata/listviewdefs.php
Executable file
@@ -0,0 +1,445 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*****************************************************************************
|
||||
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
|
||||
* Version 1.1 ("License"); You may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
* http://opensource.org/licenses/rpl.php. Software distributed under the
|
||||
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
|
||||
* either express or implied.
|
||||
*
|
||||
* You may:
|
||||
* a) Use and distribute this code exactly as you received without payment or
|
||||
* a royalty or other fee.
|
||||
* b) Create extensions for this code, provided that you make the extensions
|
||||
* publicly available and document your modifications clearly.
|
||||
* c) Charge for a fee for warranty or support or for accepting liability
|
||||
* obligations for your customers.
|
||||
*
|
||||
* You may NOT:
|
||||
* a) Charge for the use of the original code or extensions, including in
|
||||
* electronic distribution models, such as ASP (Application Service
|
||||
* Provider).
|
||||
* b) Charge for the original source code or your extensions other than a
|
||||
* nominal fee to cover distribution costs where such distribution
|
||||
* involves PHYSICAL media.
|
||||
* c) Modify or delete any pre-existing copyright notices, change notices,
|
||||
* or License text in the Licensed Software
|
||||
* d) Assert any patent claims against the Licensor or Contributors, or
|
||||
* which would in any way restrict the ability of any third party to use the
|
||||
* Licensed Software.
|
||||
*
|
||||
* You must:
|
||||
* a) Document any modifications you make to this code including the nature of
|
||||
* the change, the authors of the change, and the date of the change.
|
||||
* b) Make the source code for any extensions you deploy available via an
|
||||
* Electronic Distribution Mechanism such as FTP or HTTP download.
|
||||
* c) Notify the licensor of the availability of source code to your extensions
|
||||
* and include instructions on how to acquire the source code and updates.
|
||||
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
|
||||
* reproduce, perform, modify, sublicense, and distribute your extensions.
|
||||
*
|
||||
* The Original Code is: CommuniCore
|
||||
* Olavo Farias
|
||||
* 2006-04-7 olavo.farias@gmail.com
|
||||
*
|
||||
* The Initial Developer of the Original Code is CommuniCore.
|
||||
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
|
||||
$listViewDefs['EcmProducts'] = array(
|
||||
'IMAGE' => array(
|
||||
'width' => '1',
|
||||
'default' => true,
|
||||
'sortable'=>false,
|
||||
'label' => ''
|
||||
),
|
||||
'CODE' => array(
|
||||
'width' => '1',
|
||||
'default' => true,
|
||||
'align'=>'left',
|
||||
'label' => 'LBL_PRODUCT_INDEX'),
|
||||
'NAME' => array(
|
||||
'width' => 200,
|
||||
'label' => 'Nazwa ',
|
||||
'default' => true,
|
||||
'link' => true),
|
||||
|
||||
//'TO_ORDER' => array(
|
||||
//'width' => '5',
|
||||
// 'default' => true,
|
||||
// 'label' => 'test',
|
||||
//'customCode' => 'w',
|
||||
// ),
|
||||
|
||||
'UNIT_NAME' => array(
|
||||
'width' => '100',
|
||||
'label' => 'LBL_UNIT_NAME',
|
||||
'default'=>true),
|
||||
'STOCK_QTY' => array(
|
||||
'width' => '10',
|
||||
'sortable'=>false,
|
||||
'align' => 'right',
|
||||
'label' => 'LBL_MAGAZINE',
|
||||
'default'=>true),
|
||||
'LAST_PURCHASE_PRICE' => array(
|
||||
'width' => '220',
|
||||
'align' => 'right',
|
||||
'label' => 'LBL_LAST_PURCHASE_PRICE',
|
||||
'sortable'=>false,
|
||||
'default'=>true),
|
||||
|
||||
|
||||
/*
|
||||
'QTY_PER_UNIT' => array(
|
||||
'width' => '1',
|
||||
'default' => true,
|
||||
'label' => 'LBL_QTY_PER_UNIT'),
|
||||
|
||||
'EMS_QTY_IN_STOCK' => array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>true,
|
||||
'label'=>'LBL_LIST_INVENTORY',
|
||||
),
|
||||
'ORDERED' => array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>true,
|
||||
'label'=>'Ilość',
|
||||
),
|
||||
/*
|
||||
'ORD_APPROVED' => array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>true,
|
||||
'label'=>'Ilo uznanych',
|
||||
),
|
||||
'ORD_CREATED' => array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>true,
|
||||
'label'=>'Ilo stw.',
|
||||
),
|
||||
'EMS_PRICE' => array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>true,
|
||||
'label'=>'LBL_EMS_PRICE',
|
||||
),
|
||||
'STOCK_VALUE' => array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>true,
|
||||
'label'=>'Cena',
|
||||
),
|
||||
'PIECES_PER_CARTON' => array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>false,
|
||||
'label'=>'Ppc',
|
||||
),/*
|
||||
'Q0' => array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>true,
|
||||
'label'=>'Ilo w m',
|
||||
),
|
||||
'S0'=>array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>true,
|
||||
'label'=>'Spr w m',
|
||||
),
|
||||
'P0'=>array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>true,
|
||||
'label'=>'Marg w m %',
|
||||
),
|
||||
'Q3' => array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>true,
|
||||
'label'=>'Średnia ilość w 3 m',
|
||||
),
|
||||
'S3'=>array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>true,
|
||||
'label'=>'Spr w 3 m',
|
||||
),
|
||||
'P3'=>array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>true,
|
||||
'label'=>'Marg w 3 m %',
|
||||
),
|
||||
/*'CBM' => array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>false,
|
||||
'label'=>'LBL_LIST_CBM',
|
||||
),
|
||||
'CBM_ORDERED' => array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>false,
|
||||
'label'=>'LBL_LIST_CBM_ORDERED',
|
||||
),*/
|
||||
|
||||
/*
|
||||
'SALE_QTY' => array(
|
||||
'width'=>'10',
|
||||
'default'=>true,
|
||||
'sortable'=>false,
|
||||
'label'=>'Średnia cena sprzedaży',
|
||||
), /*
|
||||
'SALE_QTY30' => array(
|
||||
'width'=>'10',
|
||||
'default'=>true,
|
||||
'sortable'=>false,
|
||||
'label'=>'Qty in last m',
|
||||
),
|
||||
'SALE_AVG_PRICE90' => array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>false,
|
||||
'label'=>'LBL_LIST_AVG_PRICE_3',
|
||||
),
|
||||
'SALE_QTY180' => array(
|
||||
'width'=>'10',
|
||||
'default'=>true,
|
||||
'sortable'=>false,
|
||||
'label'=>'Qty in last 6 m',
|
||||
),
|
||||
'SALE_AVG_PRICE' => array(
|
||||
'width'=>'10',
|
||||
'default'=>true,
|
||||
'sortable'=>false,
|
||||
'label'=>'Średnia cena zakupu',
|
||||
), /*
|
||||
'SALE_AVG_PRICE30' => array(
|
||||
'width'=>'10',
|
||||
'default'=>true,
|
||||
'sortable'=>false,
|
||||
'label'=>'Avg price in last m',
|
||||
),
|
||||
'SALE_AVG_PRICE0' => array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>false,
|
||||
'label'=>'LBL_LIST_AVG_PRICE_THIS',
|
||||
),
|
||||
'STOCK_MONTH'=>array(
|
||||
'width'=>'1',
|
||||
'default'=>true,
|
||||
'sortable'=>true,
|
||||
'label'=>'Inw + zam w m',
|
||||
),
|
||||
'HINT'=>array(
|
||||
'width' => '1',
|
||||
'sortable'=>false,
|
||||
'default' => true,
|
||||
'label' => ' '),
|
||||
|
||||
'SALE_AVG_PRICE180' => array(
|
||||
'width'=>'10',
|
||||
'default'=>true,
|
||||
'sortable'=>false,
|
||||
'label'=>'Avg price in last 6 m',
|
||||
),
|
||||
|
||||
'DATE_ENTERED' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_DATE_ENTERED'),
|
||||
'DATE_MODIFIED' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_DATE_MODIFIED'),
|
||||
'ASSIGNED_USER_NAME' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_ASSIGNED_TO'),
|
||||
'CREATED_BY' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_CREATED'),
|
||||
'PRODUCT_LINE_NAME' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_PRODUCT_LINE'),
|
||||
'MANUFACTURER_NAME' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_MANUFACTURER'),
|
||||
'CONTACT_NAME' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_CONTACT'),
|
||||
'VENDOR_NAME' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_VENDOR_NAME'),
|
||||
'VENDOR_PART_NO' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_VENDOR_PART_NO'),
|
||||
'SALES_START_DATE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_SALES_START_DATE'),
|
||||
'SALES_END_DATE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_SALES_END_DATE'),
|
||||
'PARENT_NAME' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_PARENT_NAME'),
|
||||
'WEBSITE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_WEBSITE'),
|
||||
'PART_NO' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_PART_NO'),
|
||||
'SERIAL_NO' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_SERIAL_NO'),
|
||||
'EXCHANGE_RATE_NAME' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_EXCHANGE_RATE_NAME'),
|
||||
'FOB_PRICE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_FOB_PRICE'),
|
||||
'PURCHASE_PRICE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_UNIT_PRICE'),
|
||||
/*'EMS_PRICE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_EMS_PRICE'),
|
||||
'COMMISSION_RATE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_COMMISSION_RATE'),
|
||||
'CUSTOM_DUTY_RATE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_CUSTOM_DUTY_RATE'),
|
||||
'SRP_PRICE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_SRP_PRICE'),
|
||||
'SRP_PROMO_PRICE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_SRP_PROMO_PRICE'),
|
||||
'USAGE_UNIT_NAME' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_USAGE_UNIT_NAME'),
|
||||
'QTY_IN_STOCK' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_QTY_IN_STOCK'),
|
||||
'QTY_IN_DEMAND' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_QTY_IN_DEMAND'),
|
||||
'REORDER_LEVEL' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_REORDER_LEVEL'),
|
||||
'SALES_LAST_MONTH_1' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_SALES_LAST_MONTH_1'),
|
||||
'SALES_LAST_MONTH' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_SALES_LAST_MONTH'),
|
||||
'SALES_THIS_MONTH' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_SALES_THIS_MONTH'),
|
||||
'QTY_PER_UNIT' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_QTY_PER_UNIT'),
|
||||
'AVERAGE_SALE_3_MONTHS' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_AVERAGE_SALE_3_MONTHS'),
|
||||
'SALES_PLUS_1' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_SALES_PLUS_1'),
|
||||
'SALES_PLUS_2' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_SALES_PLUS_2'),
|
||||
'SALES_PLUS_3' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_SALES_PLUS_3'),
|
||||
'MOQ' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_MOQ'),
|
||||
'FOB_BASIS_NAME' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_FOB_BASIS_NAME'),
|
||||
'DELIVERY_TIME_FOB' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_DELIVERY_TIME_FOB'),
|
||||
'PIECES_PER_CARTON' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_PIECES_PER_CARTON'),
|
||||
'PRODUCT_NETTO_WEIGHT' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_PRODUCT_NETTO_WEIGHT'),
|
||||
'PRODUCT_BRUTTO_WEIGHT' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_PRODUCT_BRUTTO_WEIGHT'),
|
||||
'PACKING_TYPE_NAME' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_PACKING_TYPE_NAME'),
|
||||
'PACKING_DIMENSIONS_1' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_PACKING_DIMENSIONS_1'),
|
||||
'PACKING_DIMENSIONS_2' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_PACKING_DIMENSIONS_2'),
|
||||
'PACKING_DIMENSIONS_3' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_PACKING_DIMENSIONS_3'),
|
||||
'CARTON_DIMENSIONS_1' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_CARTON_DIMENSIONS_1'),
|
||||
'CARTON_DIMENSIONS_2' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_CARTON_DIMENSIONS_2'),
|
||||
'CARTON_DIMENSIONS_3' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_CARTON_DIMENSIONS_3'),
|
||||
'RMA' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_RMA'),
|
||||
'CARTON_NETTO_WEIGHT' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_CARTON_NETTO_WEIGHT'),
|
||||
'CARTON_BRUTTO_WEIGHT' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_CARTON_BRUTTO_WEIGHT'),
|
||||
'CARTON_VOLUME_METER' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_CARTON_VOLUME_METER'),
|
||||
'CARTON_VOLUME_FEET' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_CARTON_VOLUME_FEET'),
|
||||
'COUNTRY_OF_ORIGIN' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_COUNTRY_OF_ORIGIN'),
|
||||
'CERTIFICATE_OF_ORIGIN' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_CERTIFICATE_OF_ORIGIN'),
|
||||
'FORM_A' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_FORM_A'),
|
||||
'VAT_NAME' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_VAT_NAME'),
|
||||
'SELLING_PRICE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_SELLING_PRICE'),
|
||||
'EMS_ORDERED' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_EMS_ORDERED'),
|
||||
'TO_ORDER' => array(
|
||||
'width' => '1',
|
||||
'default' => false,
|
||||
'label' => 'T'),
|
||||
*/
|
||||
|
||||
|
||||
'EDIT_BTN' => array(
|
||||
'width' => '1',
|
||||
'default' => true,
|
||||
'sortable' => false,
|
||||
'label' => ' '
|
||||
),
|
||||
);
|
||||
?>
|
||||
61
modules/EcmProducts/metadata/popupdefs.php
Executable file
61
modules/EcmProducts/metadata/popupdefs.php
Executable file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*****************************************************************************
|
||||
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
|
||||
* Version 1.1 ("License"); You may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
* http://opensource.org/licenses/rpl.php. Software distributed under the
|
||||
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
|
||||
* either express or implied.
|
||||
*
|
||||
* You may:
|
||||
* a) Use and distribute this code exactly as you received without payment or
|
||||
* a royalty or other fee.
|
||||
* b) Create extensions for this code, provided that you make the extensions
|
||||
* publicly available and document your modifications clearly.
|
||||
* c) Charge for a fee for warranty or support or for accepting liability
|
||||
* obligations for your customers.
|
||||
*
|
||||
* You may NOT:
|
||||
* a) Charge for the use of the original code or extensions, including in
|
||||
* electronic distribution models, such as ASP (Application Service
|
||||
* Provider).
|
||||
* b) Charge for the original source code or your extensions other than a
|
||||
* nominal fee to cover distribution costs where such distribution
|
||||
* involves PHYSICAL media.
|
||||
* c) Modify or delete any pre-existing copyright notices, change notices,
|
||||
* or License text in the Licensed Software
|
||||
* d) Assert any patent claims against the Licensor or Contributors, or
|
||||
* which would in any way restrict the ability of any third party to use the
|
||||
* Licensed Software.
|
||||
*
|
||||
* You must:
|
||||
* a) Document any modifications you make to this code including the nature of
|
||||
* the change, the authors of the change, and the date of the change.
|
||||
* b) Make the source code for any extensions you deploy available via an
|
||||
* Electronic Distribution Mechanism such as FTP or HTTP download.
|
||||
* c) Notify the licensor of the availability of source code to your extensions
|
||||
* and include instructions on how to acquire the source code and updates.
|
||||
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
|
||||
* reproduce, perform, modify, sublicense, and distribute your extensions.
|
||||
*
|
||||
* The Original Code is: CommuniCore
|
||||
* Olavo Farias
|
||||
* 2006-04-7 olavo.farias@gmail.com
|
||||
*
|
||||
* The Initial Developer of the Original Code is CommuniCore.
|
||||
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
|
||||
$popupMeta = array(
|
||||
'moduleMain' => 'EcmProduct',
|
||||
'varName' => 'ECMPRODUCT',
|
||||
'orderBy' => 'ecmproducts.name',
|
||||
'whereClauses' => array(
|
||||
'code' => 'ecmproducts.code',
|
||||
'name' => 'ecmproducts.name',
|
||||
),
|
||||
'searchInputs' => array('name', 'name')
|
||||
);
|
||||
?>
|
||||
341
modules/EcmProducts/metadata/quickcreatedefs.php
Executable file
341
modules/EcmProducts/metadata/quickcreatedefs.php
Executable file
@@ -0,0 +1,341 @@
|
||||
<?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.
|
||||
* asd
|
||||
* 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(
|
||||
array(
|
||||
'customCode'=>'<input class="button primary" type="submit" value="Zapisz" name="button" onclick="this.form.action.value=\'AjaxSave\';return check_form_(\'EditView\');" accesskey="S" title="Zapisz [Alt+S]">'
|
||||
|
||||
),
|
||||
'CANCEL',
|
||||
),
|
||||
'enctype'=> 'multipart/form-data',
|
||||
'hidden'=>array(
|
||||
'<input type="hidden" name="position_list" id="position_list" value=\'{$POSITION_LIST}\'>
|
||||
<input type="hidden" name="action" id="action" value="AjaxSave">',
|
||||
),
|
||||
|
||||
),
|
||||
'maxColumns'=>'2',
|
||||
'widths'=>array(
|
||||
array('label'=>'10','field'=>'30'),
|
||||
array('label'=>'10','field'=>'30'),
|
||||
),
|
||||
|
||||
),
|
||||
'panels'=>array(
|
||||
'LBL_PRODUCT_INFORMATION'=>array(
|
||||
array('name','assigned_user_name'),
|
||||
array('code','product_active'),
|
||||
array('B2B','B2C'),
|
||||
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"/>
|
||||
',
|
||||
),
|
||||
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('serial_no'),
|
||||
array('status'),
|
||||
array(
|
||||
array(
|
||||
'label'=>'LBL_TAX_CLASS_NAME',
|
||||
'customCode'=>'<select tabindex="v" id="vat_id" name="vat_id">{$VAT_ID}</select>',
|
||||
),'unit_id'
|
||||
),
|
||||
array('pkwiu','ks_group'),
|
||||
// array('flag','th'),
|
||||
),
|
||||
'LBL_PANEL_PRICES' => array (
|
||||
array (
|
||||
array (
|
||||
'name' => 'items_list_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '<table style="width:100%;"><tr><td style="width:40%;">
|
||||
<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: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="itemsTableDIV3">
|
||||
<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>
|
||||
<td width="30%">{$MOD.LBL_PRICE_CURRENCY}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody">
|
||||
</tbody>
|
||||
</table>
|
||||
</div><br></td><td style="width:10%;"></td><td style="width:40%;">
|
||||
<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: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="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></td></tr></table>'
|
||||
)
|
||||
)
|
||||
),
|
||||
'LBL_STOCK_INFORMATION'=>array(
|
||||
array(
|
||||
'ems_ordered',
|
||||
'qty_per_unit'
|
||||
),
|
||||
array('qty_in_stock','reorder_level'),
|
||||
array('','qty_in_demand'),
|
||||
array('lead_time'),
|
||||
),
|
||||
/*
|
||||
'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ń grafikę',
|
||||
'customCode'=>'<input name="delete_product_picture" type="checkbox" maxlength="255" value="1" />',
|
||||
),
|
||||
array(
|
||||
'label'=>'Usuń grafikę',
|
||||
'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}',
|
||||
),
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'label'=>'Usuń sterowniki',
|
||||
'customCode'=>'<input name="delete_driver_1" type="checkbox" maxlength="255" value="1" />',
|
||||
),
|
||||
array(
|
||||
'label'=>'Usuń sterowniki',
|
||||
'customCode'=>'<input name="delete_driver_2" type="checkbox" maxlength="255" value="1" />',
|
||||
),
|
||||
),
|
||||
),
|
||||
'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_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','product_netto_weight'),
|
||||
), */
|
||||
'LBL_LOCALIZED_INFORMATION'=>array(
|
||||
array(
|
||||
array(
|
||||
'hideLabel'=>true,
|
||||
'customCode'=>'
|
||||
<script>
|
||||
{literal}
|
||||
function select_lang(value)
|
||||
{
|
||||
//document.getElementById("ean_pl").style.display="none";
|
||||
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("ean_en").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("ean_de").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("ean_"+value).style.display="block";
|
||||
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>
|
||||
</select>',
|
||||
),
|
||||
),
|
||||
array(
|
||||
/*
|
||||
array(
|
||||
'label'=>'LBL_LOCAL_EAN',
|
||||
'customCode'=>'<input name="ean_pl" type="text" id="ean_pl" value="{$EAN_pl}" /><input style="display:none;" name="ean_en" type="text" id="ean_en" value="{$EAN_en}" /><input style="display:none;" name="ean_de" type="text" id="ean_de" value="{$EAN_de}" />',
|
||||
),
|
||||
*/
|
||||
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}" />',
|
||||
),
|
||||
),
|
||||
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>',
|
||||
),
|
||||
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>',
|
||||
),
|
||||
),
|
||||
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}" />',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
'LBL_COMPONENTS'=>array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'items_list_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' => '
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmProducts/MyTable.css" />
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmProducts/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="58%">{$MOD.LBL_EDITTABLE_NAME}</td>
|
||||
<td width="12%">{$MOD.LBL_EDITTABLE_UNIT}</td>
|
||||
<td width="10%">{$MOD.LBL_EDITTABLE_QUANTITY}</td>
|
||||
<td width="6%">{$MOD.LBL_EDITTABLE_OPTIONS}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
72
modules/EcmProducts/metadata/searchdefs.php
Executable file
72
modules/EcmProducts/metadata/searchdefs.php
Executable file
@@ -0,0 +1,72 @@
|
||||
<?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(
|
||||
array(
|
||||
'name'=>'name',
|
||||
'displayParams' =>
|
||||
array (
|
||||
'required' => true,
|
||||
'rows' => 1,
|
||||
'cols' => 50,
|
||||
),
|
||||
),
|
||||
'code',
|
||||
array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'),
|
||||
'product_category_name',
|
||||
'part_no'
|
||||
),
|
||||
'advanced_search' => array(
|
||||
'name',
|
||||
'code',
|
||||
'assigned_user_id',
|
||||
'product_category_id',
|
||||
'status',
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
76
modules/EcmProducts/metadata/studio.php
Executable file
76
modules/EcmProducts/metadata/studio.php
Executable file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*****************************************************************************
|
||||
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
|
||||
* Version 1.1 ("License"); You may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
* http://opensource.org/licenses/rpl.php. Software distributed under the
|
||||
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
|
||||
* either express or implied.
|
||||
*
|
||||
* You may:
|
||||
* a) Use and distribute this code exactly as you received without payment or
|
||||
* a royalty or other fee.
|
||||
* b) Create extensions for this code, provided that you make the extensions
|
||||
* publicly available and document your modifications clearly.
|
||||
* c) Charge for a fee for warranty or support or for accepting liability
|
||||
* obligations for your customers.
|
||||
*
|
||||
* You may NOT:
|
||||
* a) Charge for the use of the original code or extensions, including in
|
||||
* electronic distribution models, such as ASP (Application Service
|
||||
* Provider).
|
||||
* b) Charge for the original source code or your extensions other than a
|
||||
* nominal fee to cover distribution costs where such distribution
|
||||
* involves PHYSICAL media.
|
||||
* c) Modify or delete any pre-existing copyright notices, change notices,
|
||||
* or License text in the Licensed Software
|
||||
* d) Assert any patent claims against the Licensor or Contributors, or
|
||||
* which would in any way restrict the ability of any third party to use the
|
||||
* Licensed Software.
|
||||
*
|
||||
* You must:
|
||||
* a) Document any modifications you make to this code including the nature of
|
||||
* the change, the authors of the change, and the date of the change.
|
||||
* b) Make the source code for any extensions you deploy available via an
|
||||
* Electronic Distribution Mechanism such as FTP or HTTP download.
|
||||
* c) Notify the licensor of the availability of source code to your extensions
|
||||
* and include instructions on how to acquire the source code and updates.
|
||||
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
|
||||
* reproduce, perform, modify, sublicense, and distribute your extensions.
|
||||
*
|
||||
* The Original Code is: CommuniCore
|
||||
* Olavo Farias
|
||||
* 2006-04-7 olavo.farias@gmail.com
|
||||
*
|
||||
* The Initial Developer of the Original Code is CommuniCore.
|
||||
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
|
||||
$GLOBALS['studioDefs']['EcmProducts'] = array(
|
||||
'LBL_DETAILVIEW'=>array(
|
||||
'template' => 'xtpl',
|
||||
'template_file' => 'modules/EcmProducts/DetailView.html',
|
||||
'php_file' => 'modules/EcmProducts/DetailView.php',
|
||||
'type' => 'DetailView',
|
||||
),
|
||||
'LBL_EDITVIEW'=>array(
|
||||
'template' => 'xtpl',
|
||||
'template_file' => 'modules/EcmProducts/EditView.html',
|
||||
'php_file' => 'modules/EcmProducts/EditView.php',
|
||||
'type' => 'EditView',
|
||||
),
|
||||
'LBL_LISTVIEW'=>array(
|
||||
'template' => 'listview',
|
||||
'meta_file' => 'modules/EcmProducts/listviewdefs.php',
|
||||
'type' => 'ListView',
|
||||
),
|
||||
'LBL_SEARCHFORM'=>array(
|
||||
'template' => 'xtpl',
|
||||
'template_file' => 'modules/EcmProducts/SearchForm.html',
|
||||
'php_file' => 'modules/EcmProducts/ListView.php',
|
||||
'type' => 'SearchForm',
|
||||
),
|
||||
|
||||
);
|
||||
242
modules/EcmProducts/metadata/subpaneldefs.php
Executable file
242
modules/EcmProducts/metadata/subpaneldefs.php
Executable file
@@ -0,0 +1,242 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*****************************************************************************
|
||||
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
|
||||
* Version 1.1 ("License"); You may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
* http://opensource.org/licenses/rpl.php. Software distributed under the
|
||||
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
|
||||
* either express or implied.
|
||||
*
|
||||
* You may:
|
||||
* a) Use and distribute this code exactly as you received without payment or
|
||||
* a royalty or other fee.
|
||||
* b) Create extensions for this code, provided that you make the extensions
|
||||
* publicly available and document your modifications clearly.
|
||||
* c) Charge for a fee for warranty or support or for accepting liability
|
||||
* obligations for your customers.
|
||||
*
|
||||
* You may NOT:
|
||||
* a) Charge for the use of the original code or extensions, including in
|
||||
* electronic distribution models, such as ASP (Application Service
|
||||
* Provider).
|
||||
* b) Charge for the original source code or your extensions other than a
|
||||
* nominal fee to cover distribution costs where such distribution
|
||||
* involves PHYSICAL media.
|
||||
* c) Modify or delete any pre-existing copyright notices, change notices,
|
||||
* or License text in the Licensed Software
|
||||
* d) Assert any patent claims against the Licensor or Contributors, or
|
||||
* which would in any way restrict the ability of any third party to use the
|
||||
* Licensed Software.
|
||||
*
|
||||
* You must:
|
||||
* a) Document any modifications you make to this code including the nature of
|
||||
* the change, the authors of the change, and the date of the change.
|
||||
* b) Make the source code for any extensions you deploy available via an
|
||||
* Electronic Distribution Mechanism such as FTP or HTTP download.
|
||||
* c) Notify the licensor of the availability of source code to your extensions
|
||||
* and include instructions on how to acquire the source code and updates.
|
||||
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
|
||||
* reproduce, perform, modify, sublicense, and distribute your extensions.
|
||||
*
|
||||
* The Original Code is: CommuniCore
|
||||
* Olavo Farias
|
||||
* 2006-04-7 olavo.farias@gmail.com
|
||||
*
|
||||
* The Initial Developer of the Original Code is CommuniCore.
|
||||
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
$layout_defs['EcmProducts']['subpanel_setup'] = array(
|
||||
/*
|
||||
'ecmstockdocins' => array (
|
||||
'order' => 10,
|
||||
'module' => 'EcmStockDocIns',
|
||||
'sort_order' => 'asc',
|
||||
'get_subpanel_data' => 'ecmstockdocins',
|
||||
'add_subpanel_data' => 'product_id',
|
||||
'subpanel_name' => 'default',
|
||||
'title_key' => 'LBL_ECMSTOCKINS_SUBPANEL_TITLE',
|
||||
),
|
||||
|
||||
/*
|
||||
'ecmstockdocouts' => array (
|
||||
'order' => 20,
|
||||
'module' => 'EcmStockDocOuts',
|
||||
'sort_order' => 'asc',
|
||||
'sort_by' => 'product_id',
|
||||
'get_subpanel_data' => 'ecmstockdocouts',
|
||||
'add_subpanel_data' => 'product_id',
|
||||
'subpanel_name' => 'default',
|
||||
'title_key' => 'LBL_ECMSTOCKOUTS_SUBPANEL_TITLE',
|
||||
),
|
||||
*/
|
||||
'ecmpurchaseorders' => array (
|
||||
'order' => 10,
|
||||
'module' => 'EcmPurchaseOrders',
|
||||
'sort_order' => 'asc',
|
||||
'sort_by' => 'name',
|
||||
'get_subpanel_data' => 'ecmpurchaseorders',
|
||||
'add_subpanel_data' => 'product_id',
|
||||
'subpanel_key_connector' => 'ecmpurchaseorderitems.id as ecmproduct_id',
|
||||
'subpanel_name' => 'ForProduct',
|
||||
'title_key' => 'LBL_ECMPURCHASEORDERS_SUBPANEL_TITLE',
|
||||
),
|
||||
|
||||
'ecmquotes' => array (
|
||||
'order' => 9,
|
||||
'module' => 'EcmQuotes',
|
||||
'sort_order' => 'asc',
|
||||
'sort_by' => 'name',
|
||||
'get_subpanel_data' => 'ecmquotes',
|
||||
'add_subpanel_data' => 'product_id',
|
||||
'subpanel_key_connector' => 'ecmquoteitems.id as ecmproduct_id',
|
||||
'subpanel_name' => 'ForProduct',
|
||||
'title_key' => 'LBL_ECMQUOTES_SUBPANEL_TITLE',
|
||||
),
|
||||
'documents' => array(
|
||||
'order' => 130,
|
||||
'module' => 'Documents',
|
||||
'subpanel_name' => 'default',
|
||||
'get_subpanel_data' => 'documents',
|
||||
'title_key' => 'Dokumenty',
|
||||
),
|
||||
'ecmsales' => array (
|
||||
'order' => 8,
|
||||
'module' => 'EcmSales',
|
||||
'sort_order' => 'asc',
|
||||
//'sort_by' => 'name',
|
||||
'get_subpanel_data' => 'ecmsales',
|
||||
'add_subpanel_data' => 'product_id',
|
||||
'subpanel_key_connector' => 'ecmproduct_id',
|
||||
'subpanel_name' => 'ForProduct',
|
||||
'title_key' => 'Zamówienia sprzedaży',
|
||||
),
|
||||
/*
|
||||
|
||||
*/ 'ecmstockdocins' => array (
|
||||
'order' => 1,
|
||||
'module' => 'EcmStockDocIns',
|
||||
'sort_order' => 'asc',
|
||||
'sort_by' => 'name',
|
||||
'get_subpanel_data' => 'ecmstockdocins',
|
||||
'add_subpanel_data' => 'product_id',
|
||||
'subpanel_key_connector' => 'ecmstockdocinitems.id as ecmproduct_id',
|
||||
'subpanel_name' => 'ForProduct',
|
||||
'title_key' => 'LBL_ECMSTOCKDOCINS_SUBPANEL_TITLE',
|
||||
),
|
||||
|
||||
'ecminvoiceouts' => array (
|
||||
'order' => 7,
|
||||
'module' => 'EcmInvoiceOuts',
|
||||
'sort_order' => 'asc',
|
||||
'sort_by' => 'name',
|
||||
'get_subpanel_data' => 'ecminvoiceouts',
|
||||
'add_subpanel_data' => 'product_id',
|
||||
'subpanel_key_connector' => 'ecminvoiceoutitems.id as ecmproduct_id',
|
||||
'subpanel_name' => 'ForProduct',
|
||||
'title_key' => 'LBL_ECMINVOICEOUTS_SUBPANEL_TITLE',
|
||||
),
|
||||
/*
|
||||
'ecminvoiceouts' => array(
|
||||
'order' => 120,
|
||||
'module' => 'EcmInvoiceOuts',
|
||||
'subpanel_name' => 'default',
|
||||
'get_subpanel_data' => 'function:getSubPanelInvoiceItems',
|
||||
'title_key' => 'Produkty na fakturach',
|
||||
'generate_select'=>true,
|
||||
'function_parameters' => array('return_as_array'=>'true'),
|
||||
), */
|
||||
'ecmreceipts' => array (
|
||||
'order' => 6,
|
||||
'module' => 'EcmReceipts',
|
||||
'sort_order' => 'asc',
|
||||
'sort_by' => 'name',
|
||||
'get_subpanel_data' => 'ecmreceipts',
|
||||
'add_subpanel_data' => 'product_id',
|
||||
'subpanel_key_connector' => 'ecmreceiptitems.id as ecmproduct_id',
|
||||
'subpanel_name' => 'ForProduct',
|
||||
'title_key' => 'Paragony',
|
||||
),
|
||||
'ecmstockdocouts' => array (
|
||||
'order' => 4,
|
||||
'module' => 'EcmStockDocOuts',
|
||||
'sort_order' => 'asc',
|
||||
'get_subpanel_data' => 'ecmstockdocouts',
|
||||
'add_subpanel_data' => 'product_id',
|
||||
'subpanel_key_connector' => 'ecmstockdocoutitems.id as ecmproduct_id',
|
||||
'subpanel_name' => 'ForProduct',
|
||||
'title_key' => 'LBL_ECMSTOCKDOCOUTS_SUBPANEL_TITLE',
|
||||
),
|
||||
'ecmstockdoccorrects' => array (
|
||||
'order' => 4,
|
||||
'module' => 'EcmStockDocCorrects',
|
||||
'sort_order' => 'asc',
|
||||
'get_subpanel_data' => 'ecmstockdoccorrects',
|
||||
'add_subpanel_data' => 'product_id',
|
||||
'subpanel_key_connector' => 'ecmstockdoccorrectitems.id as ecmproduct_id',
|
||||
'subpanel_name' => 'ForProduct',
|
||||
'title_key' => 'Dokumenty KS',
|
||||
),
|
||||
'ecmstockdocinsideouts' => array (
|
||||
'order' => 3,
|
||||
'module' => 'EcmStockDocInsideOuts',
|
||||
'sort_order' => 'asc',
|
||||
'get_subpanel_data' => 'ecmstockdocinsideouts',
|
||||
'add_subpanel_data' => 'product_id',
|
||||
'subpanel_key_connector' => 'ecmstockdocinsideoutitems.id as ecmproduct_id',
|
||||
'subpanel_name' => 'ForProduct',
|
||||
'title_key' => 'Dokumenty RW',
|
||||
),
|
||||
'ecmstockdocinsideins' => array (
|
||||
'order' => 2,
|
||||
'module' => 'EcmStockDocInsideIns',
|
||||
'sort_order' => 'asc',
|
||||
'get_subpanel_data' => 'ecmstockdocinsideins',
|
||||
'add_subpanel_data' => 'product_id',
|
||||
'subpanel_key_connector' => 'ecmstockdocinsideinitems.id as ecmproduct_id',
|
||||
'subpanel_name' => 'ForProduct',
|
||||
'title_key' => 'Dokumenty PW',
|
||||
),
|
||||
/*
|
||||
'ecmdeliverynotes' => array (
|
||||
'order' => 80,
|
||||
'module' => 'EcmDeliveryNotes',
|
||||
'sort_order' => 'asc',
|
||||
'sort_by' => 'name',
|
||||
'get_subpanel_data' => 'ecmdeliverynotes',
|
||||
'add_subpanel_data' => 'product_id',
|
||||
'subpanel_name' => 'default',
|
||||
'title_key' => 'LBL_ECMDELIVERYNOTES_SUBPANEL_TITLE',
|
||||
),
|
||||
|
||||
|
||||
|
||||
'ecmpricebooks' => array (
|
||||
'order' => 100,
|
||||
'module' => 'EcmPriceBooks',
|
||||
'sort_order' => 'asc',
|
||||
'sort_by' => 'name',
|
||||
'get_subpanel_data' => 'ecmpricebooks',
|
||||
'add_subpanel_data' => 'ecmproduct_id',
|
||||
'subpanel_name' => 'ForProducts',
|
||||
'title_key' => 'LBL_ECMPRICEBOOKS_SUBPANEL_TITLE',
|
||||
),
|
||||
|
||||
'notes' => array (
|
||||
'order' => 110,
|
||||
'module' => 'Notes',
|
||||
'sort_order' => 'asc',
|
||||
//'sort_by' => 'name',
|
||||
'get_subpanel_data' => 'notes',
|
||||
'add_subpanel_data' => 'parent_id',
|
||||
'subpanel_name' => 'default',
|
||||
'title_key' => 'LBL_NOTES_SUBPANEL_TITLE',
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopSelectButton'),
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
),
|
||||
),
|
||||
*/
|
||||
);
|
||||
?>
|
||||
103
modules/EcmProducts/metadata/subpanels/ForAccounts.php
Executable file
103
modules/EcmProducts/metadata/subpanels/ForAccounts.php
Executable file
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*****************************************************************************
|
||||
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
|
||||
* Version 1.1 ("License"); You may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
* http://opensource.org/licenses/rpl.php. Software distributed under the
|
||||
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
|
||||
* either express or implied.
|
||||
*
|
||||
* You may:
|
||||
* a) Use and distribute this code exactly as you received without payment or
|
||||
* a royalty or other fee.
|
||||
* b) Create extensions for this code, provided that you make the extensions
|
||||
* publicly available and document your modifications clearly.
|
||||
* c) Charge for a fee for warranty or support or for accepting liability
|
||||
* obligations for your customers.
|
||||
*
|
||||
* You may NOT:
|
||||
* a) Charge for the use of the original code or extensions, including in
|
||||
* electronic distribution models, such as ASP (Application Service
|
||||
* Provider).
|
||||
* b) Charge for the original source code or your extensions other than a
|
||||
* nominal fee to cover distribution costs where such distribution
|
||||
* involves PHYSICAL media.
|
||||
* c) Modify or delete any pre-existing copyright notices, change notices,
|
||||
* or License text in the Licensed Software
|
||||
* d) Assert any patent claims against the Licensor or Contributors, or
|
||||
* which would in any way restrict the ability of any third party to use the
|
||||
* Licensed Software.
|
||||
*
|
||||
* You must:
|
||||
* a) Document any modifications you make to this code including the nature of
|
||||
* the change, the authors of the change, and the date of the change.
|
||||
* b) Make the source code for any extensions you deploy available via an
|
||||
* Electronic Distribution Mechanism such as FTP or HTTP download.
|
||||
* c) Notify the licensor of the availability of source code to your extensions
|
||||
* and include instructions on how to acquire the source code and updates.
|
||||
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
|
||||
* reproduce, perform, modify, sublicense, and distribute your extensions.
|
||||
*
|
||||
* The Original Code is: CommuniCore
|
||||
* Olavo Farias
|
||||
* 2006-04-7 olavo.farias@gmail.com
|
||||
*
|
||||
* The Initial Developer of the Original Code is CommuniCore.
|
||||
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
error_reporting(0);
|
||||
$subpanel_layout = array(
|
||||
'where' => '',
|
||||
|
||||
'list_fields' => array(
|
||||
'code'=>array(
|
||||
'vname' => 'Index',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
),
|
||||
'name'=>array(
|
||||
'vname' => 'LBL_LIST_NAME',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
'width' => '50%',
|
||||
),
|
||||
'product_category_name' => array (
|
||||
'vname' => 'Category',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
'id' => 'product_category_id',
|
||||
),
|
||||
'ems_qty_in_stock' => array (
|
||||
'vname' => 'Inv',
|
||||
),
|
||||
'ordered' => array (
|
||||
'vname' => 'Ord',
|
||||
),
|
||||
'sale_qty-3' => array (
|
||||
'vname' => 'Qty -3 m',
|
||||
),
|
||||
'sale_qty-2' => array (
|
||||
'vname' => 'Qty -2 m',
|
||||
),
|
||||
'sale_qty-1' => array (
|
||||
'vname' => 'Qty -1 m',
|
||||
),
|
||||
'sale_qty0' => array (
|
||||
'vname' => 'Qty this m',
|
||||
),
|
||||
'sale_qty+1' => array (
|
||||
'vname' => 'Qty +1 m',
|
||||
),
|
||||
'sale_qty+2' => array (
|
||||
'vname' => 'Qty +2 m',
|
||||
),
|
||||
'sale_qty+3' => array (
|
||||
'vname' => 'Qty +3 m',
|
||||
),
|
||||
'sale_qty180' => array (
|
||||
'vname' => 'Qty 6 m',
|
||||
),
|
||||
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
110
modules/EcmProducts/metadata/subpanels/ForAccountsSale.php
Executable file
110
modules/EcmProducts/metadata/subpanels/ForAccountsSale.php
Executable file
@@ -0,0 +1,110 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*****************************************************************************
|
||||
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
|
||||
* Version 1.1 ("License"); You may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
* http://opensource.org/licenses/rpl.php. Software distributed under the
|
||||
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
|
||||
* either express or implied.
|
||||
*
|
||||
* You may:
|
||||
* a) Use and distribute this code exactly as you received without payment or
|
||||
* a royalty or other fee.
|
||||
* b) Create extensions for this code, provided that you make the extensions
|
||||
* publicly available and document your modifications clearly.
|
||||
* c) Charge for a fee for warranty or support or for accepting liability
|
||||
* obligations for your customers.
|
||||
*
|
||||
* You may NOT:
|
||||
* a) Charge for the use of the original code or extensions, including in
|
||||
* electronic distribution models, such as ASP (Application Service
|
||||
* Provider).
|
||||
* b) Charge for the original source code or your extensions other than a
|
||||
* nominal fee to cover distribution costs where such distribution
|
||||
* involves PHYSICAL media.
|
||||
* c) Modify or delete any pre-existing copyright notices, change notices,
|
||||
* or License text in the Licensed Software
|
||||
* d) Assert any patent claims against the Licensor or Contributors, or
|
||||
* which would in any way restrict the ability of any third party to use the
|
||||
* Licensed Software.
|
||||
*
|
||||
* You must:
|
||||
* a) Document any modifications you make to this code including the nature of
|
||||
* the change, the authors of the change, and the date of the change.
|
||||
* b) Make the source code for any extensions you deploy available via an
|
||||
* Electronic Distribution Mechanism such as FTP or HTTP download.
|
||||
* c) Notify the licensor of the availability of source code to your extensions
|
||||
* and include instructions on how to acquire the source code and updates.
|
||||
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
|
||||
* reproduce, perform, modify, sublicense, and distribute your extensions.
|
||||
*
|
||||
* The Original Code is: CommuniCore
|
||||
* Olavo Farias
|
||||
* 2006-04-7 olavo.farias@gmail.com
|
||||
*
|
||||
* The Initial Developer of the Original Code is CommuniCore.
|
||||
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
|
||||
$subpanel_layout = array(
|
||||
|
||||
|
||||
'where' => '',
|
||||
|
||||
'list_fields' => array(
|
||||
'name'=>array(
|
||||
'vname' => 'LBL_LIST_NAME',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
|
||||
'width' => '40%',
|
||||
),
|
||||
'CODE'=>array(
|
||||
'vname' => 'Indeks',
|
||||
|
||||
|
||||
'width' => '10%',
|
||||
),
|
||||
'QUANTITY'=>array(
|
||||
|
||||
'vname' => 'Ilość',
|
||||
'align' => 'right',
|
||||
'width' => '5%',
|
||||
),
|
||||
'DOCUMENT_TYPE'=>array(
|
||||
|
||||
'vname' => 'Dokument',
|
||||
'align' => 'right',
|
||||
'width' => '5%',
|
||||
),
|
||||
'REGISTER_DATE'=>array(
|
||||
|
||||
'vname' => 'Data dokumentu',
|
||||
'align' => 'right',
|
||||
'width' => '5%',
|
||||
),
|
||||
'DOCUMENT_NO'=>array(
|
||||
|
||||
'vname' => 'Numer',
|
||||
'align' => 'right',
|
||||
'width' => '5%',
|
||||
),
|
||||
|
||||
'PRICE_NETTO'=>array(
|
||||
|
||||
'vname' => 'Cena netto',
|
||||
'align' => 'right',
|
||||
'width' => '5%',
|
||||
),
|
||||
'TOTAL_NETTO'=>array(
|
||||
|
||||
'vname' => 'Wartość netto',
|
||||
'align' => 'right',
|
||||
'width' => '5%',
|
||||
),
|
||||
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
82
modules/EcmProducts/metadata/subpanels/default.php
Executable file
82
modules/EcmProducts/metadata/subpanels/default.php
Executable file
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*****************************************************************************
|
||||
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
|
||||
* Version 1.1 ("License"); You may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
* http://opensource.org/licenses/rpl.php. Software distributed under the
|
||||
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
|
||||
* either express or implied.
|
||||
*
|
||||
* You may:
|
||||
* a) Use and distribute this code exactly as you received without payment or
|
||||
* a royalty or other fee.
|
||||
* b) Create extensions for this code, provided that you make the extensions
|
||||
* publicly available and document your modifications clearly.
|
||||
* c) Charge for a fee for warranty or support or for accepting liability
|
||||
* obligations for your customers.
|
||||
*
|
||||
* You may NOT:
|
||||
* a) Charge for the use of the original code or extensions, including in
|
||||
* electronic distribution models, such as ASP (Application Service
|
||||
* Provider).
|
||||
* b) Charge for the original source code or your extensions other than a
|
||||
* nominal fee to cover distribution costs where such distribution
|
||||
* involves PHYSICAL media.
|
||||
* c) Modify or delete any pre-existing copyright notices, change notices,
|
||||
* or License text in the Licensed Software
|
||||
* d) Assert any patent claims against the Licensor or Contributors, or
|
||||
* which would in any way restrict the ability of any third party to use the
|
||||
* Licensed Software.
|
||||
*
|
||||
* You must:
|
||||
* a) Document any modifications you make to this code including the nature of
|
||||
* the change, the authors of the change, and the date of the change.
|
||||
* b) Make the source code for any extensions you deploy available via an
|
||||
* Electronic Distribution Mechanism such as FTP or HTTP download.
|
||||
* c) Notify the licensor of the availability of source code to your extensions
|
||||
* and include instructions on how to acquire the source code and updates.
|
||||
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
|
||||
* reproduce, perform, modify, sublicense, and distribute your extensions.
|
||||
*
|
||||
* The Original Code is: CommuniCore
|
||||
* Olavo Farias
|
||||
* 2006-04-7 olavo.farias@gmail.com
|
||||
*
|
||||
* The Initial Developer of the Original Code is CommuniCore.
|
||||
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
|
||||
$subpanel_layout = array(
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'EcmProducts'),
|
||||
),
|
||||
|
||||
'where' => '',
|
||||
|
||||
'list_fields' => array(
|
||||
'name'=>array(
|
||||
'vname' => 'LBL_LIST_NAME',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
'width' => '50%',
|
||||
),
|
||||
'assigned_user_name' => array (
|
||||
'name' => 'assigned_user_name',
|
||||
'vname' => 'LBL_LIST_ASSIGNED_TO_NAME',
|
||||
),
|
||||
'edit_button'=>array(
|
||||
'widget_class' => 'SubPanelEditButton',
|
||||
'module' => 'EcmProducts',
|
||||
'width' => '4%',
|
||||
),
|
||||
'remove_button'=>array(
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'module' => 'EcmProducts',
|
||||
'width' => '5%',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user