| @@ -606,7 +606,7 @@ const handleAssignByLane = useCallback(async ( | |||||
| {t("A4 Printer")}: | {t("A4 Printer")}: | ||||
| </Typography> | </Typography> | ||||
| <Autocomplete | <Autocomplete | ||||
| options={printerCombo || []} | |||||
| options={(printerCombo || []).filter(printer => printer.type === 'A4')} | |||||
| getOptionLabel={(option) => | getOptionLabel={(option) => | ||||
| option.name || option.label || option.code || `Printer ${option.id}` | option.name || option.label || option.code || `Printer ${option.id}` | ||||
| } | } | ||||
| @@ -623,7 +623,7 @@ const handleAssignByLane = useCallback(async ( | |||||
| {t("Label Printer")}: | {t("Label Printer")}: | ||||
| </Typography> | </Typography> | ||||
| <Autocomplete | <Autocomplete | ||||
| options={printerCombo || []} | |||||
| options={(printerCombo || []).filter(printer => printer.type === 'Label')} | |||||
| getOptionLabel={(option) => | getOptionLabel={(option) => | ||||
| option.name || option.label || option.code || `Printer ${option.id}` | option.name || option.label || option.code || `Printer ${option.id}` | ||||
| } | } | ||||
| @@ -452,7 +452,7 @@ const JodetailSearch: React.FC<Props> = ({ pickOrders, printerCombo }) => { | |||||
| {t("Select Printer")}: | {t("Select Printer")}: | ||||
| </Typography> | </Typography> | ||||
| <Autocomplete | <Autocomplete | ||||
| options={printerCombo || []} | |||||
| options={(printerCombo || []).filter(printer => printer.type === 'A4')} | |||||
| getOptionLabel={(option) => | getOptionLabel={(option) => | ||||
| option.name || option.label || option.code || `Printer ${option.id}` | option.name || option.label || option.code || `Printer ${option.id}` | ||||
| } | } | ||||
| @@ -15,7 +15,8 @@ | |||||
| "Warning: Some delivery orders do not have matching trucks for the target date.": "警告:部分送貨訂單於目標日期沒有可匹配的車輛。", | "Warning: Some delivery orders do not have matching trucks for the target date.": "警告:部分送貨訂單於目標日期沒有可匹配的車輛。", | ||||
| "Truck Availability Warning": "車輛可用性警告", | "Truck Availability Warning": "車輛可用性警告", | ||||
| "Problem DO(s): ": "問題送貨訂單", | "Problem DO(s): ": "問題送貨訂單", | ||||
| "Fetching all matching records...": "正在獲取所有匹配的記錄...", | |||||
| "Loading...": "正在加載...", | |||||
| "Available Trucks": "可用車輛", | "Available Trucks": "可用車輛", | ||||
| "No trucks available": "沒有車輛可用", | "No trucks available": "沒有車輛可用", | ||||
| "Code": "門店訂單編號", | "Code": "門店訂單編號", | ||||
| @@ -13,6 +13,8 @@ | |||||
| "NotEscalated": "無上報", | "NotEscalated": "無上報", | ||||
| "Assigned To": "已分配", | "Assigned To": "已分配", | ||||
| "Skip": "跳過", | "Skip": "跳過", | ||||
| "Fetching all matching records...": "正在獲取所有匹配的記錄...", | |||||
| "Do you want to start?": "確定開始嗎?", | "Do you want to start?": "確定開始嗎?", | ||||
| "Start": "開始", | "Start": "開始", | ||||
| "Pick Order Code(s)": "提料單編號", | "Pick Order Code(s)": "提料單編號", | ||||