. */ include_once __DIR__.'/../../../core.php'; $rs = $dbo->fetchArray('SELECT `mg_articoli`.`id`, `mg_articoli_lang`.`name` as descrizione, `qta`, `threshold_qta`, `codice`, `um` AS unitamisura FROM `mg_articoli` LEFT JOIN `mg_articoli_lang` ON (`mg_articoli`.`id` = `mg_articoli_lang`.`id_record` AND `mg_articoli_lang`.`id_lang` = '.prepare(setting('Lingua')).') WHERE `qta` < `threshold_qta` AND `attivo` = 1 AND `deleted_at` IS NULL ORDER BY `qta` ASC'); if (!empty($rs)) { echo ' '; foreach ($rs as $r) { echo ' '; } echo '
'.tr('Articolo').' '.tr('Q.tà').'
'.Modules::link('Articoli', $r['id'], $r['descrizione']).'
'.$r['codice'].'
'.Translator::numberToLocale($r['qta'], 'qta').' '.$r['unitamisura'].'
'; } else { echo '
'.tr('Non ci sono articoli in esaurimento.')."
\n"; }