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:
GSB Construction Engineering
2026-08-25 17:08:03 +08:00
parent 778f27e0a5
commit d4e2b468ff
114 changed files with 3923 additions and 10031 deletions

View File

@@ -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'])
: [],