438 lines
12 KiB
PHP
Executable File
438 lines
12 KiB
PHP
Executable File
<?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['EcmProductB2Bs'] = array(
|
|
|
|
'CODE' => array(
|
|
'width' => '1',
|
|
'default' => true,
|
|
'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',
|
|
'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' => ' '
|
|
),
|
|
);
|
|
?>
|