. */ include_once __DIR__.'/../../../core.php'; use Models\PrintTemplate; // Trovo id_print della stampa if(!empty(setting('Magazzino cespiti'))){ $id_print = $dbo->fetchOne('SELECT `zz_prints`.`id` FROM `zz_prints` LEFT JOIN `zz_prints_lang` ON (`zz_prints`.`id` = `zz_prints_lang`.`id_record` AND `zz_prints_lang`.`id_lang` = '.prepare(\App::getLang()).') INNER JOIN `zz_modules` ON `zz_prints`.`id_module`=`zz_modules`.`id` LEFT JOIN `zz_modules_lang` ON (`zz_modules`.`id` = `zz_modules_lang`.`id_record` AND `zz_modules_lang`.`id_lang` = '.prepare(\App::getLang()).') WHERE `zz_modules_lang`.`name`="Articoli" AND `zz_prints_lang`.`name`="Inventario cespiti"')['id']; echo '
{[ "type": "select", "label": "'.tr('Articoli da stampare').'", "name": "tipo", "required": "1", "values": "list=\"full\": \"'.tr('Tutti').'\", \"nozero\": \"'.tr('Solo esistenti').'\"", "value": "full" ]}
'; }else{ echo '
'.tr('Seleziona il magazzino cespiti dalle impostazioni per visualizzare la stampa.').'
'; }