diff --git a/frontend/src/pages/Retiros.jsx b/frontend/src/pages/Retiros.jsx index 4c11db0..8be73ed 100644 --- a/frontend/src/pages/Retiros.jsx +++ b/frontend/src/pages/Retiros.jsx @@ -261,7 +261,7 @@ export default function Retiros() { ws["!cols"] = COLS_EXP.map((c) => ({ wch: Math.max(10, Math.round(c.w/7)) })); const wb = XLSX.utils.book_new(); 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`); } finally { setExportando(false);