<li><adata-href="'.$rootdir.'/modules/fatture/crea_documento.php?id_module='.$id_module.'&id_record='.$id_record.'&iddocumento='.$id_record.'"data-title="Aggiungi nota di credito"data-target="#bs-popup">
$msg='{[ "type": "select", "label": "'.tr('Sezionale').'", "name": "id_segment", "required": 1, "values": "query=SELECT id, name AS descrizione FROM zz_segments WHERE id_module=\''.$id_module.'\' AND is_fiscale = 1 ORDER BY name" ]}';
echo'
<buttontype="button"class="btn btn-warning ask"data-msg="'.tr('Vuoi trasformare questa fattura pro-forma in una di tipo fiscale?').'<br>'.prepareToField(\HTMLBuilder\HTMLBuilder::replace($msg)).'"data-op="transform"data-button="'.tr('Trasforma').'"data-class="btn btn-lg btn-warning"data-backto="record-edit">