Add industry packages that provision workflow stages on onboarding.
Deploy Ladill Queue / deploy (push) Successful in 1m39s
Deploy Ladill Queue / deploy (push) Successful in 1m39s
Queue Core stays generic; selecting Healthcare, Banking, Restaurant, and other industries installs departments, stages (queues), service points, workflows, terminology, and announcement profiles without code changes per vertical. Care-linked orgs skip stage materialization so Care remains the clinical provisioner. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -33,21 +33,32 @@ class DisplayVoiceTest extends TestCase
|
||||
$resolver = app(OrganizationResolver::class);
|
||||
$org = $resolver->completeOnboarding($user, [
|
||||
'organization_name' => 'Test Org',
|
||||
'industry' => 'retail',
|
||||
'industry' => 'custom',
|
||||
'appointment_mode' => 'hybrid',
|
||||
'branch_name' => 'Main',
|
||||
'timezone' => 'UTC',
|
||||
]);
|
||||
$branch = Branch::first();
|
||||
$queue = ServiceQueue::create([
|
||||
'owner_ref' => $user->public_id,
|
||||
'organization_id' => $org->id,
|
||||
'branch_id' => $branch->id,
|
||||
'name' => 'Reception',
|
||||
'prefix' => 'A',
|
||||
'strategy' => 'fifo',
|
||||
'is_active' => true,
|
||||
]);
|
||||
$queue = ServiceQueue::query()
|
||||
->where('organization_id', $org->id)
|
||||
->where('branch_id', $branch->id)
|
||||
->orderBy('id')
|
||||
->first();
|
||||
|
||||
if (! $queue) {
|
||||
$queue = ServiceQueue::create([
|
||||
'owner_ref' => $user->public_id,
|
||||
'organization_id' => $org->id,
|
||||
'branch_id' => $branch->id,
|
||||
'name' => 'Reception',
|
||||
'prefix' => 'A',
|
||||
'strategy' => 'fifo',
|
||||
'is_active' => true,
|
||||
]);
|
||||
} else {
|
||||
$queue->update(['name' => 'Reception', 'prefix' => 'A']);
|
||||
$queue = $queue->fresh();
|
||||
}
|
||||
|
||||
return [$user, $org, $branch, $queue];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user