Fix minori stampe contabili
This commit is contained in:
parent
7c7797a826
commit
d5cecabdae
|
@ -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);
|
||||
|
||||
|
|
|
@ -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(){
|
||||
|
|
Loading…
Reference in New Issue