diff --git a/app/Classes/General/Eloquent/Filters/PackingListOrderedByInvoiceDate.php b/app/Classes/General/Eloquent/Filters/PackingListOrderedByInvoiceDate.php index 4f7c5654..5ebdb040 100644 --- a/app/Classes/General/Eloquent/Filters/PackingListOrderedByInvoiceDate.php +++ b/app/Classes/General/Eloquent/Filters/PackingListOrderedByInvoiceDate.php @@ -21,7 +21,7 @@ class PackingListOrderedByInvoiceDate implements Filter { return $builder->join('transactions', function($join){ $join->on('transactions.owner_id', '=', 'packing_lists.id'); - $join->on('transactions.owner_type', '=', PackingList::class); + $join->on('transactions.owner_type', '=', 'App\\Models\\PackingList'); $join->on('transactions.status', '=', ApprovalStatus::APPROVED); })->orderBy('transactions.updated_at')->get(); }