Skip to content
Tim Schofield edited this page Sep 22, 2024 · 2 revisions

The Problem

Currently webERP uses the TCPDF library to produce PDF reports. This library is no longer maintained, and is not PHP 8 compatible. Currently as well the process of coding a report is cumbersome, especially when PDF and HTML versions are needed, as all the logic has to be duplicated https://github.com/dompdf/dompdf

The Solution

The suggestion is that we move to using the DomPDF library (https://github.com/dompdf/dompdf). This library has the benefit of being PHP 9 compliant. It works by taking the HTML for the report, and converting it into PDF. This means that we can produce the HTML once, and then either convert it to a PDF, or output it to the browser, depending on the user option. Also instead of saving the report to the local drive, the PDF report is sent to the screen, where the user can decide whether and where to save it, or to send it by email.

Reports to be changed

  • AgedDebtors.php
  • AgedSuppliers.php
  • BOMExtendedQty.php
  • BOMIndented.php
  • BOMIndentedReverse.php
  • BOMListing.php
  • CollectiveWorkOrderCost.php
  • ConfirmDispatch_Invoice.php
  • CounterReturns.php
  • CounterSales.php
  • Credit_Invoice.php
  • CustomerAccount.php
  • CustomerInquiry.php
  • CustomerReceipt.php
  • DailySalesInquiry.php
  • DebtorsAtPeriodEnd.php
  • DeliveryDetails.php
  • EmailCustTrans.php
  • FixedAssetRegister.php
  • FormDesigner.php
  • GeneratePickingList.php
  • GLAccountReport.php
  • GLBalanceSheet.php
  • GLCashFlowsIndirect.php
  • GLJournalInquiry.php
  • GLProfit_Loss.php
  • GLTagProfit_Loss.php
  • GLTrialBalance.php
  • GoodsReceived.php
  • MailInventoryValuation.php
  • MailSalesReport.php
  • MRPPlannedPurchaseOrders.php
  • MRPPlannedWorkOrders.php
  • MRPReport.php
  • MRPReschedules.php
  • MRPShortages.php
  • NoSalesItems.php
  • OutstandingGRNs.php
  • PcAssignCashTabToTab.php
  • PcAssignCashToTab.php
  • PcAuthorizeExpenses.php
  • PcClaimExpensesFromTab.php
  • PcReportExpense.php
  • PcReportTab.php
  • PcTabExpensesList.php
  • PDFAck.php
  • PDFBankingSummary.php
  • PDFChequeListing.php
  • PDFCOA.php
  • PDFCustomerList.php
  • PDFCustTransListing.php
  • PDFDeliveryDifferences.php
  • PDFDIFOT.php
  • PDFFGLabel.php
  • PDFGLJournalCN.php
  • PDFGLJournal.php
  • PDFGrn.php
  • PDFLowGP.php
  • PDFOrdersInvoiced.php
  • PDFOrderStatus.php
  • PDFPeriodStockTransListing.php
  • PDFPickingList.php
  • PDFPriceList.php
  • PDFPrintLabel.php
  • PDFProdSpec.php
  • PDFQALabel.php
  • PDFQuotation.php
  • PDFQuotationPortrait.php
  • PDFReceipt.php
  • PDFRemittanceAdvice.php
  • PDFSalesBySalesperson.php
  • PDFSellThroughSupportClaim.php
  • PDFShipLabel.php
  • PDFStockCheckComparison.php
  • PDFStockLocTransfer.php
  • PDFStockNegatives.php
  • PDFStockTransfer.php
  • PDFSuppTransListing.php
  • PDFTopItems.php
  • PDFWeeklyOrders.php
  • PDFWOPrint.php
  • PickingLists.php
  • PO_Header.php
  • PO_Items.php
  • PO_OrderDetails.php
  • PO_PDFPurchOrder.php
  • PO_SelectOSPurchOrder.php
  • PrintCheque.php
  • PrintCustOrder_generic.php
  • PrintCustOrder.php
  • PrintCustStatements.php
  • PrintCustTrans.php
  • PrintCustTransPortrait.php
  • PrintWOItemSlip.php
  • ProductSpecs.php
  • PurchaseByPrefSupplier.php
  • ReorderLevel.php
  • report_runner.php
  • ReprintGRN.php
  • SalesAnalRepts.php
  • SalesAnalysis_UserDefined.php
  • SalesInquiry.php
  • SelectCreditItems.php
  • SelectCustomer.php
  • SelectPickingLists.php
  • SelectQASamples.php
  • SelectSalesOrder.php
  • SelectWorkOrder.php
  • SpecialOrder.php
  • StockCheck.php
  • StockDispatch.php
  • StockLocTransfer.php
  • StockTransfers.php
  • SupplierBalsAtPeriodEnd.php
  • SupplierGRNAndInvoiceInquiry.php
  • SuppPaymentRun.php
  • SuppPriceList.php
  • SystemParameters.php
  • Tax.php
  • TestPlanResults.php
  • TopItems.php
  • Z_ImportStocks.php
Clone this wiki locally