1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-20 04:06:34 +01:00

Update init.php

This commit is contained in:
Luca 2024-02-15 18:33:39 +01:00
parent 7385be6218
commit b2b39cbff4

View File

@ -51,7 +51,7 @@ $query = "
INNER JOIN `an_sedi` ON `mg_movimenti`.`idsede`=`an_sedi`.`id` INNER JOIN `an_sedi` ON `mg_movimenti`.`idsede`=`an_sedi`.`id`
WHERE WHERE
(`mg_movimenti`.`idsede` > 0) AND (`mg_movimenti`.`idintervento` IS NULL) AND (`mg_movimenti`.`idsede` > 0) AND (`mg_movimenti`.`idintervento` IS NULL) AND
((`mg_movimenti`.`data` BETWEEN '.prepare($startTM).' AND '.prepare($endTM).") AND (`zz_groups`.`nome` IN ('Titolari', 'Amministratori')))"; ((`mg_movimenti`.`data` BETWEEN '.prepare($startTM).' AND '.prepare($endTM).") AND (`zz_groups`.`nome` IN ('Amministratori')))";
$query .= ' AND (`an_sedi`.`targa` LIKE '.prepare('%'.$search_targa.'%').') AND (`an_sedi`.`nome` LIKE '.prepare('%'.$search_nome.'%').') '; $query .= ' AND (`an_sedi`.`targa` LIKE '.prepare('%'.$search_targa.'%').') AND (`an_sedi`.`nome` LIKE '.prepare('%'.$search_nome.'%').') ';
$query .= ' ORDER BY `an_sedi`.`targa`, `mg_articoli`.`descrizione`'; $query .= ' ORDER BY `an_sedi`.`targa`, `mg_articoli`.`descrizione`';