Assign every demo waiter to a doctor and sync Queue tickets.
Deploy Ladill Care / deploy (push) Successful in 1m54s

Link DemoWorld doctor staff to practitioners, clear unresolved routing, distribute staff across branches, and restore scoped consultation/pharmacy ticket sync so demos are not left Unassigned.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 05:34:45 +00:00
co-authored by Cursor
parent 86d79b5099
commit 88f84a4f96
2 changed files with 141 additions and 6 deletions
+10
View File
@@ -342,5 +342,15 @@ class DemoSeedCommandTest extends TestCase
->where('role', 'receptionist')
->exists()
);
$waiters = Appointment::query()
->where('owner_ref', $user->public_id)
->whereIn('status', [Appointment::STATUS_WAITING, Appointment::STATUS_CHECKED_IN])
->get();
$this->assertNotEmpty($waiters);
foreach ($waiters as $waiter) {
$this->assertNotNull($waiter->practitioner_id, 'Demo waiters must all have a doctor assigned');
$this->assertNotSame('unresolved', $waiter->queue_routing_status);
}
}
}