refactor(FE-356): Include period in export filenames

This commit is contained in:
rstubryan
2025-12-18 13:10:21 +07:00
parent fa7824224c
commit ceae338c73
2 changed files with 5 additions and 2 deletions
@@ -401,7 +401,7 @@ const HppPerKandangTab = () => {
const workbook = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(workbook, worksheet, 'HPP Per Kandang');
const filename = `laporan-hpp-harian-kandang-${tableFilterState.period}-${formatDate(new Date(), 'YYYY-MM-DD-HHmm')}.xlsx`;
const filename = `laporan-hpp-harian-kandang-periode-${tableFilterState.period}.xlsx`;
XLSX.writeFile(workbook, filename);
toast.success('Excel berhasil dibuat dan diunduh.');