Aggiunto messaggio di conferma per le fatture

Aggiunto messaggio di conferma per le fatture nel passaggio manuale tra stato Emessa a Pagato.
Fix per le icone di debug.
This commit is contained in:
Thomas Zilio 2017-09-15 10:12:40 +02:00
parent 01a470281d
commit ba064b6473
2 changed files with 6 additions and 4 deletions

View File

@ -28,13 +28,15 @@ if (Auth::check()) {
<script> setInterval("session_keep_alive()", 5*60*1000); </script>'; <script> setInterval("session_keep_alive()", 5*60*1000); </script>';
} }
$custom_css = get_var('CSS Personalizzato');
if (!empty($debug)) { if (!empty($debug)) {
$custom_css .= 'div.phpdebugbar-widgets-sqlqueries span.phpdebugbar-widgets-copy-clipboard:before, div.phpdebugbar-widgets-sqlqueries span.phpdebugbar-widgets-database:before, div.phpdebugbar-widgets-sqlqueries span.phpdebugbar-widgets-duration:before, div.phpdebugbar-widgets-sqlqueries span.phpdebugbar-widgets-memory:before, div.phpdebugbar-widgets-sqlqueries span.phpdebugbar-widgets-row-count:before, div.phpdebugbar-widgets-sqlqueries span.phpdebugbar-widgets-stmt-id:before { echo '
<!-- Fix per le icone di debug -->
<style>div.phpdebugbar-widgets-sqlqueries span.phpdebugbar-widgets-copy-clipboard:before, div.phpdebugbar-widgets-sqlqueries span.phpdebugbar-widgets-database:before, div.phpdebugbar-widgets-sqlqueries span.phpdebugbar-widgets-duration:before, div.phpdebugbar-widgets-sqlqueries span.phpdebugbar-widgets-memory:before, div.phpdebugbar-widgets-sqlqueries span.phpdebugbar-widgets-row-count:before, div.phpdebugbar-widgets-sqlqueries span.phpdebugbar-widgets-stmt-id:before {
font-family: FontAwesome; font-family: FontAwesome;
}'; }</style>';
} }
$custom_css = get_var('CSS Personalizzato');
if (!empty($custom_css)) { if (!empty($custom_css)) {
echo ' echo '
<style>'.$custom_css.'</style>'; <style>'.$custom_css.'</style>';

View File

@ -51,7 +51,7 @@ if ($dir == 'uscita') {
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
{[ "type": "select", "label": "<?php echo tr('Stato'); ?>", "name": "idstatodocumento", "required": 1, "values": "query=SELECT * FROM co_statidocumento", "value": "$idstatodocumento$" ]} {[ "type": "select", "label": "<?php echo tr('Stato'); ?>", "name": "idstatodocumento", "required": 1, "values": "query=SELECT * FROM co_statidocumento", "value": "$idstatodocumento$", "extra": " onchange = \"if ($('#idstatodocumento option:selected').text()=='Pagato'){if( confirm('Sicuri di voler impostare manualmente la fattura come pagata senza aggiungerla in prima nota?') ){ return true; }else{ $('#idstatodocumento').selectSet(<?php echo $records[0]['idstatodocumento']; ?>); }}\" " ]}
</div> </div>
</div> </div>