Include trashed in other acceptance tasks

This commit is contained in:
snipe
2025-11-11 14:00:48 +00:00
parent 9454ff677b
commit 3aa046bfa7
+2 -2
View File
@@ -1166,7 +1166,7 @@ class ReportsController extends Controller
$query = CheckoutAcceptance::query()
->with([
'checkoutable' => function (MorphTo $query) {
$query->morphWith([
$query->withTrashed()->morphWith([
Asset::class => ['model.category', 'assignedTo', 'company', 'checkouts'],
Accessory::class => ['category', 'company', 'checkouts'],
LicenseSeat::class => ['user', 'license', 'checkouts'],
@@ -1273,7 +1273,7 @@ class ReportsController extends Controller
$acceptances = CheckoutAcceptance::pending()
->with([
'checkoutable' => function (MorphTo $acceptance) {
$acceptance->morphWith([
$acceptance->withTrashed()->morphWith([
Asset::class => ['model.category', 'assignedTo', 'company'],
Accessory::class => ['category','checkouts', 'company'],
LicenseSeat::class => ['user', 'license'],