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');
$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);

View File

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