279 lines
10 KiB
PHP
Executable File
279 lines
10 KiB
PHP
Executable File
<?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['EcmGroupFkPackages']['DetailView'] = array(
|
|
'templateMeta' => array(
|
|
'form' => array(
|
|
'buttons' => array('EDIT', 'DUPLICATE', 'DELETE',
|
|
array(
|
|
'customCode' => '<input name="groupfkpackage_pdf" id="groupservice_pdf" title="{$MOD.LBL_GROUPFkPackage_PDF_BUTTON_TITLE}" accessKey="{$MOD.LBL_GROUPService_PDF_BUTTON_KEY}" class="button" onclick="window.location = \'index.php?module=EcmGroupServices&action=previewPDF&to_pdf=1&record={$fields.id.value}\';" type="button" value="{$MOD.LBL_GROUPService_PDF}">'
|
|
),
|
|
array(
|
|
'customCode' => '<input name="groupfkpackage_to_invoice" id="groupservice_to_invoice" title="{$MOD.LBL_GROUPFkPackage_TO_INVOICE_BUTTON_TITLE}" accessKey="{$MOD.LBL_GROUPService_TO_INVOICE_BUTTON_KEY}" class="button" onclick="window.location = \'index.php?module=EcmInvoiceOuts&action=EditView&out_id={$fields.id.value}&out_module=EcmGroupServices&return_module=EcmGroupServices&return_action=DetailView&return_id={$fields.id.value}\';" type="button" value="{$MOD.LBL_GROUPService_TO_INVOICE}">'
|
|
),
|
|
/*
|
|
|
|
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=EcmInvoiceOuts&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="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="">',
|
|
),
|
|
),
|
|
'maxColumns' => '2',
|
|
'widths' => array(
|
|
array('label' => '10', 'field' => '30'),
|
|
array('label' => '10', 'field' => '30')
|
|
),
|
|
'includes' => array(
|
|
array('file' => 'include/JSON.js'),
|
|
array('file' => 'modules/EcmGroupFkPackages/MyTable.js'),
|
|
array('file' => 'modules/EcmGroupFkPackages/EcmGroupServicesDetailView.js'),
|
|
),
|
|
),
|
|
'panels' => array(
|
|
'DETAILS' => array(
|
|
array(array('type' => 'tab', 'active' => true, 'allCols' => true, 'hideLabel' => true, 'customCode' => '<b>{$MOD.LBL_DETAILS}</b>')),
|
|
array(
|
|
'formatted_number',
|
|
'assigned_user_name'
|
|
),
|
|
array(
|
|
'name',
|
|
'parent_name'
|
|
),
|
|
array(
|
|
'status',
|
|
'template_name'
|
|
),
|
|
array(
|
|
'register_date'
|
|
),
|
|
array(
|
|
array(
|
|
'allCols' => true,
|
|
'hideLabel' => true,
|
|
'customCode' => '<br><b>{$MOD.LBL_TO_INFORMATIONS}</b>'
|
|
),
|
|
),
|
|
array('parent_address_street'),
|
|
array('parent_address_postalcode', 'to_nip'),
|
|
array('parent_address_city', 'to_vatid'),
|
|
array('parent_address_country',
|
|
array(
|
|
'name' => 'to_is_vat_free',
|
|
'tabIndex' => 't',
|
|
'customCode' => '<input type="checkbox" disabled="disabled" id="to_is_vat_free" name="to_is_vat_free" value="{$fields.to_is_vat_free.value}" {if $fields.to_is_vat_free.value == 1}checked{/if}>'
|
|
),
|
|
),
|
|
),
|
|
'ITEMS' => array(
|
|
array(array('type' => 'tab', 'allCols' => true, 'hideLabel' => true, 'customCode' => '<b>{$MOD.LBL_ITEMS}</b>')),
|
|
array(
|
|
array(
|
|
'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/EcmGroupFkPackages/MyTable.css" />
|
|
|
|
<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;height:300px;max-height:300px;overflow:auto;">
|
|
|
|
<table class="positions" style="width:100%;" id="itemsTable">
|
|
|
|
<thead id="head">
|
|
|
|
<tr id="tr">
|
|
|
|
<td width="6%">{$MOD.LBL_EDITTABLE_NO}</td>
|
|
|
|
<td width="10%">{$MOD.LBL_EDITTABLE_CODE}</td>
|
|
|
|
<td width="44%">{$MOD.LBL_EDITTABLE_NAME}</td>
|
|
|
|
<td width="7%">{$MOD.LBL_EDITTABLE_QUANTITY}</td>
|
|
|
|
<td width="13%">{$MOD.LBL_EDITTABLE_PRICE}</td>
|
|
|
|
<td width="8%">{$MOD.LBL_EDITTABLE_DISCOUNT}</td>
|
|
|
|
<td width="13%">{$MOD.LBL_EDITTABLE_TOTAL}</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">
|
|
|
|
|
|
|
|
</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;"> </td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
',
|
|
)
|
|
),
|
|
),
|
|
'TEXTS' => array(
|
|
array(array('type' => 'tab', 'allCols' => true, 'hideLabel' => true, 'customCode' => '<b>{$MOD.LBL_TEXTS}</b>')),
|
|
array('header_text'),
|
|
array('footer_text'),
|
|
array('ads_text'),
|
|
),
|
|
'PREVIEW' => array(
|
|
array(array('type' => 'tab', 'allCols' => true, 'hideLabel' => true, 'customCode' => '<b>{$MOD.LBL_PREVIEW}</b>')),
|
|
array(
|
|
array(
|
|
'allCols' => true,
|
|
'hideLabel' => true,
|
|
'customCode' => '<span id="previewPDF" width="100%" height="100%"></span>'
|
|
),
|
|
),
|
|
),
|
|
'EMAIL' => array(
|
|
array(array('type' => 'tab', 'allCols' => true, 'hideLabel' => true, 'customCode' => '<b>{$MOD.LBL_EMAIL}</b>')),
|
|
array(
|
|
array(
|
|
'allCols' => true,
|
|
'hideLabel' => true,
|
|
'customCode' => '<span id="emailTAB" width="100%" height="100%"></span>'
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
?>
|
|
|