Merge branch 'master' of https://github.com/devcode-it/openstamanager
This commit is contained in:
commit
d6aa19405a
Binary file not shown.
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 104 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -21,16 +21,24 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'OpenSansRegular';
|
font-family: 'Source Sans Pro';
|
||||||
src: url('../fonts/opensans-regular-webfont.eot');
|
src: local('Source Sans Pro'),
|
||||||
src: url('../fonts/opensans-regular-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/opensans-regular-webfont.woff') format('woff'), url('../fonts/opensans-regular-webfont.ttf') format('truetype'), url('../fonts/opensans-regular-webfont.svg#OpenSansRegular') format('svg');
|
url('../fonts/sourcesanspro-regular-webfont.eot') format('embedded-opentype'),
|
||||||
font-weight: normal;
|
url('../fonts/sourcesanspro-regular-webfont.woff') format('woff'),
|
||||||
font-style: normal;
|
url('../fonts/sourcesanspro-regular-webfont.woff2') format('woff2'),
|
||||||
|
url('../fonts/sourcesanspro-regular-webfont.ttf') format('truetype'),
|
||||||
|
url('../fonts/sourcesanspro-regular-webfont.svg') format('svg');
|
||||||
}
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
font-family: 'Open Sans', sans-serif;
|
font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 1.5;
|
||||||
|
color: #212529;
|
||||||
|
text-align: left;
|
||||||
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
.skin-default.login-page .wrapper {
|
.skin-default.login-page .wrapper {
|
||||||
background: #d2d6de;
|
background: #d2d6de;
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.skin-default .content-wrapper,
|
.skin-default .content-wrapper,
|
||||||
|
|
|
@ -255,6 +255,11 @@ const fonts = gulp.parallel(() => {
|
||||||
'bootstrap/dist/fonts/glyphicons-halflings-regular.ttf',
|
'bootstrap/dist/fonts/glyphicons-halflings-regular.ttf',
|
||||||
'bootstrap/dist/fonts/glyphicons-halflings-regular.woff',
|
'bootstrap/dist/fonts/glyphicons-halflings-regular.woff',
|
||||||
'bootstrap/dist/fonts/glyphicons-halflings-regular.woff2',
|
'bootstrap/dist/fonts/glyphicons-halflings-regular.woff2',
|
||||||
|
'../assets/src/css/fonts/sourcesanspro-regular-webfont.eot',
|
||||||
|
'../assets/src/css/fonts/sourcesanspro-regular-webfont.svg',
|
||||||
|
'../assets/src/css/fonts/sourcesanspro-regular-webfont.ttf',
|
||||||
|
'../assets/src/css/fonts/sourcesanspro-regular-webfont.woff',
|
||||||
|
'../assets/src/css/fonts/sourcesanspro-regular-webfont.woff2',
|
||||||
];
|
];
|
||||||
|
|
||||||
for (const i in vendor) {
|
for (const i in vendor) {
|
||||||
|
|
|
@ -333,7 +333,6 @@ if (Auth::check()) {
|
||||||
$settings_collapse = session_get('settings.sidebar-collapse') ? 1 : 0;
|
$settings_collapse = session_get('settings.sidebar-collapse') ? 1 : 0;
|
||||||
$hide_sidebar = Auth::check() && (setting('Nascondere la barra sinistra di default') || $settings_collapse);
|
$hide_sidebar = Auth::check() && (setting('Nascondere la barra sinistra di default') || $settings_collapse);
|
||||||
echo '
|
echo '
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="skin-'.$theme.(!empty($hide_sidebar) ? ' sidebar-collapse' : '').(!Auth::check() ? ' hold-transition login-page' : '').'">
|
<body class="skin-'.$theme.(!empty($hide_sidebar) ? ' sidebar-collapse' : '').(!Auth::check() ? ' hold-transition login-page' : '').'">
|
||||||
|
|
|
@ -80,11 +80,12 @@ switch (post('op')) {
|
||||||
$anagrafica->idiva_vendite = post('idiva_vendite');
|
$anagrafica->idiva_vendite = post('idiva_vendite');
|
||||||
$anagrafica->idbanca_acquisti = post('idbanca_acquisti');
|
$anagrafica->idbanca_acquisti = post('idbanca_acquisti');
|
||||||
$anagrafica->idbanca_vendite = post('idbanca_vendite');
|
$anagrafica->idbanca_vendite = post('idbanca_vendite');
|
||||||
$anagrafica->settore = post('settore');
|
$anagrafica->id_settore = post('id_settore');
|
||||||
$anagrafica->marche = post('marche');
|
$anagrafica->marche = post('marche');
|
||||||
$anagrafica->dipendenti = post('dipendenti');
|
$anagrafica->dipendenti = post('dipendenti');
|
||||||
$anagrafica->macchine = post('macchine');
|
$anagrafica->macchine = post('macchine');
|
||||||
$anagrafica->idagente = post('idagente');
|
$anagrafica->idagente = post('idagente');
|
||||||
|
$anagrafica->id_provenienza = post('id_provenienza');
|
||||||
$anagrafica->idrelazione = post('idrelazione');
|
$anagrafica->idrelazione = post('idrelazione');
|
||||||
$anagrafica->sitoweb = post('sitoweb');
|
$anagrafica->sitoweb = post('sitoweb');
|
||||||
$anagrafica->iscrizione_tribunale = post('iscrizione_tribunale');
|
$anagrafica->iscrizione_tribunale = post('iscrizione_tribunale');
|
||||||
|
|
|
@ -42,7 +42,6 @@ $fields = [
|
||||||
'Sito web' => 'sitoweb',
|
'Sito web' => 'sitoweb',
|
||||||
'Note' => 'note',
|
'Note' => 'note',
|
||||||
'Codice REA' => 'codicerea',
|
'Codice REA' => 'codicerea',
|
||||||
'Settore' => 'settore',
|
|
||||||
'Marche' => 'marche',
|
'Marche' => 'marche',
|
||||||
'CCIAA' => 'cciaa',
|
'CCIAA' => 'cciaa',
|
||||||
'Numero di iscrizione albo artigiani' => 'n_alboartigiani',
|
'Numero di iscrizione albo artigiani' => 'n_alboartigiani',
|
||||||
|
|
|
@ -372,6 +372,33 @@ switch ($resource) {
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'provenienze':
|
||||||
|
$query = 'SELECT id, descrizione, colore AS bgcolor FROM an_provenienze |where| ORDER BY descrizione';
|
||||||
|
|
||||||
|
foreach ($elements as $element) {
|
||||||
|
$filter[] = 'id='.prepare($element);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!empty($search)) {
|
||||||
|
$search_fields[] = 'descrizione LIKE '.prepare('%'.$search.'%');
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
|
||||||
|
case 'settori':
|
||||||
|
$query = 'SELECT id, descrizione FROM an_settori |where| ORDER BY descrizione';
|
||||||
|
|
||||||
|
foreach ($elements as $element) {
|
||||||
|
$filter[] = 'id='.prepare($element);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!empty($search)) {
|
||||||
|
$search_fields[] = 'descrizione LIKE '.prepare('%'.$search.'%');
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Opzioni utilizzate:
|
* Opzioni utilizzate:
|
||||||
|
|
|
@ -490,9 +490,8 @@ if ($is_cliente or $is_fornitore or $is_tecnico) {
|
||||||
<div class="tab-pane '.(!$is_cliente ? 'hide' : 'active').'" id="cliente">
|
<div class="tab-pane '.(!$is_cliente ? 'hide' : 'active').'" id="cliente">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
{[ "type": "select", "label": "'.tr('Tipo attività predefinita').'", "name": "idtipointervento_default", "values": "query=SELECT idtipointervento AS id, descrizione FROM in_tipiintervento ORDER BY descrizione ASC", "value": "$idtipointervento_default$" ]}
|
{[ "type": "select", "label": "'.tr('Provenienza cliente').'", "name": "id_provenienza", "ajax-source": "provenienze", "value": "$id_provenienza$", "icon-after": "add|'.Modules::get('Provenienze')['id'].'" ]}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
{[ "type": "select", "label": "'.tr('Relazione con il cliente').'", "name": "idrelazione", "ajax-source": "relazioni", "value": "$idrelazione$", "icon-after": "add|'.Modules::get('Relazioni')['id'].'" ]}
|
{[ "type": "select", "label": "'.tr('Relazione con il cliente').'", "name": "idrelazione", "ajax-source": "relazioni", "value": "$idrelazione$", "icon-after": "add|'.Modules::get('Relazioni')['id'].'" ]}
|
||||||
</div>
|
</div>
|
||||||
|
@ -555,6 +554,11 @@ if ($is_cliente or $is_fornitore or $is_tecnico) {
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
{[ "type": "select", "label": "'.tr('Tipo attività predefinita').'", "name": "idtipointervento_default", "values": "query=SELECT idtipointervento AS id, descrizione FROM in_tipiintervento ORDER BY descrizione ASC", "value": "$idtipointervento_default$" ]}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>';
|
</div>';
|
||||||
|
|
||||||
|
@ -671,9 +675,9 @@ if ($is_cliente or $is_fornitore or $is_tecnico) {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{[ "type": "text", "label": "<?php echo tr('Settore merceologico'); ?>", "name": "settore", "value": "$settore$" ]}
|
{[ "type": "select", "label": "<?php echo tr('Settore merceologico'); ?>", "name": "id_settore", "ajax-source": "settori", "value": "$id_settore$", "icon-after": "add|<?php echo Modules::get('Settori')['id']; ?>" ]}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{[ "type": "text", "label": "<?php echo tr('Marche trattate'); ?>", "name": "marche", "value": "$marche$" ]}
|
{[ "type": "text", "label": "<?php echo tr('Marche trattate'); ?>", "name": "marche", "value": "$marche$" ]}
|
||||||
|
|
|
@ -0,0 +1,83 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
|
||||||
|
* Copyright (C) DevCode s.r.l.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* 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 <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
include_once __DIR__.'/../../core.php';
|
||||||
|
|
||||||
|
switch (filter('op')) {
|
||||||
|
case 'update':
|
||||||
|
$descrizione = filter('descrizione');
|
||||||
|
$colore = filter('colore');
|
||||||
|
|
||||||
|
if (isset($descrizione)) {
|
||||||
|
if ($dbo->fetchNum('SELECT * FROM `an_provenienze` WHERE `descrizione`='.prepare($descrizione).' AND `id`!='.prepare($id_record)) == 0) {
|
||||||
|
$dbo->query('UPDATE `an_provenienze` SET `descrizione`='.prepare($descrizione).', `colore`='.prepare($colore).' WHERE `id`='.prepare($id_record));
|
||||||
|
flash()->info(tr('Salvataggio completato.'));
|
||||||
|
} else {
|
||||||
|
flash()->error(tr("E' già presente una provenienza _NAME_.", [
|
||||||
|
'_TYPE_' => $descrizione,
|
||||||
|
]));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
flash()->error(tr('Ci sono stati alcuni errori durante il salvataggio'));
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'add':
|
||||||
|
$descrizione = filter('descrizione');
|
||||||
|
$colore = filter('colore');
|
||||||
|
|
||||||
|
if (isset($descrizione)) {
|
||||||
|
if ($dbo->fetchNum('SELECT * FROM `an_provenienze` WHERE `descrizione`='.prepare($descrizione)) == 0) {
|
||||||
|
$dbo->query('INSERT INTO `an_provenienze` (`descrizione`, `colore`) VALUES ('.prepare($descrizione).', '.prepare($colore).')');
|
||||||
|
|
||||||
|
$id_record = $dbo->lastInsertedID();
|
||||||
|
|
||||||
|
if (isAjaxRequest()) {
|
||||||
|
echo json_encode(['id' => $id_record, 'text' => $descrizione]);
|
||||||
|
}
|
||||||
|
|
||||||
|
flash()->info(tr('Aggiunta nuova provenienza _NAME_', [
|
||||||
|
'_NAME_' => $descrizione,
|
||||||
|
]));
|
||||||
|
} else {
|
||||||
|
flash()->error(tr("E' già presente una provenienza di _NAME_.", [
|
||||||
|
'_NAME_' => $descrizione,
|
||||||
|
]));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
flash()->error(tr('Ci sono stati alcuni errori durante il salvataggio'));
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'delete':
|
||||||
|
$righe = $dbo->fetchNum('SELECT idanagrafica FROM an_anagrafiche WHERE id_provenienza='.prepare($id_record));
|
||||||
|
|
||||||
|
if (isset($id_record) && empty($righe)) {
|
||||||
|
$dbo->query('DELETE FROM `an_provenienze` WHERE `id`='.prepare($id_record));
|
||||||
|
flash()->info(tr('Provenienza _NAME_ eliminata con successo!', [
|
||||||
|
'_NAME_' => $descrizione,
|
||||||
|
]));
|
||||||
|
} else {
|
||||||
|
flash()->error(tr('Sono presenti '.count($righe).' anagrafiche collegate a questa provenienza.'));
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
|
@ -0,0 +1,51 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
|
||||||
|
* Copyright (C) DevCode s.r.l.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* 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 <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
include_once __DIR__.'/../../core.php';
|
||||||
|
|
||||||
|
?><form action="" method="post" id="add-form">
|
||||||
|
<input type="hidden" name="op" value="add">
|
||||||
|
<input type="hidden" name="backto" value="record-edit">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-9">
|
||||||
|
{[ "type": "text", "label": "<?php echo tr('Descrizione'); ?>", "name": "descrizione", "required": 1 ]}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
{[ "type": "text", "label": "<?php echo tr('Colore'); ?>", "name": "colore", "required": 1, "class": "colorpicker text-center", "value": "", "extra": "maxlength='7'", "icon-after": "<div class='img-circle square'></div>" ]}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- PULSANTI -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12 text-right">
|
||||||
|
<button type="submit" class="btn btn-primary"><i class="fa fa-plus"></i> <?php echo tr('Aggiungi'); ?></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready( function() {
|
||||||
|
$('.colorpicker').colorpicker().on('changeColor', function() {
|
||||||
|
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
|
||||||
|
});
|
||||||
|
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
|
||||||
|
});
|
||||||
|
</script>
|
|
@ -0,0 +1,77 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
|
||||||
|
* Copyright (C) DevCode s.r.l.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* 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 <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
include_once __DIR__.'/../../core.php';
|
||||||
|
|
||||||
|
?><form action="" method="post" id="edit-form">
|
||||||
|
<input type="hidden" name="backto" value="record-edit">
|
||||||
|
<input type="hidden" name="op" value="update">
|
||||||
|
|
||||||
|
<!-- DATI -->
|
||||||
|
<div class="panel panel-primary">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<h3 class="panel-title"><?php echo tr('Dati'); ?></h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-9">
|
||||||
|
{[ "type": "text", "label": "<?php echo tr('Descrizione'); ?>", "name": "descrizione", "required": 1, "value": "$descrizione$" ]}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
{[ "type": "text", "label": "<?php echo tr('Colore'); ?>", "name": "colore", "required": 1, "class": "colorpicker text-center", "value": "$colore$", "extra": "maxlength='7'", "icon-after": "<div class='img-circle square'></div>" ]}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$righe = $dbo->fetchNum('SELECT idanagrafica FROM an_anagrafiche WHERE id_provenienza='.prepare($id_record));
|
||||||
|
|
||||||
|
if (!empty($righe)) {
|
||||||
|
echo '
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
'.tr('Ci sono _NUM_ anagrafiche collegate', [
|
||||||
|
'_NUM_' => $righe,
|
||||||
|
]).'.
|
||||||
|
</div>';
|
||||||
|
} else {
|
||||||
|
?>
|
||||||
|
|
||||||
|
<a class="btn btn-danger ask" data-backto="record-list">
|
||||||
|
<i class="fa fa-trash"></i> <?php echo tr('Elimina'); ?>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready( function() {
|
||||||
|
$('.colorpicker').colorpicker().on('changeColor', function() {
|
||||||
|
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
|
||||||
|
});
|
||||||
|
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
|
||||||
|
});
|
||||||
|
</script>
|
|
@ -0,0 +1,24 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
|
||||||
|
* Copyright (C) DevCode s.r.l.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* 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 <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
include_once __DIR__.'/../../core.php';
|
||||||
|
|
||||||
|
if (isset($id_record)) {
|
||||||
|
$record = $dbo->fetchOne('SELECT * FROM `an_provenienze` WHERE id='.prepare($id_record));
|
||||||
|
}
|
|
@ -0,0 +1,83 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
|
||||||
|
* Copyright (C) DevCode s.r.l.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* 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 <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
include_once __DIR__.'/../../core.php';
|
||||||
|
|
||||||
|
switch (filter('op')) {
|
||||||
|
case 'update':
|
||||||
|
$descrizione = filter('descrizione');
|
||||||
|
$colore = filter('colore');
|
||||||
|
|
||||||
|
if (isset($descrizione)) {
|
||||||
|
if ($dbo->fetchNum('SELECT * FROM `an_settori` WHERE `descrizione`='.prepare($descrizione).' AND `id`!='.prepare($id_record)) == 0) {
|
||||||
|
$dbo->query('UPDATE `an_settori` SET `descrizione`='.prepare($descrizione).' WHERE `id`='.prepare($id_record));
|
||||||
|
flash()->info(tr('Salvataggio completato.'));
|
||||||
|
} else {
|
||||||
|
flash()->error(tr("E' già presente il settore merceologico _NAME_.", [
|
||||||
|
'_TYPE_' => $descrizione,
|
||||||
|
]));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
flash()->error(tr('Ci sono stati alcuni errori durante il salvataggio'));
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'add':
|
||||||
|
$descrizione = filter('descrizione');
|
||||||
|
$colore = filter('colore');
|
||||||
|
|
||||||
|
if (isset($descrizione)) {
|
||||||
|
if ($dbo->fetchNum('SELECT * FROM `an_settori` WHERE `descrizione`='.prepare($descrizione)) == 0) {
|
||||||
|
$dbo->query('INSERT INTO `an_settori` (`descrizione`) VALUES ('.prepare($descrizione).')');
|
||||||
|
|
||||||
|
$id_record = $dbo->lastInsertedID();
|
||||||
|
|
||||||
|
if (isAjaxRequest()) {
|
||||||
|
echo json_encode(['id' => $id_record, 'text' => $descrizione]);
|
||||||
|
}
|
||||||
|
|
||||||
|
flash()->info(tr('Aggiunto nuovo settore merceologico _NAME_', [
|
||||||
|
'_NAME_' => $descrizione,
|
||||||
|
]));
|
||||||
|
} else {
|
||||||
|
flash()->error(tr("E' già presente un settore merceologico _NAME_.", [
|
||||||
|
'_NAME_' => $descrizione,
|
||||||
|
]));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
flash()->error(tr('Ci sono stati alcuni errori durante il salvataggio'));
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'delete':
|
||||||
|
$righe = $dbo->fetchNum('SELECT idanagrafica FROM an_anagrafiche WHERE id_settore='.prepare($id_record));
|
||||||
|
|
||||||
|
if (isset($id_record) && empty($righe)) {
|
||||||
|
$dbo->query('DELETE FROM `an_settori` WHERE `id`='.prepare($id_record));
|
||||||
|
flash()->info(tr('Settore merceologico _NAME_ eliminato con successo!', [
|
||||||
|
'_NAME_' => $descrizione,
|
||||||
|
]));
|
||||||
|
} else {
|
||||||
|
flash()->error(tr('Sono presenti '.count($righe).' anagrafiche collegate a questo settore merceologico.'));
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
|
@ -0,0 +1,47 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
|
||||||
|
* Copyright (C) DevCode s.r.l.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* 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 <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
include_once __DIR__.'/../../core.php';
|
||||||
|
|
||||||
|
?><form action="" method="post" id="add-form">
|
||||||
|
<input type="hidden" name="op" value="add">
|
||||||
|
<input type="hidden" name="backto" value="record-edit">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
{[ "type": "text", "label": "<?php echo tr('Descrizione'); ?>", "name": "descrizione", "required": 1 ]}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- PULSANTI -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12 text-right">
|
||||||
|
<button type="submit" class="btn btn-primary"><i class="fa fa-plus"></i> <?php echo tr('Aggiungi'); ?></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready( function() {
|
||||||
|
$('.colorpicker').colorpicker().on('changeColor', function() {
|
||||||
|
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
|
||||||
|
});
|
||||||
|
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
|
||||||
|
});
|
||||||
|
</script>
|
|
@ -0,0 +1,72 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
|
||||||
|
* Copyright (C) DevCode s.r.l.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* 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 <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
include_once __DIR__.'/../../core.php';
|
||||||
|
|
||||||
|
?><form action="" method="post" id="edit-form">
|
||||||
|
<input type="hidden" name="backto" value="record-edit">
|
||||||
|
<input type="hidden" name="op" value="update">
|
||||||
|
|
||||||
|
<!-- DATI -->
|
||||||
|
<div class="panel panel-primary">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<h3 class="panel-title"><?php echo tr('Dati'); ?></h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
{[ "type": "text", "label": "<?php echo tr('Descrizione'); ?>", "name": "descrizione", "required": 1, "value": "$descrizione$" ]}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$righe = $dbo->fetchNum('SELECT idanagrafica FROM an_anagrafiche WHERE id_settore='.prepare($id_record));
|
||||||
|
|
||||||
|
if (!empty($righe)) {
|
||||||
|
echo '
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
'.tr('Ci sono _NUM_ anagrafiche collegate', [
|
||||||
|
'_NUM_' => $righe,
|
||||||
|
]).'.
|
||||||
|
</div>';
|
||||||
|
} else {
|
||||||
|
?>
|
||||||
|
|
||||||
|
<a class="btn btn-danger ask" data-backto="record-list">
|
||||||
|
<i class="fa fa-trash"></i> <?php echo tr('Elimina'); ?>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready( function() {
|
||||||
|
$('.colorpicker').colorpicker().on('changeColor', function() {
|
||||||
|
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
|
||||||
|
});
|
||||||
|
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
|
||||||
|
});
|
||||||
|
</script>
|
|
@ -0,0 +1,24 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
|
||||||
|
* Copyright (C) DevCode s.r.l.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* 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 <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
include_once __DIR__.'/../../core.php';
|
||||||
|
|
||||||
|
if (isset($id_record)) {
|
||||||
|
$record = $dbo->fetchOne('SELECT * FROM `an_settori` WHERE id='.prepare($id_record));
|
||||||
|
}
|
|
@ -68,6 +68,13 @@ class ChoicesHandler implements HandlerInterface
|
||||||
// Gestione dei placeholder
|
// Gestione dei placeholder
|
||||||
$values['placeholder'] = isset($values['placeholder']) ? $values['placeholder'] : $values['label'];
|
$values['placeholder'] = isset($values['placeholder']) ? $values['placeholder'] : $values['label'];
|
||||||
|
|
||||||
|
// Gestione valori custom
|
||||||
|
if ( !empty($values['values']) ){
|
||||||
|
$valori_custom = explode(",",$values['values']);
|
||||||
|
$options = '<span class="text-success">'.str_replace('"','',$valori_custom[0]).'</span>
|
||||||
|
<span class="text-danger">'.str_replace('"','',$valori_custom[1]).'</span>';
|
||||||
|
}
|
||||||
|
|
||||||
// Generazione del codice HTML
|
// Generazione del codice HTML
|
||||||
// "+ this.checked" rende il valore booleano un numero
|
// "+ this.checked" rende il valore booleano un numero
|
||||||
$result = '
|
$result = '
|
||||||
|
@ -78,9 +85,15 @@ class ChoicesHandler implements HandlerInterface
|
||||||
<span class="fa fa-check text-success"></span>
|
<span class="fa fa-check text-success"></span>
|
||||||
<span class="fa fa-close text-danger"></span>
|
<span class="fa fa-close text-danger"></span>
|
||||||
</label>
|
</label>
|
||||||
<label for="|id|" class="btn btn-default active'.$class.'">
|
<label for="|id|" class="btn btn-default active'.$class.'">';
|
||||||
<span class="text-success">'.tr('Attivato').'</span>
|
if( !empty($options) ){
|
||||||
<span class="text-danger">'.tr('Disattivato').'</span>
|
$result .= $options;
|
||||||
|
}else{
|
||||||
|
$result .= '
|
||||||
|
<span class="text-success">'.tr('Attivato').'</span>
|
||||||
|
<span class="text-danger">'.tr('Disattivato').'</span>';
|
||||||
|
}
|
||||||
|
$result .= '
|
||||||
</label>
|
</label>
|
||||||
</div>';
|
</div>';
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ UPDATE `zz_prints` SET `id_module` = (SELECT `id` FROM `zz_modules` WHERE `name`
|
||||||
INSERT INTO `zz_prints` (`id`, `id_module`, `is_record`, `name`, `title`, `filename`, `directory`, `previous`, `options`, `icon`, `version`, `compatibility`, `order`, `predefined`, `default`, `enabled`) VALUES (NULL, (SELECT `id` FROM `zz_modules` WHERE `name`='Stampe contabili'), '1', 'Libro giornale', 'Libro giornale', 'Libro giornale', 'libro_giornale', 'idconto', '', 'fa fa-print', '', '', '0', '0', '1', '1');
|
INSERT INTO `zz_prints` (`id`, `id_module`, `is_record`, `name`, `title`, `filename`, `directory`, `previous`, `options`, `icon`, `version`, `compatibility`, `order`, `predefined`, `default`, `enabled`) VALUES (NULL, (SELECT `id` FROM `zz_modules` WHERE `name`='Stampe contabili'), '1', 'Libro giornale', 'Libro giornale', 'Libro giornale', 'libro_giornale', 'idconto', '', 'fa fa-print', '', '', '0', '0', '1', '1');
|
||||||
|
|
||||||
-- Aggiunta tabella mansioni
|
-- Aggiunta tabella mansioni
|
||||||
CREATE TABLE IF NOT EXISTS `an_mansioni` ( `id` INT NOT NULL AUTO_INCREMENT , `nome` VARCHAR(100) NOT NULL , `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , `updated_at` TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`id`));
|
CREATE TABLE IF NOT EXISTS `an_mansioni` ( `id` INT NOT NULL AUTO_INCREMENT , `nome` VARCHAR(100) NOT NULL , PRIMARY KEY (`id`));
|
||||||
|
|
||||||
INSERT INTO `an_mansioni`(
|
INSERT INTO `an_mansioni`(
|
||||||
`nome`
|
`nome`
|
||||||
|
@ -56,7 +56,7 @@ INSERT INTO `zz_views` (`id`, `id_module`, `name`, `query`, `order`, `visible`,
|
||||||
|
|
||||||
UPDATE `zz_plugins` SET `options` = ' { \"main_query\": [ { \"type\": \"table\", \"fields\": \"Nominativo, Mansione, Telefono, Indirizzo email, Sede\", \"query\": \"SELECT an_referenti.id, an_referenti.nome AS Nominativo, an_mansioni.nome AS Mansione, an_referenti.telefono AS Telefono, an_referenti.email AS \'Indirizzo email\', IF(idsede = 0, \'Sede legale\', an_sedi.nomesede) AS Sede FROM an_referenti LEFT OUTER JOIN an_sedi ON idsede = an_sedi.id LEFT OUTER JOIN an_mansioni ON idmansione = an_mansioni.id WHERE 1=1 AND an_referenti.idanagrafica=|id_parent| HAVING 2=2 ORDER BY an_referenti.id DESC\"} ]}' WHERE `zz_plugins`.`name` = 'Referenti';
|
UPDATE `zz_plugins` SET `options` = ' { \"main_query\": [ { \"type\": \"table\", \"fields\": \"Nominativo, Mansione, Telefono, Indirizzo email, Sede\", \"query\": \"SELECT an_referenti.id, an_referenti.nome AS Nominativo, an_mansioni.nome AS Mansione, an_referenti.telefono AS Telefono, an_referenti.email AS \'Indirizzo email\', IF(idsede = 0, \'Sede legale\', an_sedi.nomesede) AS Sede FROM an_referenti LEFT OUTER JOIN an_sedi ON idsede = an_sedi.id LEFT OUTER JOIN an_mansioni ON idmansione = an_mansioni.id WHERE 1=1 AND an_referenti.idanagrafica=|id_parent| HAVING 2=2 ORDER BY an_referenti.id DESC\"} ]}' WHERE `zz_plugins`.`name` = 'Referenti';
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `em_mansioni_template` ( `id` INT NOT NULL AUTO_INCREMENT , `idmansione` INT NOT NULL , `id_template` INT NOT NULL , `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , `updated_at` TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`));
|
CREATE TABLE IF NOT EXISTS `em_mansioni_template` ( `id` INT NOT NULL AUTO_INCREMENT , `idmansione` INT NOT NULL , `id_template` INT NOT NULL , PRIMARY KEY (`id`));
|
||||||
|
|
||||||
-- Aggiunta notifiche ai tecnici assegnati
|
-- Aggiunta notifiche ai tecnici assegnati
|
||||||
ALTER TABLE `in_statiintervento` CHANGE `notifica_tecnici` `notifica_tecnico_sessione` TINYINT(4) NOT NULL;
|
ALTER TABLE `in_statiintervento` CHANGE `notifica_tecnici` `notifica_tecnico_sessione` TINYINT(4) NOT NULL;
|
||||||
|
|
|
@ -60,3 +60,51 @@ INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`
|
||||||
-- Filtro per mostrare preventivi ai clienti
|
-- Filtro per mostrare preventivi ai clienti
|
||||||
INSERT INTO `zz_group_module` (`idgruppo`, `idmodule`, `name`, `clause`, `position`, `enabled`, `default`) VALUES
|
INSERT INTO `zz_group_module` (`idgruppo`, `idmodule`, `name`, `clause`, `position`, `enabled`, `default`) VALUES
|
||||||
((SELECT `id` FROM `zz_groups` WHERE `nome`='Clienti'), (SELECT `id` FROM `zz_modules` WHERE `name`='Preventivi'), 'Mostra preventivi ai clienti coinvolti', 'co_preventivi.idanagrafica=|id_anagrafica|', 'WHR', 1, 0);
|
((SELECT `id` FROM `zz_groups` WHERE `nome`='Clienti'), (SELECT `id` FROM `zz_modules` WHERE `name`='Preventivi'), 'Mostra preventivi ai clienti coinvolti', 'co_preventivi.idanagrafica=|id_anagrafica|', 'WHR', 1, 0);
|
||||||
|
|
||||||
|
-- Nuova tabella per gestire le provenienze
|
||||||
|
CREATE TABLE IF NOT EXISTS `an_provenienze` (
|
||||||
|
`id` int NOT NULL AUTO_INCREMENT,
|
||||||
|
`descrizione` varchar(100) NOT NULL,
|
||||||
|
`colore` varchar(7) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB;
|
||||||
|
|
||||||
|
|
||||||
|
INSERT INTO `an_provenienze` (`id`, `descrizione`, `colore`) VALUES
|
||||||
|
(NULL, 'Sito web', '#caffb7'),
|
||||||
|
(NULL, 'Passaparola', '#8fbafd');
|
||||||
|
|
||||||
|
-- Aggiunto id_provenienza per scheda anagrafica Cliente
|
||||||
|
ALTER TABLE `an_anagrafiche` ADD `id_provenienza` AFTER `idrelazione`, INT DEFAULT NULL;
|
||||||
|
|
||||||
|
-- Nuovo modulo per gestire le "Provenienze"
|
||||||
|
INSERT INTO `zz_modules` (`id`, `name`, `title`, `directory`, `options`, `options2`, `icon`, `version`, `compatibility`, `order`, `parent`, `default`, `enabled`, `use_notes`, `use_checklists`) VALUES (NULL, 'Provenienze', 'Provenienze clienti', 'provenienze', 'SELECT |select| FROM `an_provenienze` WHERE 1=1 HAVING 2=2', '', 'fa fa-angle-right', '2.4.34', '2.4.34', '3', (SELECT id FROM zz_modules t WHERE t.name = 'Anagrafiche'), '1', '1', '0', '0');
|
||||||
|
|
||||||
|
INSERT INTO `zz_views` (`id`, `id_module`, `name`, `query`, `order`, `visible`, `format`, `default`) VALUES
|
||||||
|
(NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'Provenienze'), 'id', 'an_provenienze.id', 1, 1, 0, 1),
|
||||||
|
(NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'Provenienze'), 'descrizione', 'an_provenienze.descrizione', 2, 1, 0, 1),
|
||||||
|
(NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'Provenienze'), 'colore', 'an_provenienze.colore', 3, 1, 0, 1);
|
||||||
|
|
||||||
|
|
||||||
|
-- Aggiunta tabella settore merceologico
|
||||||
|
CREATE TABLE IF NOT EXISTS `an_settori` ( `id` INT NOT NULL AUTO_INCREMENT , `descrizione` VARCHAR(100) NOT NULL , PRIMARY KEY (`id`));
|
||||||
|
|
||||||
|
INSERT INTO `an_settori`(
|
||||||
|
`descrizione`
|
||||||
|
)(
|
||||||
|
SELECT DISTINCT `settore` FROM `an_anagrafiche`
|
||||||
|
);
|
||||||
|
|
||||||
|
ALTER TABLE `an_anagrafiche` ADD `id_settore` INT NOT NULL AFTER `settore`;
|
||||||
|
|
||||||
|
UPDATE `an_anagrafiche`, `an_settori` SET `id_settore`=`an_settori`.`id` WHERE `an_settori`.`descrizione`=`an_anagrafiche`.`settore`;
|
||||||
|
|
||||||
|
ALTER TABLE `an_anagrafiche` DROP `settore`;
|
||||||
|
|
||||||
|
|
||||||
|
-- Nuovo modulo per gestire i "Settori merceologici"
|
||||||
|
INSERT INTO `zz_modules` (`id`, `name`, `title`, `directory`, `options`, `options2`, `icon`, `version`, `compatibility`, `order`, `parent`, `default`, `enabled`, `use_notes`, `use_checklists`) VALUES (NULL, 'Settori', 'Settori merceologici', 'settori_merceologici', 'SELECT |select| FROM `an_settori` WHERE 1=1 HAVING 2=2', '', 'fa fa-angle-right', '2.4.34', '2.4.34', '4', (SELECT id FROM zz_modules t WHERE t.name = 'Anagrafiche'), '1', '1', '0', '0');
|
||||||
|
|
||||||
|
INSERT INTO `zz_views` (`id`, `id_module`, `name`, `query`, `order`, `visible`, `format`, `default`) VALUES
|
||||||
|
(NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'Settori'), 'id', 'an_settori.id', 1, 1, 0, 1),
|
||||||
|
(NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'Settori'), 'descrizione', 'an_settori.descrizione', 2, 1, 0, 1);
|
||||||
|
|
|
@ -8,6 +8,8 @@ return [
|
||||||
'an_referenti',
|
'an_referenti',
|
||||||
'an_regioni',
|
'an_regioni',
|
||||||
'an_relazioni',
|
'an_relazioni',
|
||||||
|
'an_provenienze',
|
||||||
|
'an_settori',
|
||||||
'an_sedi',
|
'an_sedi',
|
||||||
'an_tipianagrafiche',
|
'an_tipianagrafiche',
|
||||||
'an_tipianagrafiche_anagrafiche',
|
'an_tipianagrafiche_anagrafiche',
|
||||||
|
|
Loading…
Reference in New Issue