Actualizar frontend/src/pages/Retiros.jsx

This commit is contained in:
2026-10-05 13:06:28 -05:00
parent 2e5e3f3b9b
commit 11ebbd6986

View File

@@ -261,7 +261,7 @@ export default function Retiros() {
ws["!cols"] = COLS_EXP.map((c) => ({ wch: Math.max(10, Math.round(c.w/7)) })); ws["!cols"] = COLS_EXP.map((c) => ({ wch: Math.max(10, Math.round(c.w/7)) }));
const wb = XLSX.utils.book_new(); const wb = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(wb, ws, "Retiros"); XLSX.utils.book_append_sheet(wb, ws, "Retiros");
const suf = `${MESES[mes-1]}_${ano}` + (sede!=="TODOS"?`_${sede}`:"") + (sectorista!=="TODOS"?`_${sectorista}`:""); const suf = `${MESES[mes-1]}_${ano}` + (sedesSel.length?`_${sedesSel.join("-")}`:"") + (sectoristasSel.length?`_${sectoristasSel.join("-")}`:"");
XLSX.writeFile(wb, `retiros_${suf}.xlsx`); XLSX.writeFile(wb, `retiros_${suf}.xlsx`);
} finally { } finally {
setExportando(false); setExportando(false);