1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Migliorie minori

This commit is contained in:
Luca
2018-12-27 23:07:19 +01:00
parent 9d08d785ce
commit dbc8f2f4f5
6 changed files with 18 additions and 10 deletions

View File

@ -37,7 +37,6 @@ a.disabled {
} }
#progress { #progress {
width: 400px;
margin: auto; margin: auto;
position: relative; position: relative;
display: none; display: none;

View File

@ -38,22 +38,27 @@ if ($dir == 'entrata') {
$campi_mancanti = []; $campi_mancanti = [];
if ($rs2[0]['piva'] == '') { if ($rs2[0]['piva'] == '') {
if ($rs2[0]['codice_fiscale'] == '') { array_push($campi_mancanti, 'Partita IVA');
array_push($campi_mancanti, 'codice fiscale');
}
} }
/*if ($rs2[0]['codice_fiscale'] == '') {
array_push($campi_mancanti, 'Codice fiscale');
}
*/
if ($rs2[0]['citta'] == '') { if ($rs2[0]['citta'] == '') {
array_push($campi_mancanti, 'citta'); array_push($campi_mancanti, 'Città');
} }
if ($rs2[0]['indirizzo'] == '') { if ($rs2[0]['indirizzo'] == '') {
array_push($campi_mancanti, 'indirizzo'); array_push($campi_mancanti, 'Indirizzo');
} }
if ($rs2[0]['cap'] == '') { if ($rs2[0]['cap'] == '') {
array_push($campi_mancanti, 'C.A.P.'); array_push($campi_mancanti, 'C.A.P.');
} }
if ($rs2[0]['nazione'] == '') {
array_push($campi_mancanti, 'Nazione');
}
if (sizeof($campi_mancanti) > 0) { if (sizeof($campi_mancanti) > 0) {
echo "<div class='alert alert-warning'><i class='fa fa-warning'></i> Prima di procedere alla stampa completa i seguenti campi dell'anagrafica:<br/><b>".implode(', ', $campi_mancanti).'</b><br/> echo "<div class='alert alert-warning'><i class='fa fa-warning'></i> Prima di procedere alla stampa completa i seguenti campi dell'anagrafica Cliente: <b>".implode(', ', $campi_mancanti).'</b><br/>
'.Modules::link('Anagrafiche', $record['idanagrafica'], tr('Vai alla scheda anagrafica'), null).'</div>'; '.Modules::link('Anagrafiche', $record['idanagrafica'], tr('Vai alla scheda anagrafica'), null).'</div>';
} }
} }

View File

@ -33,6 +33,7 @@ switch (post('op')) {
'from_address' => post('from_address'), 'from_address' => post('from_address'),
'encryption' => post('encryption'), 'encryption' => post('encryption'),
'pec' => post('pec'), 'pec' => post('pec'),
'ssl_no_verify' => post('ssl_no_verify'),
'predefined' => $predefined, 'predefined' => $predefined,
], ['id' => $id_record]); ], ['id' => $id_record]);

View File

@ -12,7 +12,7 @@ if (!empty($fattura_pa)) {
echo ' echo '
<div class="alert alert-warning"> <div class="alert alert-warning">
<i class="fa fa-warning"></i> <i class="fa fa-warning"></i>
<b>'.tr('Attenzione!').'</b> '.tr('Per generare la fattura elettronica è necessario che sia in stato "Emessa"').'. <b>'.tr('Attenzione').':</b> '.tr('Per generare la fattura elettronica è necessario che sia in stato "Emessa"').'.
</div>'; </div>';
$disabled = true; $disabled = true;

View File

@ -31,7 +31,7 @@ class ButtonManager implements ManagerInterface
$result = [ $result = [
'link' => \Prints::getHref($options['id'], $options['id_record'], $options['parameters']), 'link' => \Prints::getHref($options['id'], $options['id_record'], $options['parameters']),
'title' => tr('Stampa').' '.lcfirst($print['title']), 'title' => tr('Stampa').' '.((strtoupper($print['title']) == $print['title']) ? $print['title'] : lcfirst($print['title'])),
'icon' => $print['icon'], 'icon' => $print['icon'],
]; ];
} else { } else {
@ -39,7 +39,7 @@ class ButtonManager implements ManagerInterface
$result = [ $result = [
'link' => ROOTDIR.'/mail.php?id_module='.$options['id_module'].'&id_record='.$options['id_record'].'&id='.$options['id'], 'link' => ROOTDIR.'/mail.php?id_module='.$options['id_module'].'&id_record='.$options['id_record'].'&id='.$options['id'],
'title' => tr('Invia').' '.lcfirst($template['name']), 'title' => tr('Invia').' '.((strtoupper($template['name']) == $template['name']) ? $template['name'] : lcfirst($template['name'])),
'icon' => $template['icon'], 'icon' => $template['icon'],
'type' => 'modal', 'type' => 'modal',
]; ];

View File

@ -19,3 +19,6 @@ INSERT INTO `fe_stati_documento`( `codice`, `descrizione`, `icon` ) VALUES
( 'MC', 'Mancata consegna', 'fa fa-exclamation-circle text-danger' ), ( 'MC', 'Mancata consegna', 'fa fa-exclamation-circle text-danger' ),
( 'DT', 'Decorrenza termini', 'fa fa-calendar-times-o text-danger' ), ( 'DT', 'Decorrenza termini', 'fa fa-calendar-times-o text-danger' ),
( 'NS', 'Scartata', 'fa fa-times text-danger' ); ( 'NS', 'Scartata', 'fa fa-times text-danger' );
-- ssl_no_verify
ALTER TABLE `zz_smtps` ADD `ssl_no_verify` BOOLEAN NOT NULL DEFAULT FALSE AFTER `encryption`;