From be2fdb6a3b458b896d82e73d16034915fa4d9e43 Mon Sep 17 00:00:00 2001 From: "CANCERYS\\kw093" Date: Wed, 21 Jan 2026 21:45:17 +0800 Subject: [PATCH] update --- .../FinishedGoodSearch/GoodPickExecutionRecord.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/FinishedGoodSearch/GoodPickExecutionRecord.tsx b/src/components/FinishedGoodSearch/GoodPickExecutionRecord.tsx index 5c774db..be57310 100644 --- a/src/components/FinishedGoodSearch/GoodPickExecutionRecord.tsx +++ b/src/components/FinishedGoodSearch/GoodPickExecutionRecord.tsx @@ -32,7 +32,7 @@ import { useCallback, useEffect, useState, useRef, useMemo } from "react"; import { useTranslation } from "react-i18next"; import { useRouter } from "next/navigation"; import { - fetchALLPickOrderLineLotDetails, + //fetchALLPickOrderLineLotDetails, updateStockOutLineStatus, createStockOutLine, recordPickExecutionIssue, @@ -117,6 +117,7 @@ const GoodPickExecutionRecord: React.FC = ({ filterArgs, printerCombo, a4 const errors = formProps.formState.errors; const handleDN = useCallback(async (recordId: number) => { + console.log(" [Print DN] Button clicked for recordId:", recordId); if (!a4Printer) { Swal.fire({ position: "bottom-end", @@ -127,6 +128,13 @@ const GoodPickExecutionRecord: React.FC = ({ filterArgs, printerCombo, a4 }); return; } + console.log(" [Print DN] Selected A4 printer:", { + id: a4Printer.id, + name: a4Printer.name, + type: a4Printer.type, + ip: a4Printer.ip, + port: a4Printer.port + }); const askNumofCarton = await Swal.fire({ title: t("Enter the number of cartons: "), icon: "info", @@ -284,6 +292,7 @@ const GoodPickExecutionRecord: React.FC = ({ filterArgs, printerCombo, a4 }, [t, a4Printer, labelPrinter]); const handleLabel = useCallback(async (recordId: number) => { + console.log(" [Print Label] Button clicked for recordId:", recordId); const askNumofCarton = await Swal.fire({ title: t("Enter the number of cartons: "), icon: "info",