From 0d84cc82728efc5ef47243441cf2c357dcd1c914 Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Mon, 16 Mar 2026 11:03:00 -0400 Subject: [PATCH] fix(csv): fix the name of the csv file to match : period year, period num, company, type of rows, period start and period end dates --- src/modules/timesheet-approval/components/overview-report.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/timesheet-approval/components/overview-report.vue b/src/modules/timesheet-approval/components/overview-report.vue index ee2cf83..6bed558 100644 --- a/src/modules/timesheet-approval/components/overview-report.vue +++ b/src/modules/timesheet-approval/components/overview-report.vue @@ -43,7 +43,7 @@ const onClickedDownload = async () => { const types = Object.entries(report_filter_options.value) .filter(([key, value]) => value && ['shifts', 'expenses', 'holiday', 'vacation'].includes(key)).map(([key]) => key).join('-'); - const file_name = `${companies}_${types}_${timesheet_store.pay_period?.pay_period_no}-${timesheet_store.pay_period?.pay_year}_${timesheet_store.pay_period?.period_start}-${timesheet_store.pay_period?.period_end}.csv`; + const file_name = `${timesheet_store.pay_period?.pay_year}-${timesheet_store.pay_period?.pay_period_no}_${companies}_${types}_${timesheet_store.pay_period?.period_start}-${timesheet_store.pay_period?.period_end}.csv`; const blob = new Blob([data], { type: 'text/csv;charset=utf-8;' }); const url = window.URL.createObjectURL(blob);