diff --git a/app/index.html b/app/index.html index 417a8de..9baf860 100644 --- a/app/index.html +++ b/app/index.html @@ -1795,7 +1795,7 @@ function buildPDF() { const safeName = s => (s || "").replace(/[^a-zA-Z0-9_\-]/g, "_").replace(/_+/g, "_").replace(/^_|_$/g, ""); const fnIssuer = safeName(sName); - const fnDate = (iDate || "").replace(/-/g, ""); + const fnDate = iDate || ""; const fnNo = safeName(iNo); const parts = [fnIssuer, fnDate, fnNo].filter(Boolean); doc.save(parts.length ? parts.join("_") + ".pdf" : "invoice.pdf");