From 5babd1ad5023604a21826cf7d3ac03bd710886f2 Mon Sep 17 00:00:00 2001 From: "vluk@2fi-solutions.com.hk" Date: Sun, 10 Aug 2025 14:43:23 +0800 Subject: [PATCH] tested the printing with another file --- .../modules/purchaseOrder/web/PurchaseOrderController.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/ffii/fpsms/modules/purchaseOrder/web/PurchaseOrderController.kt b/src/main/java/com/ffii/fpsms/modules/purchaseOrder/web/PurchaseOrderController.kt index 2fa8153..52a7ec0 100644 --- a/src/main/java/com/ffii/fpsms/modules/purchaseOrder/web/PurchaseOrderController.kt +++ b/src/main/java/com/ffii/fpsms/modules/purchaseOrder/web/PurchaseOrderController.kt @@ -72,10 +72,11 @@ class PurchaseOrderController( @GetMapping("/detail/{id}") // purchaseOrderId fun getDetailedPo(@PathVariable id: Long): Map { - /* tested the sample printing function by a pdf file + /* + // tested the sample printing function by a pdf file // just get a pdf file for demo , it can be any files? didn't try pdf with pages or multi pdf files val request = ExportQrCodeRequest( - stockInLineIds = listOf(1L) + stockInLineIds = listOf(2L) ) val pdf = stockInLineService.exportStockInLineQrcode(request) val jasperPrint = pdf["report"] as JasperPrint @@ -95,7 +96,8 @@ class PurchaseOrderController( // 4. Ensure the temporary file is deleted after the print job is sent. tempPdfFile.delete() } - */ + + */ return purchaseOrderService.getDetailedPo(id) }