From f725933f7ede67e2499973e2652dda2909a9c181 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Tue, 27 May 2025 19:37:44 +0800 Subject: [PATCH] Quick fix problem reported by Yien - IZYIM unable to claim unclaimed packing list, after key in the correct order number and click confirm, there is no response --- .../ControllersLogic/AssignPackingListOrderLogic.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/Classes/Modules/PackingLists/ControllersLogic/AssignPackingListOrderLogic.php b/app/Classes/Modules/PackingLists/ControllersLogic/AssignPackingListOrderLogic.php index cba73aa8..058d5901 100644 --- a/app/Classes/Modules/PackingLists/ControllersLogic/AssignPackingListOrderLogic.php +++ b/app/Classes/Modules/PackingLists/ControllersLogic/AssignPackingListOrderLogic.php @@ -107,8 +107,17 @@ class AssignPackingListOrderLogic extends AbstractControllerLogic */ public function logic(Request $request) : JsonResponse { + // $warehouse_packing_list = $this->fetchesPackingList->execute([ + // 'id' => $request->route('id'), + // 'type' => PackingListType::WAREHOUSE_RECEIVE_LIST + // ]); + + $packing_list = $this->fetchesPackingList->execute([ + 'id' => $request->route('id'), + ]); + $warehouse_packing_list = $this->fetchesPackingList->execute([ - 'id' => $request->route('id'), + 'reference' => $packing_list->reference, 'type' => PackingListType::WAREHOUSE_RECEIVE_LIST ]);