Admin LOA MTM

Accesso riservato al team MTM

`); printWindow.document.close(); } catch(e) { alert('Errore nella generazione della LOA: ' + e.message); } } async function deleteLOA(num) { if (!confirm('Eliminare la LOA ' + num + '? Questa azione non può essere annullata.')) return; try { const res = await fetch(API_URL, {method:'POST', body: JSON.stringify({pwd: PWD, action:'delete', num: num})}); const text = await res.text(); const data = JSON.parse(text); if (data.success) loadList(); } catch(e) { alert('Errore durante l\'eliminazione.'); } }