Fix minori stampe contabili

This commit is contained in:
MatteoPistorello 2023-07-05 11:43:44 +02:00
parent 7c7797a826
commit d5cecabdae
2 changed files with 3 additions and 5 deletions

View File

@ -26,7 +26,7 @@ switch ($resource) {
$id_print = get('id_print'); $id_print = get('id_print');
$dir = get('dir'); $dir = get('dir');
$stampa_definitiva = $database->fetchOne('SELECT id FROM co_stampecontabili WHERE id_print='.prepare($id_print).' AND dir='.prepare($dir).' AND date_start='.prepare($date_start).' AND date_end='.prepare($date_end))['id']; $stampa_definitiva = $dbo->fetchOne('SELECT id FROM co_stampecontabili WHERE id_print='.prepare($id_print).' AND dir='.prepare($dir).' AND date_start='.prepare($date_start).' AND date_end='.prepare($date_end))['id'];
echo json_encode($stampa_definitiva ?: 0); echo json_encode($stampa_definitiva ?: 0);

View File

@ -172,10 +172,8 @@ if ($nome_stampa != 'Liquidazione IVA') {
echo ' echo '
<script> <script>
$(document).ready(function () { $("#modals > div").on("shown.bs.modal", function () {
setTimeout(function () { eseguiControlli();
eseguiControlli();
}, 1000);
}); });
$("#date_start").on("blur", function(){ $("#date_start").on("blur", function(){