From 21c1184e2a63fe840c16392de7324f09bd0c838e Mon Sep 17 00:00:00 2001 From: Araozu Date: Wed, 25 Oct 2023 16:50:22 -0500 Subject: [PATCH] [FE][Certs] Add the cert ID to the generated filename --- frontend/src/certs/Registers/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/certs/Registers/index.tsx b/frontend/src/certs/Registers/index.tsx index 45690e2..242c830 100644 --- a/frontend/src/certs/Registers/index.tsx +++ b/frontend/src/certs/Registers/index.tsx @@ -309,7 +309,7 @@ function generateCert(person: Person, register: Register) { const certCode = register.register_is_preview ? "0000" : register.register_code.toString().padStart(4, "0"); - generator(`${courseN} - ${personFullName}.docx`, { + generator(`${courseN} - ${personFullName} [${register.register_id.toString(16).toUpperCase()}].docx`, { matpel: null, personFullName, personDni: person.person_dni.toString(),