Assign every demo waiter to a doctor and sync Queue tickets.
Deploy Ladill Care / deploy (push) Successful in 1m54s
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user