diff --git a/presupuestos.html b/presupuestos.html index cf20f77..ce4f5fa 100644 --- a/presupuestos.html +++ b/presupuestos.html @@ -145,6 +145,19 @@ + +
+ + +
+ @@ -763,6 +776,7 @@ const guild_id = document.getElementById('apptGuild').value; const date = document.getElementById('apptDate').value; const time = document.getElementById('apptTime').value; + const duration = document.getElementById('apptDuration').value; // <-- NUEVO if (!guild_id || !date || !time) return showToast("⚠️ Gremio, Fecha y Hora son obligatorios."); @@ -770,7 +784,14 @@ btn.disabled = true; btn.innerHTML = ' Procesando...'; - const payload = { guild_id: guild_id, date: date, time: time, use_automation: false, assigned_to: 'self' }; + const payload = { + guild_id: guild_id, + date: date, + time: time, + duration_minutes: duration, // <-- NUEVO + use_automation: false, + assigned_to: 'self' + }; try { const res = await fetch(`${API_URL}/budgets/${id}/convert`, {