From 56ab2692300172b9b86af9d923e57a575c2a1512 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Thu, 13 Nov 2025 17:42:44 +0800 Subject: [PATCH] Fixed peso sign --- src/utils/functions/createPdfElectrical.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/utils/functions/createPdfElectrical.ts b/src/utils/functions/createPdfElectrical.ts index bbcc978..e511453 100644 --- a/src/utils/functions/createPdfElectrical.ts +++ b/src/utils/functions/createPdfElectrical.ts @@ -27,7 +27,7 @@ export default async () => { const doc = new jsPDF({ orientation: 'p', unit: 'mm', - format: [215.9, 279.4], + format: 'letter', }) const arial = @@ -215,10 +215,13 @@ export default async () => { doc.line(156, newYPosition, 170, newYPosition) + doc.setFont('arial', 'normal') + doc.text(`${PESO}`, 156, newYPosition + 4) + doc.setFont('arial-bold', 'bold') doc.text('Total :', 146, newYPosition + 4) const totalAmount = AMOUNTS.reduce((sum, amount) => sum + parseFloat(amount), 0) - doc.text(`${PESO} ${totalAmount.toLocaleString('en-US', { minimumFractionDigits: 2 })}`, 156, newYPosition + 4) + doc.text(`${totalAmount.toLocaleString('en-US', { minimumFractionDigits: 2 })}`, 159, newYPosition + 4) doc.text('Assessed By :', 16, newYPosition + 12) doc.text('Approved By :', 142, newYPosition + 12)