diff --git a/app/Classes/General/Eloquent/Filters/OwneId.php b/app/Classes/General/Eloquent/Filters/OwneId.php
new file mode 100644
index 00000000..eac7e32d
--- /dev/null
+++ b/app/Classes/General/Eloquent/Filters/OwneId.php
@@ -0,0 +1,20 @@
+where('owner_id', $value);
+ }
+
+}
\ No newline at end of file
diff --git a/app/Classes/Modules/PackingLists/ControllersLogic/AssignPackingListOrderLogic.php b/app/Classes/Modules/PackingLists/ControllersLogic/AssignPackingListOrderLogic.php
index 15b852f6..64683721 100644
--- a/app/Classes/Modules/PackingLists/ControllersLogic/AssignPackingListOrderLogic.php
+++ b/app/Classes/Modules/PackingLists/ControllersLogic/AssignPackingListOrderLogic.php
@@ -106,7 +106,7 @@ class AssignPackingListOrderLogic extends AbstractControllerLogic
'status' => ApprovalStatus::REJECTED
]);
- $order = $this->fetchesOrder->execute(['id' => $request->input('order_id')]);
+ $order = $this->fetchesOrder->execute(['reference' => $request->route('reference')]);
$warehouse_packing_list = $this->updatesPackingListOwner->execute($warehouse_packing_list, $order);
diff --git a/app/Classes/Modules/PackingLists/ControllersLogic/ListPackingListsLogic.php b/app/Classes/Modules/PackingLists/ControllersLogic/ListPackingListsLogic.php
index 7d4a9531..b9e3142d 100644
--- a/app/Classes/Modules/PackingLists/ControllersLogic/ListPackingListsLogic.php
+++ b/app/Classes/Modules/PackingLists/ControllersLogic/ListPackingListsLogic.php
@@ -50,23 +50,11 @@ class ListPackingListsLogic extends AbstractControllerLogic
*/
public function logic(Request $request) : JsonResponse
{
- try {
+ $this->canListPackingLists->passes();
- $this->canListPackingLists->passes();
-
- $query = $this->listsPackingLists->execute($this->listsPackingLists->deserializeFilters($request->input('filters')));
-
- if ($request->input('null_order')) {
- return $this->collectionResponse(PackingListNullOrderResource::collection($query));
- }
- else {
- return $this->collectionResponse(PackingListResource::collection($query));
- }
-
- } catch (\Exception $exception){
- throw new ErrorException($exception->getMessage(), $exception->getCode());
- }
+ $query = $this->listsPackingLists->execute($this->listsPackingLists->deserializeFilters($request->input('filters')));
+ return $this->collectionResponse(PackingListResource::collection($query));
}
}
diff --git a/resources/assets/vue/components/orders/elements/UnclaimedPackinglistComponent.vue b/resources/assets/vue/components/orders/elements/UnclaimedPackinglistComponent.vue
new file mode 100644
index 00000000..f6dd6d47
--- /dev/null
+++ b/resources/assets/vue/components/orders/elements/UnclaimedPackinglistComponent.vue
@@ -0,0 +1,62 @@
+
+ Reference {{data.reference ? data.reference : 'n/a'}} Arrival Date {{data.transport ? data.transport.drop_date : 'n/a'}} Plese enter your order number.