Add php files
This commit is contained in:
47
modules/EcmFkVatTables/metadata/SearchFields.php
Executable file
47
modules/EcmFkVatTables/metadata/SearchFields.php
Executable file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero 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 Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero 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".
|
||||
********************************************************************************/
|
||||
$searchFields['EcmFkVatTables'] =
|
||||
array (
|
||||
'ecmfkvattable_name' => array( 'query_type'=>'default'),
|
||||
'category_id'=> array('query_type'=>'default', 'options' => 'ecmfkvattable_category_dom', 'template_var' => 'CATEGORY_OPTIONS'),
|
||||
'subcategory_id'=> array('query_type'=>'default', 'options' => 'ecmfkvattable_subcategory_dom', 'template_var' => 'SUBCATEGORY_OPTIONS'),
|
||||
'active_date'=> array('query_type'=>'default'),
|
||||
'exp_date'=> array('query_type'=>'default'),
|
||||
|
||||
|
||||
);
|
||||
?>
|
||||
216
modules/EcmFkVatTables/metadata/detailviewdefs.php
Executable file
216
modules/EcmFkVatTables/metadata/detailviewdefs.php
Executable file
@@ -0,0 +1,216 @@
|
||||
<?php
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero 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 Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero 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['EcmFkVatTables']['DetailView'] = array(
|
||||
'templateMeta' => array(
|
||||
'maxColumns' => '2',
|
||||
'form' => array(
|
||||
'hidden' => array(
|
||||
'<input type="hidden" name="decree_list" id="decree_list" value="{$DECREE_LIST}"/>',
|
||||
'<input type="hidden" name="type" id="type" value=""/>',
|
||||
'<input type="hidden" name="template_id" id="template_id" value=""/>',
|
||||
),
|
||||
),
|
||||
'widths' => array(
|
||||
array(
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
array(
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
),
|
||||
'includes' => array(
|
||||
array(
|
||||
'file' => 'include/JSON.js',
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/EcmFkVatTables/MyTable.js',
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/EcmFkVatTables/EcmFkVatRegisters.js',
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/EcmFkVatTables/EcmFkVatRegistersDetailView.js',
|
||||
),
|
||||
// array(
|
||||
// 'file' => 'include/ECM/EcmPreviewPDF/EcmPreviewPDF.js',
|
||||
// ),
|
||||
),
|
||||
),
|
||||
'panels' => array(
|
||||
'LBL_DETAILS' => array(
|
||||
// 'id',
|
||||
array(
|
||||
// 'created_by_name',
|
||||
array (
|
||||
'label' => 'LBL_CREATED_BY_NAME',
|
||||
'customCode' => '{if $fields.created_by_name.value}{$fields.created_by_name.value}{else}-{/if}',
|
||||
),
|
||||
// 'modified_by_name',
|
||||
array (
|
||||
'label' => 'LBL_MODIFIED_BY_NAME',
|
||||
'customCode' => '{if $fields.modified_by_name.value}{$fields.modified_by_name.value}{else}-{/if}',
|
||||
),
|
||||
),
|
||||
array(
|
||||
// 'date_entered',
|
||||
array (
|
||||
'label' => 'LBL_DATE_ENTERED',
|
||||
'customCode' => '{if $fields.date_entered.value}{$fields.date_entered.value}{else}nigdy{/if}',
|
||||
),
|
||||
// 'date_modified',
|
||||
array (
|
||||
'label' => 'LBL_DATE_MODIFIED',
|
||||
'customCode' => '{if $fields.date_modified.value}{$fields.date_modified.value}{else}nigdy{/if}',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'position',
|
||||
'name',
|
||||
),
|
||||
array(
|
||||
// 'acc_wn',
|
||||
// 'acc_wn_code',
|
||||
array (
|
||||
'label' => 'LBL_ACC_WN_CODE',
|
||||
// 'customCode' => '{if $fields.acc_wn_code.value}{$fields.acc_wn_code.value}{else}000{/if}',
|
||||
'customCode' => '
|
||||
{if $fields.account_acc_wn.value}
|
||||
Konto WN kontrahenta
|
||||
{else}
|
||||
{if $fields.acc_wn_code.value}
|
||||
{$fields.acc_wn_code.value}
|
||||
{else}
|
||||
000
|
||||
{/if}
|
||||
{/if}',
|
||||
),
|
||||
// 'acc_ma',
|
||||
// 'acc_ma_code',
|
||||
array (
|
||||
'label' => 'LBL_ACC_MA_CODE',
|
||||
'customCode' => '
|
||||
{if $fields.account_acc_ma.value}
|
||||
Konto MA kontrahenta
|
||||
{else}
|
||||
{if $fields.acc_ma_code.value}
|
||||
{$fields.acc_ma_code.value}
|
||||
{else}
|
||||
000
|
||||
{/if}
|
||||
{/if}',
|
||||
),
|
||||
),
|
||||
/*
|
||||
array(
|
||||
// 'account_acc_wn',
|
||||
array (
|
||||
'label' => 'LBL_ACCOUNT_ACC_WN',
|
||||
'customCode' => '{if $fields.account_acc_wn.value}Tak{else}Nie{/if}',
|
||||
),
|
||||
// 'account_acc_ma',
|
||||
array (
|
||||
'label' => 'LBL_ACCOUNT_ACC_MA',
|
||||
'customCode' => '{if $fields.account_acc_ma.value}Tak{else}Nie{/if}',
|
||||
),
|
||||
),
|
||||
*/
|
||||
array(
|
||||
'rez',
|
||||
'vat',
|
||||
),
|
||||
array(
|
||||
'netto',
|
||||
'type',
|
||||
),
|
||||
array(
|
||||
// 'deleted',
|
||||
array (
|
||||
'label' => 'LBL_DELETED',
|
||||
'customCode' => '{if $fields.deleted.value}Tak{else}Nie{/if}',
|
||||
),
|
||||
'',
|
||||
),
|
||||
),
|
||||
|
||||
|
||||
|
||||
'LBL_DECREE' => array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'decree_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' =>
|
||||
'
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmFkVatTables/MyTable.css" />
|
||||
<!--<link rel="stylesheet" type="text/css" href="modules/EcmFkVatTables/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="decreeTableDIV">
|
||||
<table class="positions" style="width: 100%;" id="decreeTable">
|
||||
<thead id="head">
|
||||
<tr id="tr">
|
||||
<td width="20%">{$MOD.LBL_EDITABLE_POSITION}</td>
|
||||
<td width="25%">{$MOD.LBL_EDITABLE_NAME}</td>
|
||||
<td width="25%">{$MOD.LBL_EDITABLE_WN}</td>
|
||||
<td width="25%">{$MOD.LBL_EDITABLE_MA}</td>
|
||||
<!--<td width="5%">{$MOD.LBL_EDITABLE_OPTIONS}</td>-->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
',
|
||||
),
|
||||
),
|
||||
),
|
||||
'LBL_DEFINITIONS' => array(
|
||||
array(
|
||||
'zal',
|
||||
'licz',
|
||||
),
|
||||
array(
|
||||
'zal_wn',
|
||||
'zal_ma',
|
||||
),
|
||||
),
|
||||
|
||||
),
|
||||
);
|
||||
225
modules/EcmFkVatTables/metadata/editviewdefs.php
Executable file
225
modules/EcmFkVatTables/metadata/editviewdefs.php
Executable file
@@ -0,0 +1,225 @@
|
||||
<?php
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero 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 Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero 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['EcmFkVatTables']['EditView'] = array(
|
||||
'templateMeta' => array(
|
||||
'form' => array(
|
||||
'buttons'=>array(
|
||||
array(
|
||||
'customCode' => '
|
||||
<input type="submit" name="save" class="button" value="Zapisz" onclick="saveItems(true); this.form.action.value=\'Save\'; /*return false;*/" />
|
||||
',
|
||||
),
|
||||
'CANCEL',
|
||||
),
|
||||
'enctype' => 'multipart/form-data',
|
||||
'hidden' => array(
|
||||
'<input type="hidden" name="decree_list" id="decree_list" value="{$DECREE_LIST}"/>',
|
||||
'<input type="hidden" name="type" id="type" value=""/>',
|
||||
'<input type="hidden" name="template_id" id="template_id" value=""/>',
|
||||
),
|
||||
),
|
||||
'maxColumns' => '2',
|
||||
'widths' => array(
|
||||
array(
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
array(
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
),
|
||||
/*
|
||||
'javascript' =>
|
||||
'
|
||||
<script type="text/javascript" src="include/javascript/popup_parent_helper.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script type="text/javascript" src="include/jsolait/init.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script type="text/javascript" src="include/jsolait/lib/urllib.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script type="text/javascript" src="include/javascript/jsclass_base.js"></script>
|
||||
<script type="text/javascript" src="include/javascript/jsclass_async.js"></script>
|
||||
<script type="text/javascript" src="include/JSON.js?s={$SUGAR_VERSION}"></script>
|
||||
<script type="text/javascript" src="modules/EcmFkVatTables/EcmFkVatRegisters.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script type="text/javascript" src="modules/EcmFkVatTables/EcmFkVatRegistersEditView.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
',
|
||||
*/
|
||||
'includes' => array(
|
||||
array(
|
||||
'file' => 'include/JSON.js',
|
||||
),
|
||||
/*
|
||||
array(
|
||||
'file' => 'include/javascript/quicksearch.js',
|
||||
),
|
||||
array(
|
||||
'file' => 'include/ECM/EcmPreviewPDF/EcmPreviewPDF.js',
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/EcmFkVatTables/AjaxSearch/AjaxSearch.js',
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/EcmFkVatTables/formloader.js',
|
||||
),
|
||||
*/
|
||||
array(
|
||||
'file' => 'modules/EcmFkVatTables/MyTable.js',
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/EcmFkVatTables/EcmFkVatRegisters.js',
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/EcmFkVatTables/EcmFkVatRegistersEditView.js',
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/EcmProducts/mintajax.js',
|
||||
),
|
||||
array(
|
||||
'file' => 'modules/EcmProducts/helper.js',
|
||||
),
|
||||
),
|
||||
),
|
||||
'panels' => array(
|
||||
'LBL_DETAILS' => array(
|
||||
// array(
|
||||
// 'created_by',
|
||||
// 'modified_user_id',
|
||||
// ),
|
||||
// array(
|
||||
// 'date_entered',
|
||||
// 'date_modified',
|
||||
// ),
|
||||
array(
|
||||
'position',
|
||||
'name',
|
||||
),
|
||||
array(
|
||||
'account_acc_wn',
|
||||
'account_acc_ma',
|
||||
),
|
||||
array(
|
||||
// 'acc_wn',
|
||||
'acc_wn_code',
|
||||
// 'acc_ma',
|
||||
'acc_ma_code',
|
||||
),
|
||||
array(
|
||||
'rez',
|
||||
'vat',
|
||||
),
|
||||
array(
|
||||
'netto',
|
||||
'type',
|
||||
),
|
||||
array(
|
||||
'deleted',
|
||||
'',
|
||||
),
|
||||
),
|
||||
'LBL_DECREE' => array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'decree_panel',
|
||||
'allCols' => true,
|
||||
'hideLabel' => true,
|
||||
'customCode' =>
|
||||
'
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmFkVatTables/MyTable.css" />
|
||||
<!--<link rel="stylesheet" type="text/css" href="modules/EcmFkVatTables/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="decreeTableDIV">
|
||||
<table class="positions" style="width: 100%;" id="decreeTable">
|
||||
<thead id="head">
|
||||
<tr id="tr">
|
||||
<td width="20%">{$MOD.LBL_EDITABLE_POSITION}</td>
|
||||
<td width="25%">{$MOD.LBL_EDITABLE_NAME}</td>
|
||||
<td width="25%">{$MOD.LBL_EDITABLE_WN}</td>
|
||||
<td width="25%">{$MOD.LBL_EDITABLE_MA}</td>
|
||||
<td width="5%">{$MOD.LBL_EDITABLE_OPTIONS}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
',
|
||||
),
|
||||
),
|
||||
),
|
||||
'LBL_DEFINITIONS' => array(
|
||||
array(
|
||||
// 'zal',
|
||||
array(
|
||||
'label' => 'LBL_ZAL',
|
||||
'customCode' => '
|
||||
<textarea name="zal" id="zal" style="width: 100%;">
|
||||
{$fields.zal.value}
|
||||
</textarea>
|
||||
',
|
||||
),
|
||||
// 'licz',
|
||||
array(
|
||||
'label' => 'LBL_LICZ',
|
||||
'customCode' => '
|
||||
<textarea name="licz" id="licz" style="width: 100%;">
|
||||
{$fields.licz.value}
|
||||
</textarea>
|
||||
',
|
||||
),
|
||||
),
|
||||
array(
|
||||
// 'zal_wn',
|
||||
array(
|
||||
'label' => 'LBL_ZAL_WN',
|
||||
'customCode' => '
|
||||
<textarea name="zal_wn" id="zal_wn" style="width: 100%;">
|
||||
{$fields.zal_wn.value}
|
||||
</textarea>
|
||||
',
|
||||
),
|
||||
// 'zal_ma',
|
||||
array(
|
||||
'label' => 'LBL_ZAL_MA',
|
||||
'customCode' => '
|
||||
<textarea name="zal_ma" id="zal_ma" style="width: 100%;">
|
||||
{$fields.zal_ma.value}
|
||||
</textarea>
|
||||
',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
205
modules/EcmFkVatTables/metadata/listviewdefs.php
Executable file
205
modules/EcmFkVatTables/metadata/listviewdefs.php
Executable file
@@ -0,0 +1,205 @@
|
||||
<?php
|
||||
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero 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 Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero 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".
|
||||
* ****************************************************************************** */
|
||||
|
||||
$def = array(
|
||||
'ID' => array(
|
||||
'label' => 'LBL_ID',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'DELETED' => array(
|
||||
'label' => 'LBL_DELETED',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'DATE_ENTERED' => array(
|
||||
'label' => 'LBL_DATE_ENTERED',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'DATE_MODIFIED' => array(
|
||||
'label' => 'LBL_DATE_MODIFIED',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'CREATED_BY' => array(
|
||||
'label' => 'LBL_CREATED_BY',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'MODIFIED_BY' => array(
|
||||
'label' => 'LBL_MODIFIED_BY',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'POSITION' => array(
|
||||
'label' => 'LBL_POSITION',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'NAME' => array(
|
||||
'label' => 'LBL_NAME',
|
||||
'link' => true,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'ACC_WN' => array(
|
||||
'label' => 'LBL_ACC_WN',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'ACC_MA' => array(
|
||||
'label' => 'LBL_ACC_MA',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'ZAL' => array(
|
||||
'label' => 'LBL_ZAL',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'LICZ' => array(
|
||||
'label' => 'LBL_LICZ',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'REZ' => array(
|
||||
'label' => 'LBL_REZ',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'VAT' => array(
|
||||
'label' => 'LBL_VAT',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'NETTO' => array(
|
||||
'label' => 'LBL_NETTO',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'ZAL_WN' => array(
|
||||
'label' => 'LBL_ZAL_WN',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'ZAL_MA' => array(
|
||||
'label' => 'LBL_ZAL_MA',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'TYPE' => array(
|
||||
'label' => 'LBL_TYPE',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
);
|
||||
|
||||
// Describe on table:
|
||||
//
|
||||
// id
|
||||
// deleted
|
||||
// date_entered
|
||||
// date_modified
|
||||
// created_by
|
||||
// modified_by
|
||||
// position
|
||||
// name
|
||||
// acc_wn
|
||||
// acc_ma
|
||||
// zal
|
||||
// licz
|
||||
// rez
|
||||
// vat
|
||||
// netto
|
||||
// zal_wn
|
||||
// zal_ma
|
||||
// table_type
|
||||
|
||||
$list = array(
|
||||
// 'ID' => null,
|
||||
// 'DELETED' => null,
|
||||
// 'DATE_ENTERED' => null,
|
||||
// 'DATE_MODIFIED' => null,
|
||||
// 'CREATED_BY' => null,
|
||||
// 'MODIFIED_BY' => null,
|
||||
'POSITION' => null,
|
||||
'NAME' => null,
|
||||
'ACC_WN' => null,
|
||||
'ACC_MA' => null,
|
||||
// 'ZAL' => null,
|
||||
// 'LICZ' => null,
|
||||
// 'REZ' => null,
|
||||
// 'VAT' => null,
|
||||
// 'NETTO' => null,
|
||||
// 'ZAL_WN' => null,
|
||||
// 'ZAL_MA' => null,
|
||||
'TYPE' => null,
|
||||
);
|
||||
|
||||
array_walk($list, function(&$value, $key) use ($def) {
|
||||
$value = $def[$key];
|
||||
});
|
||||
// dump($list);exit;
|
||||
|
||||
// $listViewDefs['EcmFkVatTables'] = array_intersect_key($def, $list);
|
||||
|
||||
$listViewDefs['EcmFkVatTables'] = $list;
|
||||
|
||||
// echo '<pre>' . var_export($listViewDefs['EcmFkVatTables'], true) . '</pre>';
|
||||
// exit;
|
||||
139
modules/EcmFkVatTables/metadata/popupdefs.php
Executable file
139
modules/EcmFkVatTables/metadata/popupdefs.php
Executable file
@@ -0,0 +1,139 @@
|
||||
<?php
|
||||
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero 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 Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero 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 $mod_strings;
|
||||
|
||||
$popupMeta = array(
|
||||
'moduleMain' => 'EcmFkVatTable',
|
||||
'varName' => 'BANK_ACCOUNT',
|
||||
'orderBy' => 'name',
|
||||
'whereClauses' => array(
|
||||
'code' => 'ecmFkVatTables.code',
|
||||
// 'billing_address_city' => 'ecmFkVatTables.billing_address_city',
|
||||
// 'phone_office' => 'ecmFkVatTables.phone_office'
|
||||
),
|
||||
'searchInputs' => array(
|
||||
'code',
|
||||
// 'billing_address_city',
|
||||
// 'phone_office',
|
||||
),
|
||||
'create' => array(
|
||||
'formBase' => 'EcmFkVatTableFormBase.php',
|
||||
'formBaseClass' => 'EcmFkVatTableFormBase',
|
||||
'getFormBodyParams' => array(
|
||||
'',
|
||||
'',
|
||||
'EcmFkVatTableSave',
|
||||
),
|
||||
'createButton' => $mod_strings['LNK_NEW_ACCOUNT'],
|
||||
),
|
||||
'listviewdefs' => array(
|
||||
'POSITION' =>
|
||||
array (
|
||||
'label' => 'LBL_POSITION',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'NAME' =>
|
||||
array (
|
||||
'label' => 'LBL_NAME',
|
||||
'link' => true,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'ACC_WN' =>
|
||||
array (
|
||||
'label' => 'LBL_ACC_WN',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'ACC_MA' =>
|
||||
array (
|
||||
'label' => 'LBL_ACC_MA',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'ACCOUNT_ACC_WN' =>
|
||||
array (
|
||||
'label' => 'LBL_ACCOUNT_ACC_WN',
|
||||
'link' => false,
|
||||
'default' => false,
|
||||
'bold' => false,
|
||||
),
|
||||
'ACCOUNT_ACC_MA' =>
|
||||
array (
|
||||
'label' => 'LBL_ACCOUNT_ACC_MA',
|
||||
'link' => false,
|
||||
'default' => false,
|
||||
'bold' => false,
|
||||
),
|
||||
'TYPE' =>
|
||||
array (
|
||||
'label' => 'LBL_TYPE',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
),
|
||||
'searchdefs' => array(
|
||||
// 'id',
|
||||
// 'deleted',
|
||||
// 'date_entered',
|
||||
// 'date_modified',
|
||||
// 'created_by',
|
||||
// 'modified_user_id',
|
||||
'position',
|
||||
'name',
|
||||
// 'acc_wn',
|
||||
// 'acc_ma',
|
||||
// 'zal',
|
||||
// 'licz',
|
||||
// 'rez',
|
||||
// 'vat',
|
||||
// 'netto',
|
||||
// 'zal_wn',
|
||||
// 'zal_ma',
|
||||
'type',
|
||||
)
|
||||
);
|
||||
106
modules/EcmFkVatTables/metadata/quickcreatedefs.php
Executable file
106
modules/EcmFkVatTables/metadata/quickcreatedefs.php
Executable file
@@ -0,0 +1,106 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero 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 Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero 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['EcmFkVatTables']['QuickCreate'] = array(
|
||||
'templateMeta' => array('form' => array('enctype'=>'multipart/form-data',
|
||||
'hidden'=>array('<input type="hidden" name="old_id" value="{$fields.ecmfkvattable_revision_id.value}">',
|
||||
'<input type="hidden" name="parent_id" value="{$smarty.request.parent_id}">',
|
||||
'<input type="hidden" name="parent_type" value="{$smarty.request.parent_type}">',)),
|
||||
|
||||
'maxColumns' => '2',
|
||||
'widths' => array(
|
||||
array('label' => '10', 'field' => '30'),
|
||||
array('label' => '10', 'field' => '30')
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
array('file' => 'include/javascript/popup_parent_helper.js'),
|
||||
array('file' => 'include/jsolait/init.js'),
|
||||
array('file' => 'include/jsolait/lib/urllib.js'),
|
||||
array('file' => 'include/javascript/jsclass_base.js'),
|
||||
array('file' => 'include/javascript/jsclass_async.js'),
|
||||
array('file' => 'modules/EcmFkVatTables/ecmfkvattables.js'),
|
||||
),
|
||||
),
|
||||
'panels' =>array (
|
||||
'default' =>
|
||||
array (
|
||||
|
||||
array (
|
||||
|
||||
array('name'=>'uploadfile',
|
||||
'customCode' => '<input type="hidden" name="escaped_ecmfkvattable_name"><input name="uploadfile" type="file" size="30" maxlength="" onchange="setvalue(this);" value="{$fields.filename.value}">{$fields.filename.value}',
|
||||
'displayParams'=>array('required'=>true),
|
||||
),
|
||||
'status_id',
|
||||
),
|
||||
|
||||
array (
|
||||
'ecmfkvattable_name',
|
||||
array('name'=>'revision',
|
||||
'customCode' => '<input name="revision" type="text" value="{$fields.revision.value}">'
|
||||
),
|
||||
),
|
||||
|
||||
array (
|
||||
array (
|
||||
'name' => 'template_type',
|
||||
'label' => 'LBL_DET_TEMPLATE_TYPE',
|
||||
),
|
||||
array (
|
||||
'name' => 'is_template',
|
||||
'label' => 'LBL_DET_IS_TEMPLATE',
|
||||
),
|
||||
),
|
||||
|
||||
array (
|
||||
array('name'=>'active_date','displayParams'=>array('required'=>true)),
|
||||
'category_id',
|
||||
),
|
||||
|
||||
array (
|
||||
'exp_date',
|
||||
'subcategory_id',
|
||||
),
|
||||
|
||||
|
||||
array (
|
||||
array('name'=>'description', 'displayParams'=>array('rows'=>10, 'cols'=>120)),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
);
|
||||
?>
|
||||
93
modules/EcmFkVatTables/metadata/searchdefs.php
Executable file
93
modules/EcmFkVatTables/metadata/searchdefs.php
Executable file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero 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 Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero 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['EcmFkVatTables'] = array(
|
||||
'templateMeta' => array(
|
||||
'maxColumns' => '2',
|
||||
'widths' => array(
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
),
|
||||
'layout' => array(
|
||||
'basic_search' => array(
|
||||
// 'id',
|
||||
// 'deleted',
|
||||
// 'date_entered',
|
||||
// 'date_modified',
|
||||
// 'created_by',
|
||||
// 'modified_user_id',
|
||||
'position',
|
||||
'name',
|
||||
// 'acc_wn',
|
||||
// 'acc_ma',
|
||||
// 'zal',
|
||||
// 'licz',
|
||||
// 'rez',
|
||||
// 'vat',
|
||||
// 'netto',
|
||||
// 'zal_wn',
|
||||
// 'zal_ma',
|
||||
'type',
|
||||
),
|
||||
/*
|
||||
'advanced_search' => array(
|
||||
// 'id',
|
||||
// 'deleted',
|
||||
// 'date_entered',
|
||||
// 'date_modified',
|
||||
// 'created_by',
|
||||
// 'modified_user_id',
|
||||
'position',
|
||||
'name',
|
||||
// 'acc_wn',
|
||||
// 'acc_ma',
|
||||
'acc_wn_code',
|
||||
'acc_ma_code',
|
||||
// 'zal',
|
||||
// 'licz',
|
||||
// 'rez',
|
||||
// 'vat',
|
||||
// 'netto',
|
||||
// 'zal_wn',
|
||||
// 'zal_ma',
|
||||
'type',
|
||||
),
|
||||
*/
|
||||
),
|
||||
);
|
||||
66
modules/EcmFkVatTables/metadata/studio.php
Executable file
66
modules/EcmFkVatTables/metadata/studio.php
Executable file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero 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 Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero 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".
|
||||
* ****************************************************************************** */
|
||||
|
||||
$GLOBALS['studioDefs']['EcmFkVatTables'] = array(
|
||||
'LBL_DETAILVIEW' => array(
|
||||
'template' => 'xtpl',
|
||||
'template_file' => 'modules/EcmFkVatTables/DetailView.html',
|
||||
'php_file' => 'modules/EcmFkVatTables/DetailView.php',
|
||||
'type' => 'DetailView',
|
||||
),
|
||||
'LBL_EDITVIEW' => array(
|
||||
'template' => 'xtpl',
|
||||
'template_file' => 'modules/EcmFkVatTables/EditView.html',
|
||||
'php_file' => 'modules/EcmFkVatTables/EditView.php',
|
||||
'type' => 'EditView',
|
||||
),
|
||||
'LBL_LISTVIEW' => array(
|
||||
'template' => 'listview',
|
||||
'meta_file' => 'modules/EcmFkVatTables/listviewdefs.php',
|
||||
'type' => 'ListView',
|
||||
),
|
||||
'LBL_SEARCHFORM' => array(
|
||||
'template' => 'xtpl',
|
||||
'template_file' => 'modules/EcmFkVatTables/SearchForm.html',
|
||||
'php_file' => 'modules/EcmFkVatTables/ListView.php',
|
||||
'type' => 'SearchForm',
|
||||
),
|
||||
);
|
||||
52
modules/EcmFkVatTables/metadata/subpaneldefs.php
Executable file
52
modules/EcmFkVatTables/metadata/subpaneldefs.php
Executable file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero 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 Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero 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['EcmFkVatTables'] = array(
|
||||
// list of what Subpanels to show in the DetailView
|
||||
'subpanel_setup' => array(
|
||||
'therevisions' => array(
|
||||
'order' => 10,
|
||||
'sort_order' => 'desc',
|
||||
'sort_by' => 'revision',
|
||||
'module' => 'EcmFkVatTableRevisions',
|
||||
'subpanel_name' => 'default',
|
||||
'title_key' => 'LBL_DOC_REV_HEADER',
|
||||
'get_subpanel_data' => 'revisions',
|
||||
'fill_in_additional_fields'=>true,
|
||||
),
|
||||
),
|
||||
);
|
||||
90
modules/EcmFkVatTables/metadata/subpanels/ForContractType.php
Executable file
90
modules/EcmFkVatTables/metadata/subpanels/ForContractType.php
Executable file
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero 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 Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero 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' => 'EcmFkVatTables','field_to_name_array'=>array('ecmfkvattable_revision_id'=>'REL_ATTRIBUTE_document_revision_id')),
|
||||
),
|
||||
|
||||
'where' => '',
|
||||
|
||||
|
||||
|
||||
'list_fields'=> array(
|
||||
'ecmfkvattable_name'=> array(
|
||||
'name' => 'ecmfkvattable_name',
|
||||
'vname' => 'LBL_LIST_DOCUMENT_NAME',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
'width' => '30%',
|
||||
),
|
||||
'is_template'=>array(
|
||||
'name' => 'is_template',
|
||||
'vname' => 'LBL_LIST_IS_TEMPLATE',
|
||||
'width' => '5%',
|
||||
'widget_type'=>'checkbox',
|
||||
),
|
||||
'template_type'=>array(
|
||||
'name' => 'template_types',
|
||||
'vname' => 'LBL_LIST_TEMPLATE_TYPE',
|
||||
'width' => '15%',
|
||||
),
|
||||
'latest_revision'=>array(
|
||||
'name' => 'latest_revision',
|
||||
'vname' => 'LBL_LATEST_REVISION',
|
||||
'width' => '10%',
|
||||
'sortable' => false
|
||||
),
|
||||
'edit_button'=>array(
|
||||
'vname' => 'LBL_EDIT_BUTTON',
|
||||
'widget_class' => 'SubPanelEditButton',
|
||||
'module' => 'EcmFkVatTables',
|
||||
'width' => '5%',
|
||||
),
|
||||
'remove_button'=>array(
|
||||
'vname' => 'LBL_REMOVE',
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'module' => 'EcmFkVatTables',
|
||||
'width' => '5%',
|
||||
),
|
||||
'ecmfkvattable_revision_id'=>array(
|
||||
'usage'=>'query_only'
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
110
modules/EcmFkVatTables/metadata/subpanels/default.php
Executable file
110
modules/EcmFkVatTables/metadata/subpanels/default.php
Executable file
@@ -0,0 +1,110 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero 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 Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero 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' => 'EcmFkVatTables','field_to_name_array'=>array('ecmfkvattable_revision_id'=>'REL_ATTRIBUTE_document_revision_id')),
|
||||
),
|
||||
|
||||
'where' => '',
|
||||
|
||||
|
||||
|
||||
'list_fields'=> array(
|
||||
'object_image'=>array(
|
||||
'vname' => 'LBL_OBJECT_IMAGE',
|
||||
'widget_class' => 'SubPanelIcon',
|
||||
'width' => '2%',
|
||||
'image2'=>'attachment',
|
||||
'image2_url_field'=>array('id_field'=>'selected_revision_id','filename_field'=>'selected_revision_filename'),
|
||||
'attachment_image_only'=>true,
|
||||
|
||||
),
|
||||
'ecmfkvattable_name'=> array(
|
||||
'name' => 'ecmfkvattable_name',
|
||||
'vname' => 'LBL_LIST_DOCUMENT_NAME',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
'width' => '30%',
|
||||
),
|
||||
'is_template'=>array(
|
||||
'name' => 'is_template',
|
||||
'vname' => 'LBL_LIST_IS_TEMPLATE',
|
||||
'width' => '5%',
|
||||
'widget_type'=>'checkbox',
|
||||
),
|
||||
'template_type'=>array(
|
||||
'name' => 'template_types',
|
||||
'vname' => 'LBL_LIST_TEMPLATE_TYPE',
|
||||
'width' => '15%',
|
||||
),
|
||||
'selected_revision_name'=>array(
|
||||
'name' => 'selected_revision_name',
|
||||
'vname' => 'LBL_LIST_SELECTED_REVISION',
|
||||
'width' => '10%',
|
||||
),
|
||||
'latest_revision_name'=>array(
|
||||
'name' => 'latest_revision_name',
|
||||
'vname' => 'LBL_LIST_LATEST_REVISION',
|
||||
'width' => '10%',
|
||||
),
|
||||
'get_latest'=>array(
|
||||
'widget_class' => 'SubPanelGetLatestButton',
|
||||
'module' => 'EcmFkVatTables',
|
||||
'width' => '5%',
|
||||
),
|
||||
'load_signed'=>array(
|
||||
'widget_class' => 'SubPanelLoadSignedButton',
|
||||
'module' => 'EcmFkVatTables',
|
||||
'width' => '5%',
|
||||
),
|
||||
'edit_button'=>array(
|
||||
'vname' => 'LBL_EDIT_BUTTON',
|
||||
'widget_class' => 'SubPanelEditButton',
|
||||
'module' => 'EcmFkVatTables',
|
||||
'width' => '5%',
|
||||
),
|
||||
'remove_button'=>array(
|
||||
'vname' => 'LBL_REMOVE',
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'module' => 'EcmFkVatTables',
|
||||
'width' => '5%',
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
Reference in New Issue
Block a user