feat: complete GSB construction ERP implementation with dual-mode MR, capitalization cap engine, single PM rule, and system sign-off documentation
This commit is contained in:
@@ -76,8 +76,8 @@ class HandleInertiaRequests extends Middleware
|
||||
|
||||
if ($user->hasRole('Project Manager') && !$isAdmin) {
|
||||
$assignedApprovalsQuery->where(function ($q) {
|
||||
$q->whereNull('chain_type')
|
||||
->orWhere('chain_type', '!=', 'project_estimation');
|
||||
$q->whereNull('type')
|
||||
->orWhere('type', '!=', 'project_estimation');
|
||||
})->where('approvable_type', '!=', Project::class);
|
||||
}
|
||||
|
||||
@@ -91,7 +91,6 @@ class HandleInertiaRequests extends Middleware
|
||||
})() : null,
|
||||
'projectOptions' => fn () => $request->user()
|
||||
? Project::where('current_wizard_step', '>=', 7)
|
||||
->whereHas('bidPackages')
|
||||
->with('parentProject:id,ulid,name,code')
|
||||
->get(['id', 'ulid', 'name', 'code', 'project_type', 'parent_project_id', 'status'])
|
||||
: [],
|
||||
|
||||
Reference in New Issue
Block a user