Fixed peso sign

This commit is contained in:
Patrick Alvin Alcala 2025-11-13 17:42:44 +08:00
parent e82a2c14f5
commit 56ab269230

View file

@ -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)