Add php files

This commit is contained in:
2025-05-12 15:44:39 +00:00
parent c951760058
commit 82d5804ac4
9534 changed files with 2638137 additions and 0 deletions

View File

@@ -0,0 +1,78 @@
<?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['EcmInvoiceOuts'] = 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,420 @@
<?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['EcmInvoiceOuts']['DetailView'] = array(
'templateMeta' => array(
'form' => array(
'buttons' => array(
'CANCEL_DOC',
array(
'customCode' => '{if $CAN_EDIT == true} {$editButton}{/if}'
),
array(
'customCode' => '<input title="{$APP.LBL_DUPLICATE_BUTTON_TITLE}" accessKey="{$APP.LBL_DUPLICATE_BUTTON_KEY}" class="button" onclick="this.form.return_module.value=\'EcmInvoiceOuts\'; 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">'
),
array(
'customCode' => "{include_php file='include/ECM/EcmCreatePdfButton.php'}",
),
array(
'customCode' => " {include_php file='include/ECM/EcmSendPdfButton/EcmSendPdfButtonController.php}"
),
array(
'customCode' => '&nbsp;&nbsp;'
),
array(
'customCode' => '{if $CREATE_COR == true} <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}">{/if}'
),
array(
'customCode' => '<input title="" accessKey="" class="button" onclick="window.open(\'index.php?module=EcmSales&action=EditView&ecminvoiceout_id={$id}\',\'_blank\'); return;" type="button" name="Create_ZS" value="Utwórz ZS" id="duplicate_button">'
),
array(
'customCode' => '{if $CREATE_KP == true} <input name="create_correct" id="create_correct" title="{$MOD.LBL_CORRECT_TITLE}" class="button" onclick="window.location = \'index.php?module=EcmNewKpkws&action=EditView&return_module=EcmNewKpkws&return_action=DetailView&type=0&parentTab=Kasa&parent_doc_id={$fields.id.value}&parent_doc_type=0\';" type="button" value="Utwórz KP">{/if}'
),
array(
'customCode' => '{if $EDI == true}<input name="edi" id="edi" class="button" onclick="window.open(\'index.php?module=EcmInvoiceOuts&record={$fields.id.value}&action=getEDI&to_pdf=1\');" type="button" value="EDI - wyślij fakturę">{/if}',
),
),
'hidden' => array(
'<input type="hidden" name="vats_summary" id="vats_summary" value=\'{$fields.vats_summary.value}\'>',
'<input type="hidden" id="total_netto" value=\'{$fields.total_netto.value}\'>',
'<input type="hidden" id="total_brutto" value=\'{$fields.total_brutto.value}\'>',
'<input type="hidden" id="discount" value=\'{$fields.discount.value}\'>',
'<input type="hidden" id="no_tax" value=\'{$fields.no_tax.value}\'>'
)
),
'maxColumns' => '2',
'widths' => array(
array(
'label' => '10',
'field' => '30'
),
array(
'label' => '10',
'field' => '30'
)
),
'includes' => array(
array(
'file' => 'include/JSON.js'
),
array(
'file' => 'modules/EcmInvoiceOuts/javascript/EcmInvoiceOutsDetail.js'
),
array(
'file' => 'modules/EcmInvoiceOuts/javascript/bimit_table8.js'
),
array(
'file' => 'modules/EcmInvoiceOuts/javascript/columndefs-detail.js'
)
)
),
'panels' => array(
'LBL_DETAILS_TAB' => array(
array(
'document_no',
'assigned_user_name'
),
array(
array(
'name' => 'parent_name',
'tabIndex' => '1'
),
'category'
),
array(
array(
'name' => 'register_date',
'tabIndex' => '1',
'type' => 'datetime',
'displayParams' => array(
'showFormats' => true
)
),
array(
'name' => 'stock_name',
'label' => 'LBL_STOCK_NAME'
)
),
array(
array(
'name' => 'sell_date',
'tabIndex' => '1',
'type' => 'datetime',
'displayParams' => array(
'showFormats' => true
)
),
array(
'name' => 'type',
'tabIndex' => '1'
)
),
array(
array(
'name' => 'order_no',
'tabIndex' => '1'
)
),
array(
array(
'name' => 'zs_no',
'label' => 'Dokument ZS',
'customCode' => '{$zs_no}'
),
array(
'name' => 'wz_no',
'label' => 'Dokumenty WZ',
'customCode' => '{$wz_no}'
)
),
array()
// array (
// 'name' => 'currency_id',
// 'label' => 'LBL_CURRENCY'
// )
,
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' => 'total_brutto',
'label' => 'LBL_TO_PAID'
),
'payment_date'
),
array(
'prepaid',
'payment_date_days'
),
array(
'prepaid_nr',
'discount'
),
array(
'paid_val',
'bankaccount'
),
array(
'payment_method_paid'
),
array(
array(
'name' => 'paid_fetf',
'label' => 'LBL_LEFT',
'customCode' => '<p id="paid_left">{$PAID_LEFT}</p>'
)
),
array(
'payment_method'
),
array(
array(
'name' => 'to_informations',
'allCols' => true,
'hideLabel' => true,
'customCode' => '<br><b>{$MOD.LBL_TO_INFORMATIONS}</b>'
)
),
array(
array(
'name' => 'parent_name_copy',
'customCode' => '{$fields.parent_name.value}'
),
array(
'name' => 'pdf_type',
'label' => 'LBL_PDF_TYPE'
)
),
array(
'parent_nip',
array(
'name' => 'currency_id',
'label' => 'LBL_CURRENCY'
)
),
array(
'parent_address_street',
'currency_value_nbp'
),
array(
array(
'name' => 'parent_address_city',
'tabIndex' => 't',
'customCode' => '{$fields.parent_address_postalcode.value}&nbsp;&nbsp;{$fields.parent_address_city.value}'
),
array(
'name' => 'currency_table',
'label' => 'LBL_CURRENCY_TABLE'
)
),
array(
'parent_address_country',
'ecmlanguage',
),
array(
'parent_iln'
),
array(
'pdf_text'
),
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_nip'
),
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'
),
array(
'parent_shipping_iln'
),
// platnik start
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_PAYER_ADDRESS}</h4>'
)
),
array(
'parent_payer_address_name'
),
array(
array(
'name' => 'parent_payer_nip',
'tabIndex' => '1'
)
),
array(
'parent_payer_address_street'
),
array(
array(
'name' => 'parent_payer_address_city',
'tabIndex' => '1',
'customCode' => '<input maxlength="8" type="text" name="parent_payer_address_postalcode" id="parent_payer_address_postalcode" value="{$fields.parent_payer_address_postalcode.value}" style="vertical-align:top;width:80px;" />&nbsp;&nbsp;<input type="text" name="parent_payer_address_city" id="parent_payer_address_city" value="{$fields.parent_payer_address_city.value}" style="vertical-align:top;width:150px;" />'
)
),
array(
'parent_payer_address_country'
),
array(
array(
'name' => 'parent_payer_iln',
'tabIndex' => '1'
)
),
// platnik end
array(
array(
'name' => 'to_informations',
'allCols' => true,
'hideLabel' => true,
'customCode' => '<br>'
)
),
array(
array(
'name' => 'date_modified',
'label' => 'LBL_DATE_MODIFIED',
'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$MODIFIED_BY_NAME}'
),
array(
'name' => 'date_entered',
'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$CREATED_BY_NAME}'
)
)
),
'LBL_ITEMS_TAB' => array(
array(
array(
'name' => 'items_list_panel',
'allCols' => true,
'hideLabel' => true,
'customCode' => '<div id="itemsTable"></div>'
)
)
)
)
);

View File

@@ -0,0 +1,448 @@
<?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;
$viewdefs ['EcmInvoiceOuts'] ['EditView'] = array (
'templateMeta' => array (
'form' => array (
'enctype' => 'multipart/form-data',
'buttons' => array (
array (
'customCode' => '<input class="button primary" type="submit" value="Zapisz" ="button" onclick="this.form.action.value=\'Save\'; return check_form(\'EditView\',event);" accesskey="S" title="Zapisz [Alt+S]">'
),
'CANCEL'
),
'hidden' => array (
'<input type="hidden" name="position_list" id="position_list" value=\'{$POSITION_LIST}\'>',
'<input type="hidden" name="new_number" id="new_number" value=\'{$NEW_NUMBER}\'>',
'<input type="hidden" name="is_correct" id="is_correct" value=\'{$IS_CORRECT}\'>',
'<input type="hidden" name="is_wz" id="is_wz" value=\'{$IS_WZ}\'>',
'<input type="hidden" name="is_sale" id="is_sale" value=\'{$IS_SALE}\'>',
'<input type="hidden" name="wz_id" id="wz_id" value=\'{$WZ_ID}\'>',
'<input type="hidden" name="wz_name" id="wz_name" value=\'{$WZ_NAME}\'>',
'<input type="hidden" name="correctEdit" id="correctEdit" value=\'{$correctEdit}\'>',
'<input type="hidden" name="refresh_positions" id="refresh_positions" value=\'{$REFRESHPOSITIONS}\'>',
'<input type="hidden" name="so_id" id="so_id" value=\'{$SO_ID}\'>',
'<input type="hidden" name="vats_summary" id="vats_summary" value=\'{$fields.vats_summary.value}\'>',
'<input type="hidden" id="total_netto" name="total_netto" value=\'{$fields.total_netto.value}\'>',
'<input type="hidden" id="total_brutto" name="total_brutto" value=\'{$fields.total_brutto.value}\'>',
'<input type="hidden" id="total_vat" name="total_vat" value=\'{$fields.total_vat.value}\'>',
'<input type="hidden" id="discount_val" name="discount_val" value=\'{$fields.discount_val.value}\'>',
'<input type="hidden" id="endinvoice" name="endinvoice" value=\'{$fields.endinvoice.value}\'>',
'<input type="hidden" id="duplicate" name="duplicate" value=\'{$DUPLICATE}\'>',
'<input type="hidden" id="type" name="type" value="{$fields.type.value}">' ,
'<input type="hidden" id="discount_tmp" name="discount_tmp" value="0">'
)
),
'maxColumns' => '2',
'widths' => array (
array (
'label' => '10',
'field' => '30'
),
array (
'label' => '10',
'field' => '30'
)
),
'includes' => array (
array (
'file' => 'include/JSON.js'
),
array (
'file' => 'modules/EcmInvoiceOuts/javascript/EcmInvoiceOuts4.js'
),
array (
'file' => 'modules/EcmInvoiceOuts/javascript/bimit_table8.js'
),
array (
'file' => 'modules/EcmInvoiceOuts/javascript/columndefs.js'
),
array (
'file' => 'include/ECM/EcmDocumentNumberGenerator/EcmDocumentNumberGenerator.js'
),
array (
'file' => 'modules/EcmInvoiceOuts/javascript/Consignments.js'
),
)
),
'panels' => array (
'LBL_DETAILS_TAB' => array (
array (
array (
'type' => 'tab',
'active' => true
)
),
array (
array (
'name' => 'document_no',
'tabIndex' => '1',
'customCode' => '<div id="tst" style="display:none;"></div><input readonly="readonly" type="text" name="document_no" id="document_no" value=\'{$fields.document_no.value}\'>
<input type="hidden" name="number" id="number" value=\'{$fields.number.value}\'>'
),
array (
'name' => 'assigned_user_name',
'tabIndex' => '1'
)
),
array (
array (
'name' => 'parent_name',
'tabIndex' => '1'
),
array (
'name' => 'category',
'tabIndex' => '1'
)
),
array (
array (
'name' => 'register_date',
'tabIndex' => '1',
'type' => 'datetime',
'displayParams' => array (
'showFormats' => true
)
),
array (
'name' => 'stock_id',
'label' => 'LBL_STOCK_NAME',
'customCode' => '{$STOCK}'
)
),
array (
array (
'name' => 'sell_date',
'tabIndex' => '1',
'type' => 'datetime',
'displayParams' => array (
'showFormats' => true
)
),
'supplier_code'
),
array (
array (
'name' => 'order_no',
'tabIndex' => '1'
),
array (
'name' => 'operation_type',
'label' => 'LBL_OPERATION_TYPE',
'customCode' => '{$OPERATION_TYPE}'
)
),
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>'
),
'payment_date'
),
array (
'prepaid',
array (
'name' => 'payment_date_days',
'label' => 'LBL_DAYS',
'customCode' => '<input type="number" min="0" id="payment_date_days" name="payment_date_days" value="{$fields.payment_date_days.value}"/> '
)
),
array (
'prepaid_nr',
'discount'
),
array (
array (
'name' => 'paid_val',
'label' => 'Zapłacono',
'customCode' => '<input type="text" tabindex="119" title="" value="{$fields.paid_val.value|number_format:2:",":"."}" maxlength="" size="30" id="paid_val" onclick="$(this).select();" onchange="$(this).val(FormatNumber($(this).val()));" name="paid_val">'
),
array (
'name' => 'bankaccount',
'label' => 'LBL_BANKACCOUNT',
'customCode' => '<select id="bankaccounts"></select><input type="hidden" id="bankaccount" name="bankaccount" value="{$fields.bankaccount.value}"/>',
)
),
array (
'payment_method_paid',
''
),
array (
array (
'name' => 'left',
'label' => 'LBL_LEFT',
'customCode' => '<div id="left"></div>'
),
''
),
array (
'payment_method',
''
),
array (
array (
'allCols' => true,
'hideLabel' => true,
'customCode' => '<div class="tabForm" style="border-top:none;width:100%;height:1px;padding:0px;align:center;"></div><h4>{$MOD.LBL_TO_INFORMATIONS}</h4>'
)
),
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' => 'pdf_type',
'label' => 'LBL_PDF_TYPE'
)
),
array (
array (
'name' => 'parent_index_dbf',
'tabIndex' => '1'
),
array (
'name' => 'currency_id',
'label' => 'LBL_CURRENCY'
)
),
array (
array (
'name' => 'parent_nip',
'tabIndex' => '1'
),
array (
'name' => 'currency_value_nbp',
'tabIndex' => '1',
'customCode' => '
<input type="text" id="currency_value_nbp" name="currency_value_nbp"/>
<input disabled value="" id="currency_table_tmp" name="currency_table_tmp"/>
<input type="hidden" value="" id="currency_table" name="currency_table"/>
<img style="cursor: pointer; display: none;" onclick="getCurrencyValues();" src="themes/default/images/id-ff-select.png" id="curr_trigger">
<br><div style="position: absolute; background: rgb(246,246,246); border: 1px solid rgb(171,195,215); padding: 2 2 2 2; z-index: 100; display:none" name="cur_values" id="cur_values">
</div>
'
)
),
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' => 'ecmlanguage',
'tabIndex' => '1'
)
),
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 (
array (
'name' => 'parent_address_country',
'tabIndex' => '1'
)
),
array (
array (
'name' => 'parent_iln',
'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 (
array (
'name' => 'parent_shipping_nip',
'tabIndex' => '1'
)
),
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'
),
array (
array (
'name' => 'parent_shipping_iln',
'tabIndex' => '1'
)
),
// platnik start
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_PAYER_ADDRESS}</h4>'
)
),
array (
array (
'name' => 'payer',
'customCode' => '<div id=\'payer\'></div>'
),
''
),
array (
'parent_payer_address_name'
),
array (
array (
'name' => 'parent_payer_nip',
'tabIndex' => '1'
)
),
array (
'parent_payer_address_street'
),
array (
array (
'name' => 'parent_payer_address_city',
'tabIndex' => '1',
'customCode' => '<input maxlength="8" type="text" name="parent_payer_address_postalcode" id="parent_payer_address_postalcode" value="{$fields.parent_payer_address_postalcode.value}" style="vertical-align:top;width:80px;" />&nbsp;&nbsp;<input type="text" name="parent_payer_address_city" id="parent_payer_address_city" value="{$fields.parent_payer_address_city.value}" style="vertical-align:top;width:150px;" />'
)
),
array (
'parent_payer_address_country'
),
array (
array (
'name' => 'parent_payer_iln',
'tabIndex' => '1'
)
),
// platnik end
array (
array (
'allCols' => true,
'hideLabel' => true,
'customCode' => '<div class="tabForm" style="border-top:none;width:100%;height:1px;padding:0px;align:center;"></div><h4>{$MOD.LBL_PDF_TEXT}</h4>'
)
),
array (
array (
'allCols' => true,
'hideLabel' => true,
'name' => 'pdf_text'
)
)
),
'LBL_ITEMS_TAB' => array (
array (
array (
'type' => 'tab'
)
),
array (
array (
'allCols' => true,
'hideLabel' => true,
'customCode' => '
<div id="searchProducts" class="edit view search basic">
<br>
<input type="hidden" id="searchStart" name="searchStart" value="0">
<input type="hidden" id="searchCount" name="searchCount" value="">
<input type="hidden" id="searchSort" name="searchSort" value="1">
{$MOD.LBL_SEARCH}:&nbsp;&nbsp;
<input type="text" value="" id="searchProductsInput"/>
<img onclick="$(\'#searchProductsInput\').val(\'%\');searchProducts();" src="modules/EcmSales/images/search.gif" style="cursor: pointer;">
{$MOD.LBL_CATEGORY}:&nbsp;&nbsp;
<select id="productSearchCategory"></select>
{$MOD.LBL_SEARCH_STOCK}:&nbsp;&nbsp;
<select id="productSearchStock" onchange="searchProducts();">
<option value="1">Produkty</option>
<option value="4">Magazyn </option>
<option value="3">Dostępne</option>
</select>
&nbsp;&nbsp;
<button onclick="createProduct();" class="button" type="button"><img src="themes/default/images/id-ff-add.png"></button>
<input type="hidden" id="newProductId" value=""/>
</div>
<div id="searchResultDiv"/></div>
<br><br><div id="itemsTable"></div>'
)
)
)
)
);

View File

@@ -0,0 +1,141 @@
<?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["EcmInvoiceOuts"] = array(
'TYPE' => array(
'width' => '1',
'label' => 'T',
'default' => true
),
'NUMBER' => array(
'width' => '5',
'label' => 'LBL_DOCUMENT_NO',
'sortable' => true,
'link' => false,
'default' => true
),
'PARENT_NAME' => array(
'width' => '10',
'label' => 'LBL_PARENT_NAME',
'default' => true
),
'TOTAL_NETTO' => array(
'width' => '3',
'label' => 'Wartość Netto',
'align' => 'right',
'default' => true,
'sumType' => 'sum'
),
'TOTAL_BRUTTO' => array(
'width' => '3',
'label' => 'Wartość brutto',
'align' => 'right',
'default' => true,
'sumType' => 'sum'
),
'CURRENCY_ID' => array(
'width' => '1',
'label' => 'Waluta',
'align' => 'right',
'default' => true,
'sortable' => 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' => '5',
'label' => 'Data dokumentu',
'default' => true,
),
'ZS_NO' => array(
'width' => '5',
'label' => 'Dokument ZS',
'default' => true,
),
'WZ_NO' => array(
'width' => '5',
'label' => 'Dokument WZ',
'default' => true,
),
'EMAIL' => array(
'width' => '2',
'label' => 'Email wysłany',
'default' => true,
'sortable' => false,
'align' => 'right'
),
'OPTIONS' => array(
'width' => '2',
'label' => 'PDF',
'default' => true,
'sortable' => false,
'align' => 'center'
)
);
?>

View File

@@ -0,0 +1,67 @@
<?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['EcmInvoiceOuts'] = array(
'templateMeta' => array(
'maxColumns' => '3',
'widths' => array(
'label' => '10',
'field' => '30'
)
),
'layout' => array(
'basic_search' => array(
'document_no',
'stock_id',
'parent_name',
'type',
array(
'name' => 'current_user_only',
'label' => 'LBL_CURRENT_USER_FILTER',
'type' => 'bool'
),
'register_date'
),
'advanced_search' => array(
'document_no',
'stock_id',
'name',
'parent_name',
'register_date',
'type',
)
)
);
?>

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

View File

@@ -0,0 +1,115 @@
<?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['EcmInvoiceOuts']['subpanel_setup'] = array (
'documents' => array(
'order' => 130,
'module' => 'Documents',
'subpanel_name' => 'default',
'get_subpanel_data' => 'documents',
'title_key' => 'Dokumenty',
),
/*
'emails' => array (
'order' => 15,
'module' => 'Emails',
'sort_order' => 'asc',
'sort_by' => 'date_modified',
'get_subpanel_data' => 'emails',
'add_subpanel_data' => 'emails_id',
'subpanel_name' => 'ForEcmInvoiceOuts',
'title_key' => 'LBL_EMAILS_SUBPANEL_TITLE',
'top_buttons' => array(),
),
*/
);
?>

View File

@@ -0,0 +1,129 @@
<?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".
*/
$subpanel_layout = array(
'where' => '',
'list_fields' => array (
/*
'number' => array (
'name' => 'number',
'vname' => 'LBL_NUMBER',
'module' => 'EcmSales',
'usage' => 'query_only',
),
*/
'document_no' => array (
'name' => 'document_no',
'vname' => 'LBL_DOCUMENT_NO',
'module' => 'EcmSales',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '5%',
),
'PARENT_NAME' => array(
'width' => '10%',
'vname' => 'Kontrahent',
'default' => true,
),
'register_date' => array (
'name' => 'register_date',
'vname' => 'LBL_REGISTER_DATE',
'module' => 'EcmSales',
'width' => '5%',
),
'QUANTITY' => array (
'name' => 'quantity',
'vname' => 'Ilość',
'align'=>'right',
'module' => 'EcmSales',
'width' => '5%',
),
'PRICE_NETTO' => array (
'name' => 'price_netto',
'vname' => 'Cena netto',
'align'=>'right',
'module' => 'EcmSales',
'width' => '5%',
),
'TOTAL_NETTO' => array (
'name' => 'total_netto',
'vname' => 'Wartość netto',
'align'=>'right',
'module' => 'EcmSales',
'width' => '5%',
),
'options' => array (
'name' => 'options',
'label' => '&nbsp;',
'default' => true,
'width' => '5%',
'sortable' => false,
),
'TYPE' => array (
'name' => 'status',
'vname' => 'Typ',
'module' => 'EcmSales',
'width' => '60%',
),
/*
'PDF_URL' => array(
'width' => '2%',
'label' => '&nbsp;',
'link' => true,
'default' => true,
'sortable' => false,
),
'edit_button'=>array(
'widget_class' => 'SubPanelEditButton',
'width' => '2%',
),
*/
),
);
?>

View File

@@ -0,0 +1,129 @@
<?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".
*/
$subpanel_layout = array(
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'EcmInvoiceOuts'),
),
'where' => '',
'list_fields' => array (
/*
'number' => array (
'name' => 'number',
'vname' => 'LBL_NUMBER',
'module' => 'EcmInvoiceOuts',
'usage' => 'query_only',
),
*/
'document_no' => array (
'name' => 'document_no',
'vname' => 'LBL_DOCUMENT_NO',
'module' => 'EcmInvoiceOuts',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '5%',
),
'register_date' => array (
'name' => 'register_date',
'vname' => 'LBL_REGISTER_DATE',
'module' => 'EcmInvoiceOuts',
'width' => '5%',
),
'total_netto' => array (
'name' => 'total_netto',
'vname' => 'Wartość netto',
'module' => 'EcmInvoiceOuts',
'width' => '5%',
'align' => 'right',
),
'total_brutto' => array (
'name' => 'total_brutto',
'vname' => 'Wartość brutto',
'module' => 'EcmInvoiceOuts',
'width' => '5%',
'align' => 'right',
),
'options' => array (
'name' => 'options',
'label' => '',
'default' => true,
'width' => '5%',
'sortable' => false,
),
'type' => array (
'name' => 'type',
'vname' => 'LBL_TYPE',
'module' => 'EcmInvoiceOuts',
'width' => '5%',
),
'settled' => array (
'name' => 'settled',
'vname' => 'Stan',
'module' => 'EcmInvoiceOuts',
'width' => '70%',
),
/*
'PDF_URL' => array(
'width' => '2%',
'label' => '&nbsp;',
'link' => true,
'default' => true,
'sortable' => false,
),
'edit_button'=>array(
'widget_class' => 'SubPanelEditButton',
'width' => '2%',
),
*/
),
);
?>