[FE][Certs] Add the cert ID to the generated filename

This commit is contained in:
Araozu 2023-10-25 16:50:22 -05:00
parent 0d58e930ed
commit 21c1184e2a

View File

@ -309,7 +309,7 @@ function generateCert(person: Person, register: Register) {
const certCode = register.register_is_preview ? "0000" : register.register_code.toString().padStart(4, "0"); 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, matpel: null,
personFullName, personFullName,
personDni: person.person_dni.toString(), personDni: person.person_dni.toString(),