Fixed display of assessed date on pdf
This commit is contained in:
parent
084da93524
commit
65b5237169
3 changed files with 33 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import jsPDF from 'jspdf'
|
||||
// @ts-ignore
|
||||
import jspdfBarcode from 'jspdf-barcode'
|
||||
import { _optn, _applicationNo, _date, _name, _type, _location, _assessor, _feeList, _codeList, _amountList, _signatureAssessor, _signatureApprover, _assessorid, _approvedDate } from '../../stores/pdfinfo'
|
||||
import { _optn, _applicationNo, _date, _name, _type, _location, _assessor, _feeList, _codeList, _amountList, _signatureAssessor, _signatureApprover, _assessorid, _approvedDate, _assessedDate } from '../../stores/pdfinfo'
|
||||
import dayjs from 'dayjs'
|
||||
// @ts-ignore
|
||||
import QRCode from 'qrcode'
|
||||
|
|
@ -234,7 +234,7 @@ export default async () => {
|
|||
doc.setFontSize(4)
|
||||
doc.text('Digitally signed by :', 30, 118)
|
||||
doc.text(ASSESSOR, 30, 120)
|
||||
doc.text('Date: ' + dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'), 30, 122)
|
||||
doc.text('Date: ' + dayjs(_assessedDate.get()).format('YYYY-MM-DD HH:mm:ss'), 30, 122)
|
||||
|
||||
doc.addImage(_signatureApprover.get(), 'PNG', 156, 110, 41.4, 5.9, 'signatureApprover', 'NONE', 0)
|
||||
doc.text('Digitally signed by :', 156, 118)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue