diff --git a/src/utils/functions/createPdf.ts b/src/utils/functions/createPdf.ts index 44c16dd..f3e0166 100644 --- a/src/utils/functions/createPdf.ts +++ b/src/utils/functions/createPdf.ts @@ -1,27 +1,25 @@ import jsPDF from 'jspdf' // @ts-ignore import jspdfBarcode from 'jspdf-barcode' +// import { ofetch } from 'ofetch' +// import dayjs from 'dayjs' +import { _optn, _applicationNo, _date, _name, _type, _location } from '../../stores/pdfinfo' -export default () => { +export default async () => { const PESO = import.meta.env.VITE_PESO - const OPTN = 'M25-000123' - const APPLICATION = '25-000123' - const DATE = 'October 8, 2025' - const NAME = 'BRUCE WAYNE' - const LOCATION = 'DAVAO CITY' - const TYPE = 'RESIDENTIAL - NEW INSTALLATION' + const API = import.meta.env.VITE_API + + const OPTN = _optn.get() + const APPLICATION = _applicationNo.get() + const DATE = _date.get() + const NAME = _name.get() + const LOCATION = _location.get() + const TYPE = _type.get() const CODE = '40201010-5-3' const AMOUNT = 100 - const ASSESSOR = 'ENGR. BATMAN' - const APPROVER = 'AR. KHASHAYAR L. TOGHYANI' - - const init = async () => { - // console.log('yeah') - console.log(PESO) - } - - init() + // const ASSESSOR = 'ENGR. BATMAN' + // const APPROVER = 'AR. KHASHAYAR L. TOGHYANI' const doc = new jsPDF({ orientation: 'l',