Migliorie minori

This commit is contained in:
Luca 2020-07-09 18:50:10 +02:00
parent f990c752b2
commit 96394c09fa
7 changed files with 44 additions and 12 deletions

View File

@ -249,9 +249,12 @@ switch (post('op')) {
}
if (App::debug()) {
$operations = [
'delete-bulk' => tr('Elimina selezionati'),
$operations['delete-bulk'] = [
'text' => '<span><i class="fa fa-trash"></i> '.tr('Elimina selezionati').'</span>'
];
}
$operations['copy-bulk'] = [

View File

@ -218,7 +218,7 @@ switch (post('op')) {
return [
'export-bulk' => [
'text' => tr('Esporta stampe'),
'text' => '<span><i class="fa fa-file-archive-o"></i> '.tr('Esporta stampe'),
'data' => [
'title' => tr('Vuoi davvero esportare queste stampe in un archivio?'),
'msg' => '',
@ -229,7 +229,7 @@ return [
],
'crea_fattura' => [
'text' => tr('Fattura documenti'),
'text' => '<span><i class="fa fa-file-code-o"></i> '.tr('Fattura documenti'),
'data' => [
'title' => tr('Vuoi davvero generare le fatture per questi interventi?'),
'msg' => tr('Verranno fatturati gli interventi completati non inseriti in preventivi e contratti').'.<br>{[ "type": "checkbox", "placeholder": "'.tr('Aggiungere alle fatture esistenti non ancora emesse?').'", "name": "accodare" ]}
@ -241,7 +241,7 @@ return [
],
'cambia_stato' => [
'text' => tr('Cambia stato'),
'text' => '<span><i class="fa fa-refresh"></i> '.tr('Cambia stato'),
'data' => [
'title' => tr('Vuoi davvero cambinare le stato per questi interventi?'),
'msg' => tr('Seleziona lo stato in cui spostare tutti gli interventi non completati').'.<br>
@ -253,7 +253,7 @@ return [
],
'copy' => [
'text' => tr('Duplica attività'),
'text' => '<span><i class="fa fa-clone"></i> '.tr('Duplica attività'),
'data' => [
'title' => tr('Vuoi davvero fare una copia degli interventi selezionati?'),
'msg' => '<br>{[ "type": "timestamp", "label": "'.tr('Data/ora richiesta').'", "name": "data_richiesta", "required": 0, "value": "-now-", "required":1 ]}

View File

@ -97,10 +97,10 @@ switch (post('op')) {
}
$operations['crea_fattura'] = [
'text' => tr('Fattura documenti'),
'text' => '<span><i class="fa fa-file-code-o"></i> '.tr('Fattura documenti'),
'data' => [
'title' => tr('Vuoi davvero fatturare questi documenti?'),
'msg' => '{[ "type": "checkbox", "placeholder": "'.tr('Aggiungere alle fatture esistenti non ancora emesse?').'", "name": "accodare" ]}<br>{[ "type": "select", "label": "'.tr('Sezionale').'", "name": "id_segment", "required": 1, "values": "query=SELECT id, name AS descrizione FROM zz_segments WHERE id_module=\''.$id_fatture.'\' AND is_fiscale = 1 ORDER BY name", "value": "'.$id_segment.'" ]}',
'msg' => '{[ "type": "checkbox", "placeholder": "'.tr('Aggiungere alle fatture di vendita nello stato bozza?').'", "name": "accodare" ]}<br>{[ "type": "select", "label": "'.tr('Sezionale').'", "name": "id_segment", "required": 1, "values": "query=SELECT id, name AS descrizione FROM zz_segments WHERE id_module=\''.$id_fatture.'\' AND is_fiscale = 1 ORDER BY name", "value": "'.$id_segment.'" ]}',
'button' => tr('Procedi'),
'class' => 'btn btn-lg btn-warning',
'blank' => false,

View File

@ -5,9 +5,11 @@ include_once __DIR__.'/../../core.php';
echo'
<button type="button" class="btn btn-primary" onclick="if( confirm(\'Duplicare questo preventivo?\') ){ $(\'#copia-preventivo\').submit(); }"> <i class="fa fa-copy"></i> '.tr('Duplica preventivo').'</button>';
$stati_abilitati = $dbo->fetchOne('SELECT GROUP_CONCAT(`descrizione` SEPARATOR ", ") AS stati_abilitati FROM `co_statipreventivi` WHERE `is_revisionabile` = 1 ')['stati_abilitati'];
// Crea revisione
echo '
<button type="button" class="btn btn-warning" onclick="if(confirm(\'Vuoi creare un nuova revisione?\')){$(\'#crea-revisione\').submit();}" '.(!$record['is_revisionabile'] ? 'disabled' : '').'><i class="fa fa-edit"></i> '.tr('Crea nuova revisione...').'</button>';
<button type="button" class="btn btn-warning '.($record['is_revisionabile'] ? '' : 'disabled tip').'" onclick="if(confirm(\'Vuoi creare un nuova revisione?\')){$(\'#crea-revisione\').submit();}" '.($record['is_revisionabile'] ? '' : 'disabled').' title="'.($record['is_revisionabile'] ? '' : tr('Per creare una nuova revisione lo stato del preventivo deve essere tra: ').$stati_abilitati).'" ><i class="fa fa-edit"></i> '.tr('Crea nuova revisione...').'</button>';
$rs_documento = $dbo->fetchArray('SELECT * FROM co_righe_preventivi WHERE idpreventivo='.prepare($id_record));

View File

@ -18,10 +18,10 @@ echo '
<div class="panel-body">';
echo '
<button type="button" class="btn btn-primary col-md-5" data-toggle="modal" data-title="'.tr('Stampa registro').'..." data-href="'.ROOTDIR.'/modules/stampe_contabili/stampe_contabili.php?dir=entrata&nome_stampa=Registro IVA&id_record='.$id_record.'" ><i class="fa fa-print fa-2x"></i><br>'.tr('Stampa registro').'<br>'.tr('IVA vendite').'</button>';
<button type="button" class="btn btn-primary col-md-5" data-toggle="modal" data-title="'.tr('Stampa registro IVA vendite').'" data-href="'.ROOTDIR.'/modules/stampe_contabili/stampe_contabili.php?dir=entrata&nome_stampa=Registro IVA&id_record='.$id_record.'" ><i class="fa fa-print fa-2x"></i><br>'.tr('Stampa registro').'<br>'.tr('IVA vendite').'</button>';
echo '
<button type="button" class="btn btn-primary col-md-5 col-md-push-2" data-toggle="modal" data-title="'.tr('Stampa registro').'..." data-href="'.ROOTDIR.'/modules/stampe_contabili/stampe_contabili.php?dir=uscita&nome_stampa=Registro IVA&id_record='.$id_record.'" ><i class="fa fa-print fa-2x"></i><br>'.tr('Stampa registro').'<br>'.tr('IVA acquisti').'</button>';
<button type="button" class="btn btn-primary col-md-5 col-md-push-2" data-toggle="modal" data-title="'.tr('Stampa registro IVA acquisti').'" data-href="'.ROOTDIR.'/modules/stampe_contabili/stampe_contabili.php?dir=uscita&nome_stampa=Registro IVA&id_record='.$id_record.'" ><i class="fa fa-print fa-2x"></i><br>'.tr('Stampa registro').'<br>'.tr('IVA acquisti').'</button>';
echo '
</div>

View File

@ -85,8 +85,35 @@ var chart_options = {
}
}
},
annotation: {
annotations: [{
type: "line",
mode: "horizontal",
scaleID: "y-axis-0",
value: 0,
label: {
enabled: false,
}
}]
},
hover: {
mode: "nearest",
intersect: false
},
scales: {
xAxes: [{
display: true,
scaleLabel: {
display: true,
labelString: "'.tr("Periodo").'"
}
}],
yAxes: [{
display: true,
scaleLabel: {
display: true,
labelString: "'.tr("Andamento").'"
},
ticks: {
// Include a dollar sign in the ticks
callback: function(value, index, values) {

View File

@ -68,7 +68,7 @@ if (count($notes) > 0) {
</div>';
} else {
echo '
<div class="alert alert-info" ><i class="fa fa-info-circle" ></i> '.tr('Non sono presenti note interne.').'</div>';
<div class="alert alert-info" ><i class="fa fa-info-circle" ></i> <b>'.tr('Informazione:').'</b> '.tr('Non sono presenti note interne.').'</div>';
}
if ($structure->permission == 'rw') {