Skip to content

Commit eed5034

Browse files
committed
fix: stampa inventario
1 parent d2c89ed commit eed5034

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

templates/magazzino_inventario/body.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
include_once __DIR__.'/../../core.php';
2626

2727
$structure = Module::where('name', 'Articoli')->first();
28-
// Valori di ricerca
29-
$where['servizio'] = '0';
3028

3129
foreach (getSearchValues($structure->id) as $key => $value) {
3230
$where[$key] = $value;
@@ -59,9 +57,11 @@
5957
}
6058

6159
if (post('tipo') == 'nozero') {
62-
$query = str_replace('1=1 AND 1=1', '1=1 AND `qta_totale` > 0', $query);
60+
$query = str_replace('1=1', '1=1 AND `qta_totale` > 0', $query);
6361
}
6462

63+
$query = str_replace('1=1', '1=1 AND servizio = 0', $query);
64+
6565
$data = Query::executeAndCount($query);
6666

6767
echo '

0 commit comments

Comments
 (0)