We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2c89ed commit eed5034Copy full SHA for eed5034
1 file changed
templates/magazzino_inventario/body.php
@@ -25,8 +25,6 @@
25
include_once __DIR__.'/../../core.php';
26
27
$structure = Module::where('name', 'Articoli')->first();
28
-// Valori di ricerca
29
-$where['servizio'] = '0';
30
31
foreach (getSearchValues($structure->id) as $key => $value) {
32
$where[$key] = $value;
@@ -59,9 +57,11 @@
59
57
}
60
58
61
if (post('tipo') == 'nozero') {
62
- $query = str_replace('1=1 AND 1=1', '1=1 AND `qta_totale` > 0', $query);
+ $query = str_replace('1=1', '1=1 AND `qta_totale` > 0', $query);
63
64
+$query = str_replace('1=1', '1=1 AND servizio = 0', $query);
+
65
$data = Query::executeAndCount($query);
66
67
echo '
0 commit comments