Lock doctors to a single branch — never a branch picker.
Deploy Ladill Care / deploy (push) Successful in 1m3s
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user