Lock doctors to a single branch — never a branch picker.
Deploy Ladill Care / deploy (push) Successful in 1m3s

Doctors were treated as multi-branch when Identity cleared branch_id; now they stay on their assigned/desk site, specialty desks are home-branch only, and the queue shows site name as text only.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 08:45:57 +00:00
co-authored by Cursor
parent bb4dbee81a
commit d643687335
10 changed files with 120 additions and 23 deletions
@@ -73,7 +73,11 @@ class QueueController extends Controller
}
if ($lockToPractitioner) {
$queue = $this->appointments->queueForPractitioners($owner, $practitionerScope ?? []);
$queue = $this->appointments->queueForPractitioners(
$owner,
$practitionerScope ?? [],
$branchId > 0 ? $branchId : null,
);
$inConsultation = Appointment::owned($owner)
->where('organization_id', $organization->id)
->where('status', Appointment::STATUS_IN_CONSULTATION)