Fix articoli in esaurimento

This commit is contained in:
Beppe 2022-01-03 15:36:18 +01:00
parent 75a6071407
commit 9b072f23eb
2 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,7 @@
include_once __DIR__.'/../../../core.php'; include_once __DIR__.'/../../../core.php';
$rs = $dbo->fetchArray('SELECT id, descrizione, qta, threshold_qta, codice, um AS unitamisura FROM mg_articoli WHERE qta < threshold_qta AND attivo = 1 ORDER BY qta ASC'); $rs = $dbo->fetchArray('SELECT id, descrizione, qta, threshold_qta, codice, um AS unitamisura FROM mg_articoli WHERE qta < threshold_qta AND attivo = 1 AND deleted_at IS NULL ORDER BY qta ASC');
if (!empty($rs)) { if (!empty($rs)) {
echo ' echo '

View File

@ -6,3 +6,6 @@ INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`
-- Rimossa visualizzazione stampe disabilitate -- Rimossa visualizzazione stampe disabilitate
UPDATE `zz_modules` SET `options` = 'SELECT |select| FROM `zz_prints` WHERE 1=1 AND enabled=1 HAVING 2=2' WHERE `zz_modules`.`name` = 'Stampe'; UPDATE `zz_modules` SET `options` = 'SELECT |select| FROM `zz_prints` WHERE 1=1 AND enabled=1 HAVING 2=2' WHERE `zz_modules`.`name` = 'Stampe';
-- Filtro che esclude gli articoli eliminati dal widget degli articoli in esaurimento
UPDATE `zz_widgets` SET `query` = 'SELECT COUNT(id) AS dato FROM mg_articoli WHERE qta < threshold_qta AND attivo=1 AND deleted_at IS NULL' WHERE `zz_widgets`.`name` = 'Articoli in esaurimento';