| @@ -32,7 +32,7 @@ import { useCallback, useEffect, useState, useRef, useMemo } from "react"; | |||||
| import { useTranslation } from "react-i18next"; | import { useTranslation } from "react-i18next"; | ||||
| import { useRouter } from "next/navigation"; | import { useRouter } from "next/navigation"; | ||||
| import { | import { | ||||
| fetchALLPickOrderLineLotDetails, | |||||
| //fetchALLPickOrderLineLotDetails, | |||||
| updateStockOutLineStatus, | updateStockOutLineStatus, | ||||
| createStockOutLine, | createStockOutLine, | ||||
| recordPickExecutionIssue, | recordPickExecutionIssue, | ||||
| @@ -117,6 +117,7 @@ const GoodPickExecutionRecord: React.FC<Props> = ({ filterArgs, printerCombo, a4 | |||||
| const errors = formProps.formState.errors; | const errors = formProps.formState.errors; | ||||
| const handleDN = useCallback(async (recordId: number) => { | const handleDN = useCallback(async (recordId: number) => { | ||||
| console.log(" [Print DN] Button clicked for recordId:", recordId); | |||||
| if (!a4Printer) { | if (!a4Printer) { | ||||
| Swal.fire({ | Swal.fire({ | ||||
| position: "bottom-end", | position: "bottom-end", | ||||
| @@ -127,6 +128,13 @@ const GoodPickExecutionRecord: React.FC<Props> = ({ filterArgs, printerCombo, a4 | |||||
| }); | }); | ||||
| return; | 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({ | const askNumofCarton = await Swal.fire({ | ||||
| title: t("Enter the number of cartons: "), | title: t("Enter the number of cartons: "), | ||||
| icon: "info", | icon: "info", | ||||
| @@ -284,6 +292,7 @@ const GoodPickExecutionRecord: React.FC<Props> = ({ filterArgs, printerCombo, a4 | |||||
| }, [t, a4Printer, labelPrinter]); | }, [t, a4Printer, labelPrinter]); | ||||
| const handleLabel = useCallback(async (recordId: number) => { | const handleLabel = useCallback(async (recordId: number) => { | ||||
| console.log(" [Print Label] Button clicked for recordId:", recordId); | |||||
| const askNumofCarton = await Swal.fire({ | const askNumofCarton = await Swal.fire({ | ||||
| title: t("Enter the number of cartons: "), | title: t("Enter the number of cartons: "), | ||||
| icon: "info", | icon: "info", | ||||