. */ include_once __DIR__.'/../../../core.php'; $rs = $dbo->fetchArray('SELECT `mg_articoli`.`id`, `mg_articoli_lang`.`title` 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(Models\Locale::getDefault()->id).') WHERE `qta` < `threshold_qta` AND `attivo` = 1 AND `deleted_at` IS NULL ORDER BY `qta` ASC'); if (!empty($rs)) { echo '
'.tr('Articolo').' | '.tr('Q.tà').' |
---|---|
'.Modules::link('Articoli', $r['id'], $r['descrizione']).'
'.$r['codice'].' |
'.Translator::numberToLocale($r['qta'], 'qta').' '.$r['unitamisura'].' |