153 lines
6.4 KiB
PHP
153 lines
6.4 KiB
PHP
<?php
|
|
/*********************************************************************************
|
|
* SugarCRM is a customer relationship management program developed by
|
|
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it under
|
|
* the terms of the GNU General Public License version 3 as published by the
|
|
* Free Software Foundation with the addition of the following permission added
|
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
* details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with
|
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
* 02110-1301 USA.
|
|
*
|
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
|
*
|
|
* The interactive user interfaces in modified source and object code versions
|
|
* of this program must display Appropriate Legal Notices, as required under
|
|
* Section 5 of the GNU General Public License version 3.
|
|
*
|
|
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
|
* technical reasons, the Appropriate Legal Notices must display the words
|
|
* "Powered by SugarCRM".
|
|
********************************************************************************/
|
|
$viewdefs['EcmPrepaymentInvoices']['EditView'] = array(
|
|
'templateMeta'=>array(
|
|
'form' => array(
|
|
'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}">'),
|
|
'CANCEL'
|
|
),
|
|
'hidden' => array (
|
|
'<input type="hidden" name="isSale" id="isSale" value=\'{$isSale}\'>',
|
|
),
|
|
),
|
|
'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'=>'modules/EcmPrepaymentInvoices/EcmPrepaymentInvoices.js'),
|
|
// array('file'=>'modules/EcmInvoiceOutOlds/MyTable.js'),
|
|
array('file'=>'modules/EcmInvoiceOuts/formloader.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',
|
|
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'=>'currency_id','label'=>'LBL_CURRENCY'),
|
|
array('name'=>'currency_value_nbp','label'=>'Kurs NBP'),
|
|
),
|
|
array(
|
|
array(
|
|
'name'=>'inv_value',
|
|
'label'=>'LBL_VALUE',
|
|
),
|
|
array(
|
|
'label'=>'Zamówienie',
|
|
'customCode'=>'<input type="hidden" name="ecmsale_id" value="{$ecmsale_id}"><a href="index.php?module=EcmSales&action=DetailView&record={$ecmsale_id}">{$ecmsale_name}</a>',
|
|
),
|
|
),
|
|
array('register_date','payment_date'),
|
|
array(
|
|
array(
|
|
'name' => 'ecmvat_name',
|
|
'label'=>'LBL_ECMVAT_NAME',
|
|
'customCode'=>'<select id="ecmvat_id" name="ecmvat_id" onChange="document.getElementById(\'ecmvat_name\').value=this.options[this.selectedIndex].text;">{$ECMVATS_OPTIONS}</select><input id="ecmvat_name" name="ecmvat_name" type="hidden"/>'
|
|
),
|
|
'ecmpaymentcondition_name'),
|
|
array(
|
|
array(
|
|
'name' => 'description',
|
|
),
|
|
),
|
|
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_contact_name',
|
|
'tabIndex' => '1',
|
|
),
|
|
array(
|
|
'name' => 'ecmlanguage',
|
|
'tabIndex' => '1',
|
|
)
|
|
),
|
|
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' => 'to_vatid',
|
|
'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;" /> <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',
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
?>
|