Fixed peso sign
This commit is contained in:
parent
e82a2c14f5
commit
56ab269230
1 changed files with 5 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ export default async () => {
|
||||||
const doc = new jsPDF({
|
const doc = new jsPDF({
|
||||||
orientation: 'p',
|
orientation: 'p',
|
||||||
unit: 'mm',
|
unit: 'mm',
|
||||||
format: [215.9, 279.4],
|
format: 'letter',
|
||||||
})
|
})
|
||||||
|
|
||||||
const arial =
|
const arial =
|
||||||
|
|
@ -215,10 +215,13 @@ export default async () => {
|
||||||
|
|
||||||
doc.line(156, newYPosition, 170, newYPosition)
|
doc.line(156, newYPosition, 170, newYPosition)
|
||||||
|
|
||||||
|
doc.setFont('arial', 'normal')
|
||||||
|
doc.text(`${PESO}`, 156, newYPosition + 4)
|
||||||
|
|
||||||
doc.setFont('arial-bold', 'bold')
|
doc.setFont('arial-bold', 'bold')
|
||||||
doc.text('Total :', 146, newYPosition + 4)
|
doc.text('Total :', 146, newYPosition + 4)
|
||||||
const totalAmount = AMOUNTS.reduce((sum, amount) => sum + parseFloat(amount), 0)
|
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('Assessed By :', 16, newYPosition + 12)
|
||||||
doc.text('Approved By :', 142, newYPosition + 12)
|
doc.text('Approved By :', 142, newYPosition + 12)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue