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

View File

@@ -0,0 +1,124 @@
<?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['EcmInvoiceOutOlds'] = array (
'name' => array ( 'query_type' => 'default' ),
'description' => 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' ),
'status' => array ( 'query_type' => 'default' ),
'register_date' => array ( 'query_type' => 'default' ),
'parent_name' => array( 'query' => 'default' ),
);
?>

View File

@@ -0,0 +1,336 @@
<?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".
* ****************************************************************************** */
global $app_list_strings;
$viewdefs['EcmInvoiceOutOlds']['DetailView'] = array(
'templateMeta' => array(
'form' => array(
'buttons' => array(
array(
'customCode' => '{if $bean->aclAccess("edit") && $bean->status=="registered"}<input title="{$APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{$APP.LBL_EDIT_BUTTON_KEY}" class="button" onclick="this.form.return_module.value=\'EcmInvoiceOutOlds\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$id}\'; this.form.action.value=\'EditView\';" type="submit" name="Edit" id="edit_button" value="{$APP.LBL_EDIT_BUTTON_LABEL}">{/if}'
),
// array(
// 'customCode' => '{if $bean->aclAccess("edit") && $bean->status=="registered"}<input title="{$APP.LBL_DUPLICATE_BUTTON_TITLE}" accessKey="{$APP.LBL_DUPLICATE_BUTTON_KEY}" class="button" onclick="this.form.return_module.value=\'EcmQuestionnaires\'; this.form.return_action.value=\'DetailView\'; this.form.isDuplicate.value=true; this.form.action.value=\'EditView\'; this.form.return_id.value=\'{$id}\';" type="submit" name="Duplicate" value="{$APP.LBL_DUPLICATE_BUTTON_LABEL}" id="duplicate_button">{/if}'
// ),
// array(
// 'customCode' => '{if $bean->aclAccess("delete") && $bean->status=="registered"}<input title="{$APP.LBL_DELETE_BUTTON_TITLE}" accessKey="{$APP.LBL_DELETE_BUTTON_KEY}" class="button" onclick="this.form.return_module.value=\'EcmQuestionnaires\'; this.form.return_action.value=\'ListView\'; this.form.action.value=\'Delete\'; return confirm(\'{$APP.NTC_DELETE_CONFIRMATION}\');" type="submit" name="Delete" value="{$APP.LBL_DELETE_BUTTON_LABEL}">{/if}'
// ),
/*
array(
'customCode' => '<input name="invoiceout_pdf" id="invoiceout_pdf" title="{$MOD.LBL_INVOICEOUT_PDF_BUTTON_TITLE}" accessKey="{$MOD.LBL_INVOICEOUT_PDF_BUTTON_KEY}" class="button" onclick="window.location = \'index.php?module=EcmInvoiceOutOlds&action=previewPDF&to_pdf=1&record={$fields.id.value}\';" type="button" value="{$MOD.LBL_INVOICEOUT_PDF}">'
), */
array(
'customCode' => '{$CATALOGUE}'
),
array(
'customCode' => '<input name="create_correct" id="create_correct" title="{$MOD.LBL_CORRECT_TITLE}" class="button" onclick="window.location = \'index.php?module=EcmInvoiceOuts&offset=1&return_module=EcmInvoiceOuts&action=EditView&return_action=index&record={$fields.id.value}&isCorrect=true\';" type="button" value="{$MOD.LBL_CORRECT}">'
),
// array(
// 'customCode' => '{if $bean->type=="correct" && !$hasCorrect}<input name="create_ks" id="create_ks" title="Create KS Document" class="button" onclick="window.location = \'index.php?module=EcmStockDocCorrects&out_module=EcmInvoiceOutOlds&action=EditView&out_id={$fields.id.value}\';" type="button" value="Create KS Document">{/if}'
// ),
// array(
// 'customCode' => '{if $bean->aclAccess("edit") && $fields.accepted.value == 1 && $OPT.user.confirm_invoiceouts == 1}<input title="{$MOD.LBL_REPAIR_BUTTON_TITLE}" accessKey="{$MOD.LBL_REPAIR_BUTTON_KEY}" class="button" onclick="window.location = \'index.php?module=EcmInvoiceOutOlds&action=DetailView&record={$fields.id.value}&status=not_accepted&return_module=\'+this.form.return_module.value+\'&return_action=\'+this.form.return_action.value+\'&return_id=\'+this.form.return_id.value;" type="button" name="Repair" id="repair_button" value="{$MOD.LBL_REPAIR_BUTTON_LABEL}">{/if}'
// ),
// array(
// 'customCode' => '<input title="" accessKey="" class="button" onclick="window.location = \'index.php?module=EcmInvoiceOutOlds&action=downloadXML&record={$fields.id.value}\'" type="button" name="Repair" id="repair_button" value="Create XML">'
// ),
// array(
// 'customCode' => '<input title="" accessKey="" class="button" onclick="window.location = \'index.php?module=EcmInvoiceOutOlds&action=downloadXML&record={$fields.id.value}&duplicate=1\'" type="button" name="c_dup_xml" id="c_dup_xml" value="Create Duplicate XML">'
// ),
// array(
// 'customCode' => '<input name="workreport_to_invoice" id="workreport_to_invoice" title="{$MOD.LBL_WORKREPORT_TO_INVOICE_BUTTON_TITLE}" accessKey="{$MOD.LBL_WORKREPORT_TO_INVOICE_BUTTON_KEY}" class="button" onclick="window.location = \'index.php?module=EcmInvoiceOutOlds&action=EditView&work_report_record={$fields.id.value}\';" type="button" value="{$MOD.LBL_WORKREPORT_TO_INVOICE}">'
// ),
),
'hidden' => array(
'<input type="hidden" name="position_list" id="position_list" value=\'{$POSITION_LIST}\'>',
//'<input type="hidden" name="discount" id="discount" value=\'{$fields.discount.value}\'>',
//'<input type="hidden" name="parent_type" id="parent_type" value="{$fields.parent_type.value}">',
'<input type="hidden" name="parent_id" id="parent_id" value="{$fields.parent_id.value}">',
'<input type="hidden" name="assigned_user_id" id="assigned_user_id" value="{$fields.assigned_user_id.value}">',
'<input type="hidden" name="email_id" id="email_id" value="">',
'<span id="quickInfoH2" style="display:none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>{$fields.document_no.value}</span> - <span>{$fields.parent_name.value}</span> - <span>{$fields.parent_contact_name.value}</span> - <span>{$fields.parent_address_street.value}</span>&nbsp; &nbsp;<span>{$fields.parent_address_postalcode.value}</span>&nbsp;<span>{$fields.parent_address_city.value}</span>&nbsp; &nbsp;<span>{$fields.parent_address_country.value}</span> - <span id="total_h">{$fields.total.value}</span></span>'
),
),
'maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30')
),
'includes' => array(
array('file' => 'include/JSON.js'),
array('file' => 'modules/EcmInvoiceOutOlds/MyTable.js'),
array('file' => 'include/ECM/EcmPreviewPDF/EcmPreviewPDF.js'),
array('file' => 'modules/EcmInvoiceOutOlds/EcmInvoiceOutOldsDetailView.js'),
),
),
'panels' => array(
'LBL_DETAILS_TAB' => array(
array(
'document_no',
'assigned_user_name'
),
array(
'parent_name',
'type'
),
array(
'register_date',
array(
'name' => 'ecmpaymentcondition_name',
'customCode' => '{$fields.ecmpaymentcondition_name.value}',
),
),
array(
'sell_date',
array (
'name' => 'ecminvoiceout_name',
'tabIndex' => '1',
'customCode' => '{$INVOICES_INFO}',
)
),
array(
'payment_date',
'template_name',
),
array('name', 'description'),
array(
'order_no',
'supplier_code',
),
array(
array(
'name' => 'to_informations',
'allCols' => true,
'hideLabel' => true,
'customCode' => '<div class="tabForm" style="border-top:none;width:100%;height:1px;padding:0px;align:center;"></div><h4>{$MOD.LBL_TO_PAYMENTS}</h4>'
),
),
array(
array(
'name' => 'to',
'label' => 'LBL_TO_PAID',
'customCode' => '{$TO_PAID}',
),
'payment_date_d',
),
array(
'prepaid',
'payment_date',
),
array(
'prepaid_nr',
'payment_method',
),
array(
'paid_val',
'payment_method_paid'
),
array(
array(
'name' => 'left',
'label' => 'LBL_LEFT',
'customCode' => '{$LEFT}',
),
array(
'name' => 'weight_total',
'label' => 'LBL_WEIGHT_NETTO',
'customCode' => '{$WEIGHT_TOTAL}',
),
),
array(
array(
'name' => 'to_informations',
'allCols' => true,
'hideLabel' => true,
'customCode' => '<div class="tabForm" style="border-top:none;width:100%;height:1px;padding:0px;align:center;"></div><h4>{$MOD.LBL_TO_INFORMATIONS}</h4>'
),
),
array(
'parent_name',
'to_nip'
),
array(
array(
'name' => 'parent_contact_name',
'customCode' => '{$fields.parent_contact_title.value} {$fields.parent_contact_name.value}'
),
array('name' => 'currency_id', 'label' => 'LBL_CURRENCY')
),
array(
'parent_address_street',
//'currency_value',
),
array(
array(
'name' => 'parent_address_city',
'customCode' => '{$fields.parent_address_postalcode.value} {$fields.parent_address_city.value}',
),
array('name' => 'pdf_type', 'label' => 'LBL_PDF_TYPE'),
),
array(
'parent_address_country'
),
array(
array(
'name' => 'to_informations',
'allCols' => true,
'hideLabel' => true,
'customCode' => '<div class="tabForm" style="border-top:none;width:100%;height:1px;padding:0px;align:center;"></div><h4>{$MOD.LBL_PARENT_SHIPPING_ADDRESS}</h4>'
),
),
array('parent_shipping_address_name'),
array('parent_shipping_address_street'),
array(
array(
'name' => 'parent_shipping_address_city',
'customCode' => '{$fields.parent_shipping_address_postalcode.value} {$fields.parent_shipping_address_city.value}'
),
),
array('parent_shipping_address_country'),
),
'LBL_ITEMS_TAB' => array(
array(
array(
'name' => 'items_list_panel',
'allCols' => true,
'hideLabel' => true,
'customCode' => '
'
// .'{literal}'.
// '<script language="javascript">var parent_options='.$json->encode($app_list_strings['ecmworkitems_parent_dom']).';</script>'
// .'{/literal}'.
. '
<link rel="stylesheet" type="text/css" href="modules/EcmInvoiceOutOlds/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;">
<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="37%">{$MOD.LBL_EDITTABLE_NAME}</td>
<td width="5%">{$MOD.LBL_EDITTABLE_QUANTITY}</td>
<td width="8%">{$MOD.LBL_EDITTABLE_UNIT}</td>
<td width="10%">{$MOD.LBL_EDITTABLE_PRICE_SUB}</td>
<td width="6%">{$MOD.LBL_EDITTABLE_DISCOUNT}</td>
<td width="10%">{$MOD.LBL_EDITTABLE_PRICE}<br>(netto / brutto)</td>
<td width="6%">{$MOD.LBL_EDITTABLE_VAT}</td>
<td width="10%">{$MOD.LBL_EDITTABLE_TOTAL}<br>(netto / brutto)</td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
<table width="100%"" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="55%" class="dataLabel" valign="top">
&nbsp;
</td> <!--color:#b3b9cf;-->
<td width="40%" class="dataField" style="text-align: left;">
<br>
<table id="result_table" cellpadding="0" cellspacing="0" style="width:100%; height:100%; border: 1px solid rgb(48,192,255);">
<tr id="subtotal_tr">
<td class="positionsLabel" style="border-top:0px;">{$MOD.LBL_SUBTOTAL}</td>
<td class="positionsField" style="border-top:0px;"><input type="text" style="border:0px;font-weight:900;width:100%;text-align:right;" readonly="readonly" name="subtotal" id="subtotal" value=\'{$fields.subtotal.value}\'></td>
</tr>
<tr id="total_tr">
<td class="positionsLabel">{$MOD.LBL_TOTAL}</td>
<td class="positionsField"><input type="text" readonly="readonly" style="border:0px;font-weight:900;width:100%;text-align:right;" name="total" id="total" value=\'{$fields.total.value}\'></td>
</tr>
</table>
</td>
<td width="5%" class="dataField" style="text-align: left;">&nbsp;</td>
</tr>
</table>
',
)
),
),
'LBL_TEXTS_TAB' => array(
array('header_text'),
array('footer_text'),
array('ads_text'),
),
// 'LBL_PREVIEW_TAB' => array(
// array(
// array(
// 'name' => 'preview_panel',
// 'allCols' => true,
// 'hideLabel' => true,
// 'customCode' => '<span id="previewPDF" width="100%" height="100%"></span>'
// ),
// ),
// ),
/*
'LBL_PREVIEW_TAB' => array(
array(
array(
'name' => 'preview_panel',
'allCols' => true,
'hideLabel' => true,
'customCode' =>
'
<select id="preview_type" name="preview_type">
<option value="">Faktura</option>
<option value="exp">Lista rozchodowa</option>
<option value="pl">Specyfikacja wysyłki</option>
</select>
<input type="button" class="button" onClick="preview_pdf();" value="Generuj"/>
<hr/>
<span id="previewPDF" width="100%" height="100%"></span>
',
),
),
),*/
// 'LBL_EMAIL_TAB' => array(
// array(
// array(
// 'name' => 'email_panel',
// 'allCols' => true,
// 'hideLabel' => true,
// 'customCode' => '{$EMAIL_LINK_TAB}<span id="emailTAB" width="100%" height="100%"></span>'
// ),
// ),
// ),
),
);
?>

View File

@@ -0,0 +1,364 @@
<?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".
* *******************************************************************************/
global $sugar_config;
/*
if((!isset($focus->footer_text) || $focus->footer_text == '') && (!isset($focus->name) || $focus->name == '') && (!isset($focus->id) || $focus->id == '')) $focus->footer_text = translate('LBL_DEFAULT_FOOTER_TEXT', 'EcmDocumentTemplates');
if((!isset($focus->header_text) || $focus->header_text == '') && (!isset($focus->name) || $focus->name == '') && (!isset($focus->id) || $focus->id == '')) $focus->header_text = translate('LBL_DEFAULT_HEADER_TEXT', 'EcmDocumentTemplates');
*/
$viewdefs['EcmInvoiceOutOlds']['EditView'] = array (
'templateMeta' => array (
'form' => array (
'enctype'=>'multipart/form-data',
'buttons'=>array(
array('customCode' => '<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="return SaveForm();" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">'),
array('customCode' => '<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="window.location=\'index.php?module=EcmInvoiceOutOlds&action=index\';" type="button" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">'),
array('customCode' => '<input class="button" onclick="test();" type="button" name="button" value="test">'),
//todo: create 'cancel function in js
),
'hidden'=>array(
'<input type="hidden" name="position_list" id="position_list" value=\'{$POSITION_LIST}\'>',
'<input type="hidden" name="parent_type" id="parent_type" value="{$PARENT_TYPE}">',
'<input type="hidden" name="parent_doc_id" id="parent_doc_id" value="{$PARENT_DOC_ID}">',
'<input type="hidden" name="temp_id" id="temp_id" value=\'{$TEMP_ID}\'>',
'<input type="hidden" name="ecmlanguage" id="ecmlanguage" value=\'\'>',
),
),
'maxColumns' => '2',
'widths' => array (
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30'),
),
'includes' => array(
array('file'=>'include/JSON.js'),
array('file'=>'include/javascript/quicksearch.js'),
array('file'=>'include/ECM/EcmPreviewPDF/EcmPreviewPDF.js'),
array('file'=>'modules/EcmInvoiceOutOlds/AjaxSearch/AjaxSearch.js'),
array('file'=>'modules/EcmInvoiceOutOlds/formloader.js'),
array('file'=>'modules/EcmInvoiceOutOlds/MyTable.js'),
array('file'=>'modules/EcmInvoiceOutOlds/EcmInvoiceOutOlds.js'),
array('file'=>'modules/EcmProducts/mintajax.js'),
array('file'=>'modules/EcmProducts/helper.js'),
),
),
'panels' => array (
'LBL_DETAILS_TAB'=> array(
array(
array(
'name' => 'document_no',
'tabIndex' => 'f',
'customCode' => '<div id="tst" style="display:none;"></div><input readonly="readonly" type="text" name="document_no" id="document_no" value=\'{$fields.document_no.value}\'>
<input type="hidden" name="number" id="number" value=\'{$fields.number.value}\'>'
),
'assigned_user_name'
),
array (
'parent_name',
'type'
),
array(
array ( 'name' => 'parent_index_dbf',
'customCode' => '<div name=\'parent_index_dbf\' id=\'parent_index_dbf\'></div>',
),
array(
'name' => 'template_name',
'label'=>'LBL_TEMPLATE_NAME',
'customCode'=>'<select id="template_id" name="template_id" onChange="document.getElementById(\'template_name\').value=this.options[this.selectedIndex].text;">{$DOCUMENT_TEMPLATES_OPTIONS}</select><input type="hidden" id="template_name" name="template_name" value="{$fields.template_name.value}">'
),
),
array (
array (
'name' => 'register_date',
'type' => 'datetime',
'displayParams'=>array('showFormats'=>true)
),
'ecminvoiceoutold_name'
),
array (
array (
'name' => 'sell_date',
'type' => 'datetime',
'displayParams'=>array('showFormats'=>true)
),
array(
'label'=>'LBL_STOCK_NAME',
'name'=>'stock_id',
'customCode'=>'<select name="stock_id" id="stock_id">{$STOCK}</select>',
),
),
array (
array (
'name' => 'name',
'label' => 'LBL_NAME',
),
),
array(
'order_no',
'supplier_code',
),
array (
/*
array (
'name' => 'discount',
'tabindex' => 'd',
'customCode' => '<input type="text" name="discount" id="discount" value="{$fields.discount.value}" onChange="if(CheckDiscount() != -1) calculateTotal();" onKeyDown="return N.KeyPressed(event,this.parentNode,\'decimalNumber\');" >%',
)
*/
),
//payment 9informations
array(
array(
'name' => 'to_informations',
'allCols' => true,
'hideLabel' => true,
'customCode' => '<div class="tabForm" style="border-top:none;width:100%;height:1px;padding:0px;align:center;"></div><h4>{$MOD.LBL_TO_PAYMENTS}</h4>'
),
),
//end payment informations
array(
array(
'name' => 'to_paid',
'label'=> 'LBL_TO_PAID',
'customCode' => '<div id="to_paid"></div>',
),
'ecmpaymentcondition_name',
),
array(
'prepaid',
'payment_date',
),
array(
'prepaid_nr',
//'payment_method',
),
array(
'paid_val',
'payment_method_paid'
),
array(
array(
'name' => 'left',
'label' => 'LBL_LEFT',
'customCode' => '<div id="left"></div>',
),
),
array(
array(
'name' => 'to_informations',
'allCols' => true,
'hideLabel' => true,
'customCode' => '<div class="tabForm" style="border-top:none;width:100%;height:1px;padding:0px;align:center;"></div><h4>{$MOD.LBL_TO_INFORMATIONS}</h4>'
),
),
array (
array(
'name' => 'parent_name_copy',
'tabIndex' => '1',
'customCode' => '<input type="text" name="parent_name_copy" id="parent_name_copy" value="{$fields.parent_name.value}" readOnly="readonly" size="30" />'
),
array(
'name' => 'to_nip',
'tabIndex' => '1',
),
),
array (
array(
'name' => 'parent_contact_name',
'tabIndex' => '1',
),
array('name'=>'currency_id','label'=>'LBL_CURRENCY'),
),
array (
array(
'name' => 'parent_contact_title',
'tabIndex' => '1',
),
//array('name'=>'currency_value','label'=>'LBL_CURRENCY_VALUE'),
),
array (
array(
'name' => 'parent_address_street',
'tabIndex' => '1',
'customCode' => '<textarea tabindex="1" id="parent_address_street" name="parent_address_street" rows="2" cols="30" maxlength="150" >{$fields.parent_address_street.value}</textarea>',
),
array('name'=>'pdf_type','label'=>'LBL_PDF_TYPE'),
),
array (
array(
'name' => 'parent_address_city',
'tabIndex' => '1',
'customCode' => '<input maxlength="8" type="text" name="parent_address_postalcode" id="parent_address_postalcode" value="{$fields.parent_address_postalcode.value}" style="vertical-align:top;width:80px;" />&nbsp;&nbsp;<input type="text" name="parent_address_city" id="parent_address_city" value="{$fields.parent_address_city.value}" style="vertical-align:top;width:150px;" />'
),
array('name'=>'currency_value_nbp','label'=>'LBL_CURRENCY_VALUE_NBP'),
),
array (
array(
'name' => 'parent_address_country',
'tabIndex' => '1',
),
),
array(
array(
'name' => 'to_informations',
'allCols' => true,
'hideLabel' => true,
'customCode' => '<div class="tabForm" style="border-top:none;width:100%;height:1px;padding:0px;align:center;"></div><h4>{$MOD.LBL_PARENT_SHIPPING_ADDRESS}</h4>'
),
),
array(
array(
'name' => 'address',
'customCode' => '<div id=\'addresses\'></div>',
), '',
),
array('parent_shipping_address_name'),
array('parent_shipping_address_street'),
array (
array(
'name' => 'parent_shipping_address_city',
'tabIndex' => '1',
'customCode' => '<input maxlength="8" type="text" name="parent_shipping_address_postalcode" id="parent_shipping_address_postalcode" value="{$fields.parent_shipping_address_postalcode.value}" style="vertical-align:top;width:80px;" />&nbsp;&nbsp;<input type="text" name="parent_shipping_address_city" id="parent_shipping_address_city" value="{$fields.parent_shipping_address_city.value}" style="vertical-align:top;width:150px;" />'
),
),
array('parent_shipping_address_country'),
),
'LBL_ITEMS_TAB'=> array(
array(
array(
'name' => 'items_list_panel',
'allCols' => true,
'hideLabel' => true,
'customCode' => '
<link rel="stylesheet" type="text/css" href="modules/EcmInvoiceOutOlds/MyTable.css" />
<link rel="stylesheet" type="text/css" href="modules/EcmInvoiceOutOlds/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="37%">{$MOD.LBL_EDITTABLE_NAME}</td>
<td width="5%">{$MOD.LBL_EDITTABLE_QUANTITY}</td>
<td width="10%">{$MOD.LBL_EDITTABLE_PRICE_SUB}</td>
<td width="6%">{$MOD.LBL_EDITTABLE_DISCOUNT}</td>
<td width="6%">{$MOD.LBL_EDITTABLE_VAT}</td>
<td width="10%">{$MOD.LBL_EDITTABLE_PRICE}<br>(netto / brutto)</td>
<td width="8%">{$MOD.LBL_EDITTABLE_UNIT}</td>
<td width="10%">{$MOD.LBL_EDITTABLE_TOTAL}<br>(netto / brutto)</td>
<td width="8%">Kod odb.</td>
<td width="8%">{$MOD.LBL_EDITTABLE_STOCK}</td>
<td width="10%">{$MOD.LBL_EDITTABLE_OPTIONS}</td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
<table width="100%"" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="55%" class="dataLabel" valign="top">
<a href="javascript: N.moveUpRow();" >{$MOD.LBL_MOVE_ROW_UP}</a> - <a href="javascript: N.moveDownRow();" >{$MOD.LBL_MOVE_ROW_DOWN}</a>
</td> <!--color:#b3b9cf;-->
<td width="40%" class="dataField" style="text-align: left;">
<br>
<table id="result_table" cellpadding="0" cellspacing="0" style="width:100%; height:100%; border: 1px solid rgb(48,192,255);">
<tr id="subtotal_tr">
<td class="positionsLabel" style="border-top:0px;">{$MOD.LBL_SUBTOTAL}</td>
<td class="positionsField" style="border-top:0px;"><input type="text" style="border:0px;font-weight:900;width:100%;text-align:right;" readonly="readonly" name="subtotal" id="subtotal" value=\'{$fields.subtotal.value}\'></td>
</tr>
<tr id="total_tr">
<td class="positionsLabel">{$MOD.LBL_TOTAL}</td>
<td class="positionsField"><input type="text" readonly="readonly" style="border:0px;font-weight:900;width:100%;text-align:right;" name="total" id="total" value=\'{$fields.total.value}\'></td>
</tr>
</table>
</td>
<td width="5%" class="dataField" style="text-align: left;">&nbsp;</td>
</tr>
</table>
',
)
),
),
'LBL_TEXTS_TAB'=> array(
array(array('name' => 'header_text', 'label' => 'LBL_HEADER_TEXT','customCode' => '{$MFP.footer}<br /><textarea id="header_text" name="header_text" rows="5" style="width:100%;">{$fields.header_text.value}</textarea>'),),
array(array('name' => 'footer_text', 'label' => 'LBL_FOOTER_TEXT','customCode' => '{$MFP.header}<br /><textarea id="footer_text" name="footer_text" rows="5" style="width:100%;">{$fields.footer_text.value}</textarea>'),),
array(array('name' => 'ads_text', 'label' => 'LBL_ADS_TEXT','customCode' => '{$MFP.ads}<br /><textarea id="ads_text" name="ads_text" rows="5" style="width:100%;">{$fields.ads_text.value}</textarea>'),),
),
),
);
?>

View File

@@ -0,0 +1,234 @@
<?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["EcmInvoiceOutOlds"] = array(
'ECMPAYMENTCONDITION_NAME'=>array(
'label'=>'LBL_PAYMENTCONDITION_NAME',
),
'CONTACT_NAME'=>array(
'label'=>'LBL_CONTACT_NAME',
),
'ECMLANGUAGE'=>array(
'label'=>'LBL_ECMLANGUAGE',
),
'DISCOUNT'=>array(
'label'=>'LBL_DISCOUNT',
),
'PARENT_NAME_COPY'=>array(
'label'=>'LBL_PARENT_NAME_COPY',
),
'PARENT_CONTACT_NAME'=>array(
'label'=>'LBL_PARENT_CONTACT_NAME',
),
'PARENT_CONTACT_TITLE'=>array(
'label'=>'LBL_PARENT_CONTACT_TITLE',
),
'TO_IS_VAT_FREE'=>array(
'label'=>'LBL_TO_IS_VAT_FREE',
),
'TO_VATID'=>array(
'label'=>'LBL_TO_VATID',
),
'PARENT_ADDRESS_STREET'=>array(
'label'=>'LBL_PARENT_ADDRESS_STREET',
),
'PARENT_ADDRESS_POSTALCODE'=>array(
'label'=>'LBL_PARENT_ADDRESS_POSTALCODE',
),
'PARENT_ADDRESS_COUNTRY'=>array(
'label'=>'LBL_PARENT_ADDRESS_COUNTRY',
),
'PARENT_ADDRESS_CITY'=>array(
'label'=>'LBL_PARENT_ADDRESS_CITY',
),
'STATUS' => array(
'width' => '3',
'label' => '&nbsp;',
'default' => true,
'sortable' => true,
),
'NUMBER' => array(
'width' => '12',
'label' => 'n',
'sortable' => true,
'default' => true,
),
'DOCUMENT_NO' => array(
'width' => '12',
'label' => 'LBL_DOCUMENT_NO',
'sortable' => true,
'link' => true,
'default' => true,
),
'TYPE' => array(
'width' => '10',
'label' => 'LBL_TYPE',
'default' => true,
),
'NAME' => array(
'width' => '20',
'label' => 'LBL_NAME',
'default' => true,
'link'=>true,
'sortable' => false),
'PARENT_ID' => array(
'width'=>'1',
'sortable'=>false,
'label'=>'&nbsp;',
'default'=>true,
'customCode'=>' ',
),
'PARENT_NAME' => array(
'width' => '15',
'label' => 'LBL_PARENT_NAME',
'default' => true,
'link'=>true,
'module'=>'Accounts',
'id'=>'PARENT_ID',
),
'TOTAL' => array(
'width' => '10',
'label' => 'LBL_TOTAL',
'default' => false,
),
'PDF_SUBTOTAL' => array(
'width' => '10',
'label' => 'Suma netto',
'default' => true,
),
'PAID' => array(
'width' => '3',
'label' => 'Paid',
'default' => false,
),
'MODIFIED_BY_NAME' => array(
'width' => '10',
'label' => 'LBL_MODIFIED_USER',
'module' => 'Users',
'id' => 'USERS_ID',
'default' => false,
'sortable' => false,
'related_fields' => array('modified_user_id'),
),
'REGISTER_DATE' => array(
'width' => '15',
'label' => 'LBL_REGISTER_DATE',
'default' => true,
'sortable' => true,
),
'CORRECT' => array(
'width' => '15',
'label' => 'Korekta',
'default' => true,
'sortable' => false,
),
'ASSIGNED_USER_NAME' => array(
'width' => '10',
'label' => 'LBL_LIST_ASSIGNED_USER',
'default' => true
),
/*
'CONVERT' => array(
'width' => '2',
'label' => '&nbsp;',
'link' => true,
'default' => true,
'sortable' => false,
'customCode' => '<a href="index.php?module=EcmInvoiceOutOlds&action=EditView&out_id={$ID}&out_module=EcmInvoiceOutOlds&return_module=EcmInvoiceOutOlds&return_action=index"><img border="0" src="modules/EcmInvoiceOutOlds/images/convert.gif" title="'.translate('LBL_LIST_TO_INVOICE','EcmInvoiceOutOlds').'" /></a>'
),
*/
/*
'PDF_URL' => array(
'width' => '2',
'label' => '&nbsp;',
'link' => false,
'default' => true,
'sortable' => false,
),
'CORRECT' => array(
'width' => '2',
'label' => '&nbsp;',
'default' => true,
'customCode' => '<a href="index.php?module=EcmInvoiceOutOlds&offset=1&return_module=EcmInvoiceOutOlds&action=EditView&return_action=index&record={$ID}&isCorrect=true"><img border="0" src="modules/EcmInvoiceOutOlds/images/correct.jpg" title="Correct" /></a>',
'sortable' => false,
),
'DUPLICATE' => array(
'width' => '2',
'label' => '&nbsp;',
'default' => true,
'customCode' => '<a href="index.php?module=EcmInvoiceOutOlds&action=EditView&record={$ID}&isDuplicate=true"><img border="0" src="modules/EcmInvoiceOutOlds/images/duplicate.jpg" title="Duplicate" /></a>',
'sortable' => false,
),
'OPTIONS' => array(
'label' => '&nbsp;',
'default' => true,
'sortable' => false,
)
*/
);
?>

View File

@@ -0,0 +1,139 @@
<?php
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU General Public License version 3.
*
* In accordance with Section 7(b) of the GNU General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$searchdefs['EcmInvoiceOutOlds'] = array (
'templateMeta' => array (
'maxColumns' => '3',
'widths' => array (
'label' => '10',
'field' => '30'
),
),
'layout' => array (
'basic_search' => array (
'document_no',
'status',
'type',
'parent_name',
'register_date',
'wz_name',
'assigned_user_name',
'order_no',
'suppllier_code',
),
'advanced_search' => array (
'name',
'assigned_user_name',
'parent_name',
'ecmpaymentcondition_name',
'contact_name',
'status',
'type',
'ecmlanguage',
'register_date',
'discount',
'parent_name_copy',
'parent_contact_name',
'parent_contact_title',
'to_is_vat_free',
'show_images_on_offers',
'show_recipient_code',
'to_vatid',
'total',
'parent_address_street',
'parent_address_postalcode',
'parent_address_country',
'parent_address_city',
),
),
);
?>

View File

@@ -0,0 +1,152 @@
<?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']['EcmInvoiceOutOlds'] = array(
'LBL_DETAILVIEW'=>array(
'template' => 'xtpl',
'template_file' => 'modules/EcmInvoiceOutOlds/DetailView.html',
'php_file' => 'modules/EcmInvoiceOutOlds/DetailView.php',
'type' => 'DetailView',
),
'LBL_EDITVIEW'=>array(
'template' => 'xtpl',
'template_file' => 'modules/EcmInvoiceOutOlds/EditView.html',
'php_file' => 'modules/EcmInvoiceOutOlds/EditView.php',
'type' => 'EditView',
),
'LBL_LISTVIEW'=>array(
'template' => 'listview',
'meta_file' => 'modules/EcmInvoiceOutOlds/listviewdefs.php',
'type' => 'ListView',
),
'LBL_SEARCHFORM'=>array(
'template' => 'xtpl',
'template_file' => 'modules/EcmInvoiceOutOlds/SearchForm.html',
'php_file' => 'modules/EcmInvoiceOutOlds/ListView.php',
'type' => 'SearchForm',
),
);

View File

@@ -0,0 +1,120 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/**
* Layout definition for Accounts
*
* 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".
*/
$layout_defs['EcmInvoiceOutOlds']['subpanel_setup'] = array (
'ecmsalesw' => array(
'module'=>'EcmInvoiceOutOlds',
'order'=>0,
'sort_by'=>'',
'get_subpanel_data' => 'function:getEcmSalesSubPanel',
'generate_select' => false,
'title_key' => 'Zamówienia sprzedaży',
),
'notes' => array(
'order' => 110,
'module' => 'Notes',
'sort_order' => 'asc',
'sort_by' => 'date_entered',
'subpanel_name' => 'default',
'get_subpanel_data' => 'notes',
'add_subpanel_data' => 'note_id',
'title_key' => 'LBL_NOTES_SUBPANEL_TITLE',
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
),
),
'ecmstockdocouts' => array(
'order' => 80,
'module' => 'EcmStockDocOuts',
'subpanel_name' => 'default',
'get_subpanel_data' => 'ecmstockdocouts',
'add_subpanel_data' => 'ecmstockdocout_id',
'title_key' => 'Magazyn WZ',
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
),
),
);
?>

View File

@@ -0,0 +1,120 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/**
* Subpanel Layout definition for Contacts
*
* 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".
*/
error_reporting(0);
$subpanel_layout = array(
/*'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'EcmInvoiceOutOlds'),
),*/
'where' => '',
'list_fields' => array (
'status' => array(
'vname' => '&nbsp;',
'width' => '1%',
'default' => true,
),
/*
'number' => array (
'name' => 'number',
'vname' => 'LBL_NUMBER',
'module' => 'EcmInvoiceOutOlds',
'usage' => 'query_only',
),
*/
'document_no' => array (
'name' => 'document_no',
'vname' => 'LBL_DOCUMENT_NO',
'module' => 'EcmInvoiceOutOlds',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '15%',
),
'parent_name' => array (
'name' => 'parent_name',
'vname' => 'Kontrahent',
'module' => 'EcmInvoiceOutOlds',
'width' => '40%'
),
'register_date' => array (
'name' => 'register_date',
'vname' => 'LBL_REGISTER_DATE',
'module' => 'EcmInvoiceOutOlds',
'width' => '10%',
),
'subprice' => array (
'name' => 'subprice',
'vname' => 'Cena netto',
'module' => 'EcmInvoiceOutOlds',
'width' => '5%',
),
'quantity' => array (
'name' => 'quantity',
'vname' => 'Ilość',
'module' => 'EcmStockDocIns',
'width' => '5%',
),
'wartosc' => array (
'name' => 'wartosc',
'vname' => 'Wartość',
'module' => 'EcmStockDocIns',
'width' => '5%',
),
'OPTIONS' => array(
'width' => '2%',
'label' => '&nbsp;',
'link' => false,
'default' => true,
'sortable' => false,
),
/*
'edit_button'=>array(
'widget_class' => 'SubPanelEditButton',
'width' => '2%',
),
*/
),
);
?>